How to clear https proxy setting of NPM?

2019-01-09 22:59发布

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?

标签: node.js proxy
26条回答
做自己的国王
2楼-- · 2019-01-09 23:56
npm config rm proxy
npm config rm https-proxy

Worked for me

查看更多
啃猪蹄的小仙女
3楼-- · 2019-01-09 23:57
npm config delete proxy -g

worked for me.

-g was important as initially it was set with that option. You can check configurations set with :

npm config list
查看更多
登录 后发表回答