NPM 命令

2020-04-18  本文已影响0人  Simar

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

查看全局安装包 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

上一篇下一篇

猜你喜欢

热点阅读