问题
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
回答1:
NVM uses curl, so modifying the file ~/.curlrc file (or create it if it does not exist)
proxy = <proxy_host>:<proxy_port>
来源:https://stackoverflow.com/questions/42244572/nvm-proxy-settings-configuration-file