Tuesday, May 24, 2016

NodeJS - npm via proxy

Add proxy :
$ npm config set proxy http://proxy.uthm.edu.my:8080
$ npm config set https-proxy http://proxy.uthm.edu.my:8080

Remove proxy (unix) :
$ npm config rm proxy
$ npm config rm https-proxy
$ unset HTTP_PROXY
$ unset HTTPS_PROXY
$ unset http_proxy
$ unset https_proxy

Remove proxy (Windows) :
npm config delete proxy
npm config delete https-proxy

No comments:

Post a Comment