如何清除NPM的https代理设置? [英] How to clear https proxy setting of NPM?

查看:274
本文介绍了如何清除NPM的https代理设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何清除NPM的以前的ssl代理设置? 好吧,我搜索了很多东西,但是我得到的所有帖子主要是关于如何在公司网络中set代理的.

How can I clear the previous ssl proxy setting of NPM? well, I search a lot, but all post I got is mainly about how to set proxy in corporate network.

我尝试将代理设置为空:

I try to set proxy to nothing:

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

第一个命令传递而第二个命令警告:

the first command pass yet the second one warn that:

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

警告是否可以忽略,并且我已经成功清除了代理设置?

is the warning neglectable and I have successfully clear the proxy setting?

推荐答案

以上都不对我有帮助,但这确实做到了:

None of the above helped me, but this did:

npm config rm proxy
npm config rm https-proxy

来源: http://jonathanblog2000.blogspot .ch/2013/11/set-and-reset-proxy-for-git-and-npm.html

这篇关于如何清除NPM的https代理设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆