Skip to content

Instantly share code, notes, and snippets.

@wynemo
Last active May 9, 2017 08:51
Show Gist options
  • Save wynemo/d1fcd8609679bbb83678ea1b5840a928 to your computer and use it in GitHub Desktop.
Save wynemo/d1fcd8609679bbb83678ea1b5840a928 to your computer and use it in GitHub Desktop.
nodejs learning
request lib set http proxy
process.env.https_proxy='​http://192.168.196.71:7000'
process.env.http_proxy='​http://192.168.196.71:7000'
webkit set http proxy
nw.App.setProxyConfig("http=192.168.196.71:7000;https=192.168.196.71:7000")
wget -c https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-x64.tar.xz
[nemo.zhang@cws71 ~]$ cat ~/.bash_profile
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$HOME/apps/node-v6.10.3-linux-x64/bin
npm config set proxy http://127.0.0.1:7002
npm config set https-proxy http://127.0.0.1:7002
sudo npm install npm -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment