首页 > 其他 > 详细

npm镜像指定用淘宝镜像去下载

时间:2019-06-17 15:19:54      阅读:115      评论:0      收藏:0      [点我收藏+]

使用npm下载,蜗牛,使用cnpm又觉得那啥,所以。把cnpm也就是淘宝镜像绑定成npm下载的代理,这样使用npm的时候其实是用淘宝镜像去下载,这感觉,good!

1. npm config set registry http://registry.npm.taobao.org/

检查一下:npm get registry 

  >http://registry.npm.taobao.org/

大功告成!

如果有一天你出差到了外国,想换回来肿么办?

2. npm config set registry https://registry.npmjs.org/

检查一下:npm get registry 

  >https://registry.npmjs.org/

npm镜像指定用淘宝镜像去下载

原文:https://www.cnblogs.com/webSong/p/11039589.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!