码迷,mamicode.com
首页 > 其他好文 > 详细

设置npm源为淘宝镜像

时间:2020-02-20 20:32:04      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:get   taobao   registry   div   span   str   查看   验证   镜像   

修改:

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

  配置后验证是否成功(查看当前npm源):

        npm config get registry    

 

还原:

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

 

设置npm源为淘宝镜像

标签:get   taobao   registry   div   span   str   查看   验证   镜像   

原文地址:https://www.cnblogs.com/wuqilang/p/12336991.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!