美文网首页
npm安装的node如何升级?

npm安装的node如何升级?

作者: Forest_688 | 来源:发表于2019-03-06 10:31 被阅读0次

    1.升级npm

    npm install -g npm

    2.清除npm缓存

    npm cache clean -f

    3.安装n模块

    npm install -g n

    4.升级node.js到稳定版本

    n stable
    (或者升级到某个版本:n v3.7.3

    参考:node和npm版本更新

    相关文章

      网友评论

          本文标题:npm安装的node如何升级?

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