[未解决]yarn安装报错网络问题解决

2020-09-17 10:45:23 浏览数 (1)

报错内容:

代码语言:javascript复制
info There appears to be trouble with your network connection. Retrying...

尝试无果:

方法一:

代码语言:javascript复制
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist

方法二:

代码语言:javascript复制
yarn config get registry
# -> https://registry.yarnpkg.com
代码语言:javascript复制
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.
***一定注意源地址不能带引号

0 人点赞