作者:发疯 | 来源:互联网 | 2022-12-09 17:17
我一直在尝试做本机反应的快速入门指南,但一直收到此错误
There appears to be trouble with your network connection. Retrying...
我的连接正常。
1> yacine benzm..:
当您的网络速度太慢或安装的软件包太大时,就会发生这种情况,而Yarn只是认为这是网络问题。尝试增加纱线网络超时:
yarn add --network-timeout 100000
2> Pan..:
我收到此问题是因为我在公司内部网络中工作,需要设置代理。
$ yarn config set proxy http://my_company_proxy_url:port
$ yarn config set https-proxy http://localhost:3128
example $ yarn config set https-proxy http://proxy.abc.com:8080
3> Dung..:
简单的工作解决方案(正确的方法):
好像yarn试图通过代理进行连接。以下为我工作:
npm config rm proxy
npm config rm https-proxy
来源:https://github.com/yarnpkg/yarn/issues/4890