yarn (npm) 切换设置镜像源

Posted momozjm

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yarn (npm) 切换设置镜像源相关的知识,希望对你有一定的参考价值。

设置镜像源

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) 切换设置镜像源的主要内容,如果未能解决你的问题,请参考以下文章