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.
© npm, Inc. and Contributors
Licensed under the npm License.
npm is a trademark of npm, Inc.
https://docs.npmjs.com/getting-started/updating-global-packages