yarn is having troubles with the network connection
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
Try increasing network timeout
yarn install --network-timeout 1000000
found this on GitHub issues https://github.com/yarnpkg/yarn/issues/4890
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.