我目前在非常不稳定的互联网连接上使用 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".
是否可以永远重试直到下载或增加超时?
类似{超时:9999999}
最佳答案
尝试使用network-timeout
标志并延迟以毫秒为单位,如下所示:
yarn install --network-timeout 1000000000
关于download - 如何增加 `yarn install`的超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47812779/