Setup Node.js and npm for behind proxy networks

  • The Systems that are all present inside the proxy requires npm proxy setup separately.
  • npm uses a configuration file to apply the proxy setting, which can be modified through command prompt.

npm config set proxy http://proxyhost:proxyport

npm config set https-proxy http://proxyhost:proxyport

To Remove proxy

npm config rm proxy

npm config rm https-proxy

To List all config

npm config list

Run the commands in command prompt one by one.