Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nvm proxy settings configuration file

Tags:

node.js

nvm

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

like image 871
Aubin Avatar asked Feb 15 '17 08:02

Aubin


People also ask

What is npm config RM proxy?

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.

How do I remove https-proxy?

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.


1 Answers

NVM uses curl, so modifying the file ~/.curlrc file (or create it if it does not exist)

proxy = <proxy_host>:<proxy_port>
like image 133
Nahuel Hernández Avatar answered Oct 19 '22 04:10

Nahuel Hernández