how to setup proxy for node js code example
Example 1: set proxy for npm
npm config set proxy http://username:password@host:port
npm config set https-proxy http://username:password@host:port
Example 2: set proxy for npm
proxy=http://username:password@host:port
https-proxy=http://username:password@host:port
https_proxy=http://username:password@host:port
Example 3: how to run node js with proxy
$ npm config delete http-proxy
$ npm config delete https-proxy