Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 674 Bytes

updating-global-packages.md

File metadata and controls

30 lines (18 loc) · 674 Bytes

How to Update Global Packages

Requires version 2.6.1 or greater. See below if you are using an older version.

To update global packages, type:

npm update -g <package>

For example, to update a packages called jshint, you'd type:

npm update -g jshint

To find out which packages need to be updated, type:

npm outdated -g --depth=0.

To update all global packages, type:

npm update -g.

####If you are using version 2.6.0 or less

For npm versions less than 2.6.1, run this script to update all outdated global packages.