PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, April 21, 2022

[FIXED] How to increase the timeout for `yarn install`

 April 21, 2022     connection, download, yarnpkg     No comments   

Issue

I'm currently using Yarn on a very unstable internet connection. Sometimes it takes hours until I can finally download all the packages.

I noticed Yarn retries the download when there is some kind of the internet connection:

[1/4] Resolving packages...
31-Dec-1969 21:00:00    [INFO] info There appears to be trouble with your 
network connection. Retrying...
31-Dec-1969 21:00:00    [ERROR] error An unexpected error occurred: 
"https://github.com/flot/flot: getaddrinfo EAI_AGAIN github.com:443".

Is it possible to retry forever until it downloads or increase the timeout?

Something like {timeout: 9999999}


Solution

Try using the network-timeout flag with a delay in milliseconds, like this:

yarn install --network-timeout 1000000000



Answered By - Crono
Answer Checked By - David Marino (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing