我目前在使用Yarn,但网络连接非常不稳定。有时需要几个小时才能下载所有的软件包。
我注意到当网络连接出现问题时,Yarn会重试下载:
[1/4] Resolving packages...
31-Dec-1969 21:00:00 [INFO] info There appears to be trouble with your
network connection. Retrying...
31-Dec-1969 21:00:00 [ERROR] error An unexpected error occurred:
"https://github.com/flot/flot: getaddrinfo EAI_AGAIN github.com:443".
是否可以一直重试直到下载完成或增加超时时间?
类似于{timeout: 9999999}
这样的设置。