Using npm with an HTTP proxy

npm config set proxy http://proxy:8899
npm config set https-proxy http://proxy:8899

The npm config set and get commands are just a convenient way of editing the configuration file, though. You can just as well set it in plain text:

$ cat ~/.npmrc

Licensed under CC BY Creative Commons License ~ ✉ torstein.k.johansen @ gmail ~ 🐘 ~ 🐦 @torsteinkrause