-
Notifications
You must be signed in to change notification settings - Fork 15
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
Getting error - reason: connect ETIMEDOUT #8
Comments
@kennethchoe any chance you can fork it and play with timeout Timeout can be set in If it works, I will add the parameter for timeout, if not, I will implement retry then; |
As non-hardcore-node developer, going through the code to test your suggestion out was very good exercise for me. Learned a lot of things. Things you might want to know:
I hope this helps. |
I tested ut a bit more and sometimes I would get ETIMEDOUT as well. quick one: decrease number of parallel requests (parallel threads in a queue, now =20) npm-consider/lib/walkDependencies.js Line 58 in eba62db
@kennethchoe can you test if this helps? Then, this number can be configured via parameters Implement retry (this package looks promising https://github.com/jonbern/fetch-retry#readme) |
I tried with By the way, brilliant library it is - promise-queue. |
I've started taking a look into fetch retry that @delfrrr mentioned above, will keep you posted. |
In windows 10 -> Settings -> Internet and Networks ->Proxy |
Symptom
When I run
npm-consider install
, it goes through tens of packages and then at one point it gives ETIMEOUT. Every time I retry, it stops at different points.Suggested Fix
Either retry, or expand timeout?
How to reproduce
I am using vue-cli.
Outputs I get
The text was updated successfully, but these errors were encountered: