作者:Sunnky
链接:https://www.jianshu.com/p/3fd7d90db01a
來源:简书
1、执行:
npm config get proxy
npm config get https-proxy
如果返回值不为null,就对应设置为null。
npm config set proxy null
npm config set https-proxy null
2、执行:
npm config set registry http://registry.cnpmjs.org/
npm install -g cnpm --registry=https://registry.npm.taobao.org