npm 设置代理

设置代理

npm config set proxy http://username:password@server:port
npm config set https-proxy http://username:password@server:port

删除代理

npm config delete proxy
npm config delete https-proxy

设置仓库

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

npm config set registry=https://registry.npm.taobao.org

npm install --production --registry https://registry.npm.taobao.org

npm install -g xxxxxxx --registry https://registry.npm.taobao.org

npm install xxxxxxx --registry https://registry.npm.taobao.org

上一篇:servlet中生成验证码


下一篇:[转]用 jQuery 实现页面滚动(Scroll)效果的完美方法