临时设置镜像源:
npm --registry https://registry.npm.taobao.org install express
永久设置镜像源:
npm config set registry https://registry.npm.taobao.org
查看镜像源设置状态
npm config get registry
npm info express
使用CNPM替代:
npm install -g cnpm --registry=https://registry.npm.taobao.org
NPM镜像源:
版权属于:wshon
本文链接:https://blog.wshon.com/2018/07/npm_registry.html
转载时须注明出处及本声明
最新回复