npm 笔记

2018-06-21  本文已影响0人  不知道的是

How to Update Global Packages

To update global packages, type:

npm update -g <package>

For example, to update a package 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

However, please consider upgrading to the latest version of npm. To do this, type:

npm install npm@latest -g

参考资料:
https://docs.npmjs.com/getting-started/updating-global-packages

上一篇下一篇

猜你喜欢

热点阅读