Node.js npm proxy settings

Was playing around with npm and found that I wasn’t able to install anything under the proxy on my office, so heres how you set the Node.js npm proxy settings.

EDIT: Proxy settings for sudo npm for global install

Setting the proxy:

If you want to change it, just edit the file thats created after you set it:

Removing/clearing the proxy:

One thought on “Node.js npm proxy settings

  1. Pingback: Node.js sudo npm proxy settings - DomingoCP Blog

Comments are closed.