国外镜像会很慢
可用 get命令查看registry
npm congfig get registry
原版结果为
http://registry.npmjs.org
用set命令换成阿里的镜像就可以了
npm config set registry https://registry.npm.taobao.org
再执行命令
npm install
或者直接执行
npm install --registry=https://registry.npm.taobao.org
国外镜像会很慢
可用 get命令查看registry
npm congfig get registry
原版结果为
http://registry.npmjs.org
用set命令换成阿里的镜像就可以了
npm config set registry https://registry.npm.taobao.org
再执行命令
npm install
或者直接执行
npm install --registry=https://registry.npm.taobao.org
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。