美文网首页
NPM 命令

NPM 命令

作者: Simar | 来源:发表于2020-04-18 11:00 被阅读0次

    这里会记录一些特殊情况下使用的命令

    查看全局安装包 npm list --depth=0 -global
    设置淘宝镜像 npm config set registry https://registry.npm.taobao.org
    直至默认路径 npm config set registry https://registry.npmjs.org

    npm只安装pack-lock npm i --package-lock-only

    项目执行npm install的时候特别慢,到最后直接返回错误:

    error exited with error code: 128
    verbose exit [ 1, true ]

    解决方法

    git config --global http.sslverify "false"
    git config --global url."https://".insteadOf git://
    

    git config http.postBuffer 524288000

    相关文章

      网友评论

          本文标题:NPM 命令

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