npm安装程序提示npm ERR! code ECONNREFUSED

0
146

npm安装程序时莫名其妙出现如下提示:

npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npm.taobao.org/typescript failed, reason: connect ECONNREFUSED 127.0.0.1:1080
原来是npm自作多情的配置了代理
怎么会自动设置了代理?还连到ss端口上?
后经测试,只要ss开了全局代理,npm老是会自己配置上

使用如下语句关闭代理解决问题:


 

留下一个答复

Please enter your comment!
Please enter your name here