npmjs.com

How to Install Global Packages

There are two ways to install npm packages: locally or globally. Choose which kind of installation to use based on how you want to use the package.

To download packages globally, use the command npm install -g <package>, e.g.:

npm install -g jshint

If you get an EACCES error, see Chapter 3.

Tip: Consider using npx to run packages globally, if you have npm 5.2 or greater installed.

Last modified January 31, 2018           Found a typo? Send a pull request!

npm Services

Getting started

Private packages

Troubleshooting

Using npm

CLI commands

Configuring npm

View All On One Page