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

时间:2019-06-17 15:19:54   收藏:0   阅读:119

使用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/

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!