💡
Knowledge
  • Home
  • Technology
    • Browser
      • Chrome / Brave
        • Known Issues
    • Messaging
      • Discord
        • Known Issues
      • Microsoft Teams
      • Telegram
    • Office Production
      • Sheets
    • Music Production
    • Operational systems
      • Docker + OSX
      • Raspberry Pi OS
      • Linux
        • Terminal
        • Known Issues
        • Desktop Environment
          • Gnome
            • How to
            • Known Issues
            • Theming
          • Kde Plasma
        • How to
          • Audio
          • Proxy
          • SSH
          • ZSH
      • Windows
    • Programming
      • Code Quality
        • Stress Tests
      • Cascading Style Sheets(CSS)
      • Database
        • Postgres
        • SQLServer
      • Design Patterns
      • DevOps
        • Cloud Platforms
        • Continuous Integration
        • Docker
          • How to
          • IPSEC VPN Server
          • Docker Compose
          • Known issues
          • Proxy
        • Swarm
      • Git
        • How to
        • Known Issues
        • Github
        • Gitlab
          • GitlabCI
          • Gitlab Runner
      • IDE / Text Editor
        • Vim
          • Commands
        • PHPStorm
        • VSCode
      • Programming Languages
        • Typescript
        • Java
          • How to
          • Spring Boot
        • Javascript
          • Known issues
          • Backend
            • NestJS
            • NodeJS
          • Frontend
            • JQuery
            • React
            • Vue
          • How to
          • Package Manager
            • Yarn
          • Packages
          • Vanilla
        • PHP
          • About
          • Cache
          • Composer
          • Docker
          • How to
          • Known Issues
          • Laravel
            • Jet Stream
            • Know Issues
            • Sanctum
            • Sail
            • Valet
          • Tools
            • PHPUnit
          • Wordpress
            • Docker
            • WP CLI
            • Known Issues
            • WooComerce
        • Python
        • Shell Script
      • Server
        • Apache2
          • Known Issues
        • Nginx
          • How To
          • Known issues
      • Tools
        • Visual Studio Code
    • Stream
      • Game
      • Twitch
      • Tests
        • Unit Tests
    • Sites
    • Specs
    • Tools
  • Pessoal
    • About me
Powered by GitBook
On this page
  • Global
  • Path Setup
  • Default config file
  • Install package globally
  • Install package globally and specifying the directory
  • Displays the location of the yarn bin folder
  • List installed packages
  • Remove a package
  • Upgrade packages
  • Upgrade Interactively

Was this helpful?

  1. Technology
  2. Programming
  3. Programming Languages
  4. Javascript
  5. Package Manager

Yarn

Global

Path Setup

Add the content below inside your profile that may be .profile, .bash_profile, .bashrc, .zshrc, etc.

export PATH="$(yarn global bin):$PATH"

Default config file

.eslintrc

Install package globally

yarn global add @nestjs/cli

Install package globally and specifying the directory

yarn global add nodemon --prefix /usr/local

Displays the location of the yarn bin folder

yarn global bin

List installed packages

yarn global list

Remove a package

yarn global remove

Upgrade packages

yarn global upgrade

Upgrade Interactively

Similar to upgrade command, but display the outdated packages before performing any upgrade, allowing the user to select which packages to upgrade.

yarn global upgrade-interactive

PreviousPackage ManagerNextPackages

Last updated 4 years ago

Was this helpful?