Skip to content

Yarn install timeout #266

Answered by varl
varl asked this question in Gotchas
Discussion options

You must be logged in to vote

Copied from the original post:

Solution

Increasing the network-timeout for Yarn is one way to fix it. You can choose to increase the limit globally or per-project. I did it globally in the example below. The configuration option accepts milliseconds. Here I set it to 10 minutes for OVERKILL 😎.

yarn config set network-timeout 600000 -g

yarn config v1.13.0
success Set "network-timeout" to "600000".
Done in 0.04s.

Bonus solution

The only package I've seen this problem on is the material-design-icons package which has a ridiculous amount of files in a large package format. If you only need the iconfont, the material-design-icons-iconfont works as a drop-in replacement and is a lot smaller …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by varl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant