如何清除NPM之前的ssl代理设置? 嗯,我搜索了很多,但我得到的所有帖子主要是关于如何在公司网络中设置代理。

我试图设置代理为空:

npm config set http-proxy
npm config set https-proxy

第一个命令传递,第二个命令警告说:

npm WARN invalid config proxy=""
npm WARN invalid config Must be a full url with 'http://'

警告是否可忽略,我是否已成功清除代理设置?


当前回答

npm config delete http-proxy
npm config delete https-proxy

npm config delete proxy -g
npm config delete http-proxy -g

then

npm config get proxy

also

npm i -g bower to update

NPM在代理上有一个错误

其他回答

npm config rm proxy
npm config rm https-proxy
unset HTTP_PROXY
unset HTTPS_PROXY
unset http_proxy
unset https_proxy

该死的,这终于做到了在Debian Jessie与privoxy(广告删除器)安装的技巧,谢谢你:-)

npm config rm proxy
npm config rm https-proxy

为我工作

我认为不是http-proxy,而是proxy:

npm config set proxy="http://yourproxyhere"

在windows 7中运行npm 2.10.1版本,我使用:

npm config delete proxy
npm config delete https-proxy

有一种简单的方法可以删除或删除NPM代理。

npm config delete proxy
npm config delete https-proxy