如果觉得安装速度慢,安装源和原来 npm 是一样的,可以通用,修改方法如下:
yarn config get
registry
可以改成 taobao 的源:
yarn config set registry
https:
# -> 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