1、执行:
npm config get proxy
npm config get https-proxy
如果返回值不为null,继续执行:
npm config set proxy null
npm config set https-proxy null
2、执行:
npm config set registry https://registry.npm.taobao.org
3、直接编辑c盘下的.npmrc文件,将registry的值修改为:
1、执行:
npm config get proxy
npm config get https-proxy
如果返回值不为null,继续执行:
npm config set proxy null
npm config set https-proxy null
2、执行:
npm config set registry https://registry.npm.taobao.org
3、直接编辑c盘下的.npmrc文件,将registry的值修改为:
转载于:https://my.oschina.net/zuoan001/blog/1555935