yarn is having troubles with the network connection
I had the same issue and solved by following steps:
Run the terminal command
- Clean npm cache
- npm cache clean --force
- set http_proxy=
- Set https_proxy=
- Yarn config delete proxy
- Npm config rm https-proxy
- Npm config rm proxy
- Restart your terminal
- yarn
- Yarn –network-timeout 100000
Restart your terminal.
it worked for me.
Try increasing network timeout
yarn install --network-timeout 1000000
found this on GitHub issues https://github.com/yarnpkg/yarn/issues/4890
If you are using WSL for linux just add the current ip domain in: C:\Windows\System32\drivers\etc\hosts e.g:
104.16.21.35 registry.yarnpkg.com
Try clearing your cache
$ yarn cache clean
$ yarn // to install dependencies, no need for "yarn install"
Approach 2
$ yarn install --network-timeout 1000000
Reference https://github.com/yarnpkg/yarn/issues/4890#issuecomment-358179301