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

yarn (npm) 切换设置镜像源

时间:2019-04-01 14:23:33      阅读:623      评论:0      收藏:0      [点我收藏+]

标签:highlight   切换   查看   淘宝   javascrip   taobao   设置   com   镜像   

设置镜像源

1、查看一下当前源

yarn config get registry

2、切换为淘宝源

yarn config set registry https://registry.npm.taobao.org

3、或者切换为自带的

yarn config set registry https://registry.yarnpkg.com

  

yarn (npm) 切换设置镜像源

标签:highlight   切换   查看   淘宝   javascrip   taobao   设置   com   镜像   

原文地址:https://www.cnblogs.com/momozjm/p/10635941.html

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