美文网首页
升级npm+node

升级npm+node

作者: rajs20222007 | 来源:发表于2019-10-29 09:58 被阅读0次

    一、升级node
    I found this really neat way of updating node on David Walsh's blog, you can do it by installing n:

    sudo npm cache clean -f
    sudo npm install -g n
    sudo n stable

    It will install the current stable version of node.

    二、升级npm
    npm install npm@latest -g

    三、升级npm下的库
    npm update -g
    npm update

    FAQ:
    npm cache clear --force

    相关文章

      网友评论

          本文标题:升级npm+node

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