Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Last active December 21, 2015 01:19
Show Gist options
  • Save jansanchez/6226891 to your computer and use it in GitHub Desktop.
Save jansanchez/6226891 to your computer and use it in GitHub Desktop.
change proxy settings in /etc/enviroment
# edit Enviroment
vim /etc/environment
# add
no_proxy=localhost,127.0.0.0/8,*.local,local.*,*.red.corporativa
NO_PROXY=localhost,127.0.0.0/8,*.local,local.*,*.red.corporativa
all_proxy=socks://172.21.0.83:3128
ALL_PROXY=socks://172.21.0.83:3128
http_proxy=http://172.21.0.83:3128
HTTP_PROXY=http://172.21.0.83:3128
ftp_proxy=http://172.21.0.83:3128
FTP_PROXY=http://172.21.0.83:3128
https_proxy=http://172.21.0.83:3128
HTTPS_PROXY=http://172.21.0.83:3128
# and for... npm set proxy
sudo npm config set registry http://registry.npmjs.org/
sudo npm set proxy http://172.21.0.83:3128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment