ハローワールド
事象
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
Ubuntu on WSL
と書いてありますが、おそらくどこだって同じだと思います。