今天电脑重新更新后,发现安装vue项目进行npm时总是报 'proxy' config is set properly. See: 'npm help config' 的错
然后查了资料是因为代理出了问题导致的报错,解决方法就是清空掉现有的代理,直接设置新的代理
先查找一下自己的代理
npm config get proxy
npm config get npm config get https-proxy
然后将代理和缓存置空
第一种:
npm config set proxy false
npm cache clean --force
第二种:
npm config set proxy null
npm config set https-proxy null
现在配置新的镜像
npm config set registry http://registry.cnpmjs.org/
然后就可以进行后面npm操作了