Node.js sudo npm proxy settings

In this post I explained how to use npm install behind a proxy, but sometimes you need to install the module globally with sudo and the proxy settings won’t work for sudo. The solution is easy, set the same settings as for your user but with sudo.

One thought on “Node.js sudo npm proxy settings

  1. Pingback: Node.js npm proxy settings - Domingo Casarrubio · Blog

Comments are closed.