Under Linux, I use $http_proxy
and $https_proxy
which works well for node
and npm
but nvm
doesn't use them.
In which configuration file should I write the proxy settings?
uname -a: Linux Breizh-Atao 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
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 or https-proxy setting set in global config you have to use --global in the command to remove it.
Click on the cogwheel icon and select Internet Options. In the Connections tab, click on LAN settings. Under Proxy server, uncheck the box next to Use a proxy server for your LAN. Uncheck the box next to Use automatic configuration script.
NVM uses curl, so modifying the file ~/.curlrc file (or create it if it does not exist)
proxy = <proxy_host>:<proxy_port>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With