Yarn

Global

Path Setup

circle-info

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

Remove a package

Upgrade packages

Upgrade Interactively

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

Last updated