1
votes

Since I am behind the corporate firewall, unable to install Node JS via nvm. I decided to use fiddler for proxying and then try to configure proxy in nvm as follows

nvm proxy http://127.0.0.1:8888 where 8888 is the proxy port in fiddler

However running nvm proxy still returns "none" and still get the timeout when I try to install latest node.

There is a related article: Unable to install node using nvm on windows

Any help is appreciated.

2

2 Answers

4
votes

Solution for Windows:

Make sure you run the nvm proxy command in Windows PowerShell/Command Prompt as Administrator (right click Windows PowerShell -> Run as administrator). Else the proxy won't be set!

nvm proxy http://127.0.0.1:8888   -> to set
nvm proxy                         -> to see current proxy
nvm proxy none                    -> to clear proxy

More info: https://github.com/coreybutler/nvm-windows

Solution for Linux:

1.Edit this file

nano ~/.curlrc

2.Add this line to the file

proxy = user:psw@host:port
-1
votes

Just set the environment variables

set HTTP_PROXY=localhost:8888
set HTTPS_PROXY=localhost:8888