Tuesday, February 4, 2014

Node.js configure proxy (HTTP/HTTPS)

For example, if you are behind a corporate proxy , you can configure the credentials to pass through:  In command line:
>npm config set proxy http://[username]:[passwprd]@proxy-name:8080 
>npm config set https-proxy http://[username]:[passwprd]@proxy-name:8080 
>npm config set registry "http://registry.npmjs.org/"

No comments:

Post a Comment