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

时间:2022-07-25
本文章向大家介绍[未解决]yarn安装报错网络问题解决,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

报错内容:

info There appears to be trouble with your network connection. Retrying...

尝试无果:

方法一:

npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist

方法二:

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