美文网首页
npm 笔记

npm 笔记

作者: 不知道的是 | 来源:发表于2018-06-21 05:46 被阅读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

    相关文章

      网友评论

          本文标题:npm 笔记

          本文链接:https://www.haomeiwen.com/subject/uzifyftx.html