So recently I was facing an issue while adding Yarn package to my application. Every time I was doing Yarn add it was showing me error like There appears to be trouble with your network connection. So problem is, this happens when your network is too slow or the package being installed is too large, and yarn just assumes it's a network problem. Lets try increasing Yarn network timeout!
To resolve this problem all you need to do is:
Now if problem still exists then you need to add proxy.
To add proxy just do below.
Add a comment below if problem still exists :) Will be happy to help you!
To resolve this problem all you need to do is:
yarn add <yourPackage> --network-timeout 100000
Now if problem still exists then you need to add proxy.
To add proxy just do below.
$ yarn config set proxy http://your_company_proxy_url:port
$ yarn config set https-proxy http://localhost:3128
example $ yarn config set https-proxy http://proxy.example.com:8080
Add a comment below if problem still exists :) Will be happy to help you!











