yarn设置淘宝镜像问题亲测成功

xiaoxiao2021-02-28  53

如果觉得安装速度慢,安装源和原来 npm 是一样的,可以通用,修改方法如下:

yarn config get registry # -> https://registry.yarnpkg.com

可以改成 taobao 的源:

yarn config set registry https://registry.npm.taobao.org # -> yarn config v0.15.0 # -> success Set "registry" to "https://registry.npm.taobao.org". # -> Done in 0.04s. ***一定注意源地址不能带引号
转载请注明原文地址: https://www.6miu.com/read-80007.html

最新回复(0)