错误:
解决:
代码:
npm config get proxy //要返回null
npm config get https-proxy //要返回null
npm install -g cnpm --registry=https://registry.npm.taobao.org
//如果上述不返回null,就清空代理如下
npm config delete proxy
npm config delete https-proxy
错误:
解决:
代码:
npm config get proxy //要返回null
npm config get https-proxy //要返回null
npm install -g cnpm --registry=https://registry.npm.taobao.org
//如果上述不返回null,就清空代理如下
npm config delete proxy
npm config delete https-proxy