I'm using Centos 6.3 VM under company proxy.
I want to set proxy option when using 'n'.
I'm using npm with proxy settings but I can't find out how to use n with proxy option.
Do you have any idea ?
2.1.7
npm install -g n
4.5.0
which n:node -v:+1 for this. Looking for correct usage of HTTP_PROXY, HTTPS_PROXY env variables.
I tried it successfully with setting the env-vars http_proxy and https_proxy.
If the proxy does not allow ssl tunneling then my PR #426 comes in handy.
Oh, you're right. I was able to use 'n' just like 'wget' or 'curl'. Thank you for tips :)
export HTTP_PROXY=http://your-proxy-url:port
export HTTPS_PROXY=http://your-proxy-url:port
and then
n latest or whatever.
sudo -E n latest
worked for me. -E option for sudo passes environment variables for current user
Most helpful comment
sudo -E n latest
worked for me. -E option for sudo passes environment variables for current user