チラシの裏
yarnを行うと「info There appears to be trouble with your network connection. Retrying...」が出てくる
作成日:
更新日:
ハローワールド。
事象
yarnを実行するとこんなエラーが出続ける。
$ yarn
...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
...
原因と解決
ネットワークが遅いためタイムアウトエラーが発生している、とのこと。
なのでタイムアウト時間をめちゃめちゃ長くしてあげましょう。
$ yarn config set network-timeout 1000000
# or
$ yarn install --network-timeout 1000000