Skip to content

Instantly share code, notes, and snippets.

@HintikkaKimmo
Created August 21, 2017 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HintikkaKimmo/cd3baf6f4e63bb8b8be0bbdcfd8d6df9 to your computer and use it in GitHub Desktop.
Save HintikkaKimmo/cd3baf6f4e63bb8b8be0bbdcfd8d6df9 to your computer and use it in GitHub Desktop.
Npm global package management
Updating global packages
To update global packages, you can use npm update -g <package>:
npm update -g jshint
To find out which packages need to be updated, you can use npm outdated -g --depth=0.
To update all global packages, you can use npm update -g. However, for npm versions less than 2.6.1, this script is recommended to update all outdated global packages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment