Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn install says There appears to be a trouble in your network connections. Retrying... #4333

Closed
Senthilkumar-Fullstack opened this issue Sep 7, 2017 · 16 comments

Comments

@Senthilkumar-Fullstack
Copy link

yarn-error.txt

I'm using latest version(yarn v1.0.1)

I'm using Jhipster, tried running yarn install, few packages are not installing and says the ERROR: There appears to be a trouble in your network connections. Retrying...
Please help me in fixing this.

Node - v8.4.0
yarn - v1.0.1
OS - Windows 7

@BYK
Copy link
Member

BYK commented Sep 8, 2017

Error: getaddrinfo ENOTFOUND host host:8080

Looks like you are having DNS issues unrelated to yarn? Or may be invalid config?

@Senthilkumar-Fullstack
Copy link
Author

package.txt
I don't know how to check the DNS issue for this. Also, I will attach my package.json file for your reference. Kindly let me know which config file you need to sort this out. Thanks in advance.

@Senthilkumar-Fullstack
Copy link
Author

Senthilkumar-Fullstack commented Sep 8, 2017

Thanks for your response. I found there was proxy value in yarn config. I deleted the proxy config using yarn config delete proxy and re-run yarn install command, everything working fine now.

@mackyin
Copy link

mackyin commented Apr 6, 2018

Set following values in cmd and try,it will works fine
set http_proxy=
set https_proxy=

@mukteshkrmishra
Copy link

did not worked for me.

@zheeeng
Copy link

zheeeng commented Sep 2, 2018

I often met this issue when deploy codes on Heroku, I have to push an empty commit for re-developing again and again. It is annoy.

@AllStackDev1
Copy link

facing same issues

info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.npmjs.org/gulp: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 80 80:80".

@prasadram
Copy link

i have tried timeouts and other options which didn't worked for me, still getting the same error. as below


sudo yarn --verbose global add gulp-cli
yarn global v1.10.1
verbose 0.247 Checking for configuration file "/home/prasad/.npmrc".
verbose 0.247 Found configuration file "/home/prasad/.npmrc".
verbose 0.249 Checking for configuration file "/usr/local/share/.npmrc".
verbose 0.249 Checking for configuration file "/usr/etc/npmrc".
verbose 0.249 Checking for configuration file "/home/prasad/.npmrc".
verbose 0.25 Found configuration file "/home/prasad/.npmrc".
verbose 0.25 Checking for configuration file "/home/prasad/.npmrc".
verbose 0.25 Found configuration file "/home/prasad/.npmrc".
verbose 0.251 Checking for configuration file "/home/.npmrc".
verbose 0.253 Checking for configuration file "/home/prasad/.yarnrc".
verbose 0.254 Found configuration file "/home/prasad/.yarnrc".
verbose 0.254 Checking for configuration file "/usr/local/share/.yarnrc".
verbose 0.254 Found configuration file "/usr/local/share/.yarnrc".
verbose 0.254 Checking for configuration file "/usr/etc/yarnrc".
verbose 0.255 Checking for configuration file "/home/prasad/.yarnrc".
verbose 0.255 Found configuration file "/home/prasad/.yarnrc".
verbose 0.255 Checking for configuration file "/home/prasad/.yarnrc".
verbose 0.255 Found configuration file "/home/prasad/.yarnrc".
verbose 0.256 Checking for configuration file "/home/.yarnrc".
verbose 0.26 current time: 2018-10-02T04:53:47.526Z
verbose 0.263 Checking for configuration file "/usr/local/share/.config/yarn/global/.npmrc".
verbose 0.264 Checking for configuration file "/usr/local/share/.npmrc".
verbose 0.264 Checking for configuration file "/usr/etc/npmrc".
verbose 0.264 Checking for configuration file "/home/prasad/.npmrc".
verbose 0.264 Found configuration file "/home/prasad/.npmrc".
verbose 0.265 Checking for configuration file "/usr/local/share/.config/yarn/global/.npmrc".
verbose 0.265 Checking for configuration file "/usr/local/share/.config/yarn/.npmrc".
verbose 0.265 Checking for configuration file "/usr/local/share/.config/.npmrc".
verbose 0.265 Checking for configuration file "/usr/local/share/.npmrc".
verbose 0.266 Checking for configuration file "/usr/local/.npmrc".
verbose 0.266 Checking for configuration file "/usr/.npmrc".
verbose 0.266 Checking for configuration file "/usr/local/share/.config/yarn/global/.yarnrc".
verbose 0.267 Checking for configuration file "/usr/local/share/.yarnrc".
verbose 0.267 Found configuration file "/usr/local/share/.yarnrc".
verbose 0.267 Checking for configuration file "/usr/etc/yarnrc".
verbose 0.267 Checking for configuration file "/home/prasad/.yarnrc".
verbose 0.268 Found configuration file "/home/prasad/.yarnrc".
verbose 0.268 Checking for configuration file "/usr/local/share/.config/yarn/global/.yarnrc".
verbose 0.268 Checking for configuration file "/usr/local/share/.config/yarn/.yarnrc".
verbose 0.268 Checking for configuration file "/usr/local/share/.config/.yarnrc".
verbose 0.269 Checking for configuration file "/usr/local/share/.yarnrc".
verbose 0.269 Found configuration file "/usr/local/share/.yarnrc".
verbose 0.269 Checking for configuration file "/usr/local/.yarnrc".
verbose 0.269 Checking for configuration file "/usr/.yarnrc".
[1/4] Resolving packages...
verbose 0.367 Performing "GET" request to "https://registry.yarnpkg.com/gulp-cli".
info There appears to be trouble with your network connection. Retrying...
verbose 3.487 Performing "GET" request to "https://registry.yarnpkg.com/gulp-cli".
info There appears to be trouble with your network connection. Retrying...
verbose 6.496 Performing "GET" request to "https://registry.yarnpkg.com/gulp-cli".
info There appears to be trouble with your network connection. Retrying...
verbose 9.505 Performing "GET" request to "https://registry.yarnpkg.com/gulp-cli".
info There appears to be trouble with your network connection. Retrying...
verbose 12.513 Performing "GET" request to "https://registry.yarnpkg.com/gulp-cli".
verbose 12.521 Error: getaddrinfo ENOTFOUND registry.yarnpkg.com registry.yarnpkg.com:443
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
error An unexpected error occurred: "https://registry.yarnpkg.com/gulp-cli: getaddrinfo ENOTFOUND registry.yarnpkg.com registry.yarnpkg.com:443".
info If you think this is a bug, please open a bug report with the information provided in "/usr/local/share/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

Note: I am using Ubuntu 16.04, nodejs:v8.12.0

@pthorsley
Copy link

yarn config delete proxy
This did work for me.

@kaminippp
Copy link

kaminippp commented Jun 5, 2019

yarn config delete proxy
This did work for me.

Worked for me

@jimmyyem
Copy link

did not worked for me.

npm config rm proxy
npm config rm https-proxy

I hope the above 2 commands will work for you.

@abarmawi
Copy link

abarmawi commented May 4, 2020

i had the same issue while trying build my docker image locally. i tried all the mentioned solution ☝️ but with now luck. my solution was to restart docker daemon.

@thiner
Copy link

thiner commented Jul 1, 2020

I've encountered the same issue for several days. And I tried all thumb up solutions above, turned out no luck. I soved the problem finally by:

yarn config set proxy "http://username:passwd@proxyhost:proxyport"
yarn config set https-proxy "http://username:passwd@proxyhost:proxyport"

For comparing, it was:

yarn config set proxy "username:passwd@proxyhost:proxyport"
yarn config set https-proxy "username:passwd@proxyhost:proxyport"

Pay attention to the Http scheme.

@ronak34
Copy link

ronak34 commented Dec 8, 2021

Thanks for your response. I found there was proxy value in yarn config. I deleted the proxy config using yarn config delete proxy and re-run yarn install command, everything working fine now.

This did work for me as well. Thanks :)

@vikyPS
Copy link

vikyPS commented Jan 18, 2022

Set following values in cmd and try,it will works fine set http_proxy= set https_proxy=

Thanks, it works for me. Just you need to have admin access.

@rehan509
Copy link

rehan509 commented Jun 4, 2024

The problem is mostly with internet , changing internet or restarting the router helped me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests