Node.js Npm设置代理访问

npm config set proxy=http://127.0.0.1:8087

npm config set registry=http://registry.npmjs.org


npm config set proxy=http://192.168.1.1:8080 



环境变量有:HTTPS_PROXY / https_proxy / HTTP_PROXY / http_proxy 会自动设置

没有的话:

npm config set <key> <value> [--global] npm config get <key> npm config delete <key> npm config list npm config edit npm get <key> npm set <key> <value> [--global]


npm config set proxy=http://[user]:[password]@[proxy_host]:[proxy_port]

[] 括起来的表示如果没有可以省略




https://npmjs.org/doc/config.html

http://www.cnblogs.com/OracleERP/archive/2013/01/19/2867507.html

你可能感兴趣的:(Node.js Npm设置代理访问)