Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 769 Bytes

install-packages-globally-with-yarn.md

File metadata and controls

41 lines (27 loc) · 769 Bytes

Install Packages Globally With Yarn

Category: Nodejs

Packages can be installed globally with yarn. The global command makes executables available for use on your operating system outside of the context of a specific project.

To install a package globally use the following syntax (where somepackage is the name of the package being installed):

yarn global add somepackage

You can show the location for global package installations with the following command:

yarn global bin

Sample output:

/usr/local/bin

To remove a global package:

yarn global remove somepackage

To list all global packages:

yarn global remove list

To upgrade a global package:

yarn global upgrade somepackage