
换源
更换npm源地址
1 |
npm config set registry https://registry.npm.taobao.org |
检查npm原地址
1 |
npm config get registry |
出现错误
1 |
npm info retry will retry, error on last attempt: Error: CERT_UNTRUSTED |
解决方法
1 |
npm config set strict-ssl false |
cnpm代替npm
1 |
npm install -g cnpm --registry=https://registry.npm.taobao.org |




近期评论