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?
I've used
and it worked for me.
Best regards
Running npm version 2.10.1 in windows 7, I used:
Got exactly the same problem, I keep seeing my proxy configuration even after removing the npmrc file and deleting the keys.
I found out that npm were using windows env key http-proxy by default.
So go in Computer->Properties->Advanced system settings->Environement variables and check there is no http-proxy key configured.
This works
Nothing above worked for me. I had to edit the file ".npmrc" which will be under user home directory (ex: c:\users\abcuser) :
This was already answered but I think the
--global
config is not covered properly.By running
npm config rm proxy
you remove proxy from user configuration.This can be easily verified by running:
npm config list
.If there is
proxy
orhttps-proxy
setting set in global config you have to use--global
in the command to remove it.So at the end this will clean-up proxies from both local and global configs: