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.
Setting the proxy:
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
If you want to change it, just edit the file thats created after you set it:
Removing/clearing the proxy:
npm config rm proxy
npm config rm https-proxy