-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
There appears to be trouble with your network connection. Retrying... #4890
Comments
What do you mean by "but yarn config did not fix it"? What did you try? |
expected: doubt: Sorry, forgive me, my English is not good. |
It's not a problem as long as I can understand. And, I'm also not very good either π It's not a bug. This is an expected behavior. You can either delete |
Adding this comment for other Googlers: What worked for me was increasing the Yarn network timeout:
Apparently the package I was installing was too large (or my network too slow) so it assumed it was a network problem. It might've been, but this solved it. Just took a while. |
I'm experiencing this issue now as well. None of the aforementioned solutions seem to be working. Internet still works fine though, and no one else in the co-working space where I'm at seem to be experiencing any network issues? |
|
Figured out was wrong. One of my dependencies (react-native itself) had the
wrong value and it got stuck there. Took me a while to realize because it
did not show in the error report but only while the yarn command was
running would it pop up for a moment.
β¦On Jan 17, 2018 10:54, "Sandino" ***@***.***> wrote:
yarn install --network-timeout 1000000
Did the trick for me:
β yarn install --network-timeout 1000000
yarn install v1.3.2
[1/4] π Resolving packages...
warning react-native > ***@***.***: connect 2.x series is deprecated
warning react-native > fbjs-scripts > ***@***.***: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
[2/4 <https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5%5B2/4>] π Fetching packages...
[3/4] π Linking dependencies...
warning "jest-expo > ***@***.***" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0".
[4/4] π Building fresh packages...
success Saved lockfile.
β¨ Done in 234.36s.
β
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4890 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJeQ6UFZ6q3OqEIdUXRZKUsuoMFkbJtJks5tLWDzgaJpZM4QXTQJ>
.
|
Same problem here, increasing the network timeout solved it
Maybe the default timeout is too small? |
I am facing the same issue on Windows and setting timeout does not resolve it. On the other hand npm works fine. |
FAILURE: Build failed with an exception. Any help here ? |
Don't have a solution or why there was network issues in the first place, but the default for https://github.com/yarnpkg/yarn/search?utf8=%E2%9C%93&q=NETWORK_TIMEOUT&type= |
@HarshulSharma000 same issue |
@Marcelori I tried to revert to nodejs 8.9.4(lts) and then tried with --network-timeout=99999 and it works. |
Looks like yarn was trying to connect via a proxy. The following worked for me:
|
I'm still having this issue. Increasing network timeout did not help, nor did @suhailgupta03 's proxy removal. Right now, yarn won't install, add, or do anything. I've tried it through three different networks. |
same here...... |
same here |
"is there truly is network connectivity issues." I don't think so. I have 100Mb of internet. No services are with trouble. Downloads are perfect, VOIP is perfect, NPM shines. Only Yarn I have this... Something dark is happening. UPDATE: I did some voodoo trick and works fine now #5259 (comment) |
Might be by design. There's a registry in
|
mine (Looks like the registry address is empty - was not it supposed to contain something?): => cat ~/.yarnrc
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
lastUpdateCheck 1523327705543 But, until now the "voodoo trick" is working great for me. |
@adjavaherian This works! Mine was stuck to a VPN URL at my company. NO idea why it was set to that though. Because I don't use the VPN for yarn at all. |
The "voodoo" trick posted above by @MichelDiz worked for me as well. |
So,How to solve this problem? |
+1 |
this kind of error occurs when your net cannot access some package resource which yarn.lock file specified. point are: |
I had hhe same issue. Actually I was running the command while a streaming video process is running (netflix). So I just paused it then I ve retried again and it works without even setting timeout to infinite value. |
I had the same issue, but I didn't notice it until I deleted the node_modules directory in my local repo. |
I had the same issue, my solution was updating the node version and the issue disappeared. |
This again.
It just hangs at these last two requests. |
I am having this issue too on yarn version --> 1.15.2 |
You shouldn't close issues unless you solve them or inform people about what could go wrong. |
I ran yarn while building my docker image and had the same issue as mentioned. Restarting the docker daemon solved it for me. |
@xdkaka Thanks, that worked for me! Seems that |
* Revert and fix commit 3198879 Commit 3198879 prepended the CYPRESS_INSTALL_BINARY=0 variable to the install command in the ressources/assets directory, however this component does not require cypress. The root component however does. This environment variable should be prepended to the second install command. * Add 'install buildx' step This is just blindly following this blogpost: https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/ * Target multiple architectures See this blogpost for more on how this works: https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/ * Add python2 dependency to front-builder This error message shows it: https://github.com/Filius-Patris/docker-koel/runs/915997770?check_suite_focus=true#step:5:8914 This issue comment suggests why: sass/node-sass#1176 (comment) TL;DR: Building some component requires python. This would normally be precompiled and fetched, but arm doesn't have precompiled packages. * Increase network timeout The CICD errors seems to be tied to this: yarnpkg/yarn#4890 (comment) * Try building the 3 architectures at the end of the CI. This is meant to test the CI. If it works, it will be done in publish.yml instead of dockerimage.yml. * Update CI/CD pipelines For more details, see the discussions on PR #31. With this commit, some targets in the Makefile are unneeded, but I left them anyway. * Correcting the tags: argument I wasn't understanding the docs correctly. * Refine CI/CD pipelines more With this commit the pipeline completely cut reliance to the Makefile. This helps to make everything more obvious by only looking at the pipeline yaml file. Co-authored-by: Joris MASSON <hyzual@gmail.com>
--network-timeout 1000000 fixed it for me but took a long time to install just one package - @material-ui/icons |
This comment has been minimized.
This comment has been minimized.
Github Actions, MacOS runner. |
IT WORKD FOR ME! THANK YOU VERY MUCH DUDE |
I guess there isn't "one size fit all" solution for this error. In my case there was a cyberark process on my i5 computer hogging all the resources. I force ended that process and the error went away. I think it has to do with antivirus. I'm sure it will come when i restart the pc. Such a waste of time working on windows. |
I get the same problem when I try to install yarn inside docker
|
|
This comment has been minimized.
This comment has been minimized.
For me |
The timeout logic is less aggressive in v2 so it will probably work for you there https://yarnpkg.com/getting-started/migration |
I cloned a project and I looked at the value of yarn.lock, package key 'resolved', which starts with 'http://npm.byted.org'.
I think this is the author custom yarn registry, but I can not visit 'http://npm.byted.org', but yarn config did not fix it.
The text was updated successfully, but these errors were encountered: