vue 启动报错--request to https://registry.npm.taobao.org/vue-cli failed, reason: connect ECONNREFUSED 12

vue 启动报错# request to https://registry.npm.taobao.org/vue-cli failed, reason: connect ECONNREFUSED 127.0.0.1:1080,不能下载依赖,cnpm config list -l

解决办法

打开/Users/你的计算机名/.npmrc文件(隐藏文件)
然后在 https-proxy = "http://127.0.0.1:1080/"
这一行前面加个#	注掉这一行即可

再次执行命令:
vue create hello-world
成功,正常下载

你可能感兴趣的:(前端,java,idea,vue)