Skip to content

Instantly share code, notes, and snippets.

@timbophillips
Forked from alienlebarge/README.md
Created April 23, 2017 05:23
Show Gist options
  • Save timbophillips/0939220cb7a19fe78adafd15c8690fd6 to your computer and use it in GitHub Desktop.
Save timbophillips/0939220cb7a19fe78adafd15c8690fd6 to your computer and use it in GitHub Desktop.
Setting proxy with node.js

Node.js behind a proxy

Write proxy settings

$ npm config set proxy http://localhost:3128
$ npm config set https-proxy http://localhost:3128

This config is great for SquidMan app.

Delete proxy settings

$ npm config delete http-proxy
$ npm config delete https-proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment