Yarn: ESOCKETTIMEDOUT on 31 MB package material-design-icons

Created on 18 Mar 2018  路  6Comments  路  Source: yarnpkg/yarn

What is the current behavior?

$ yarn
yarn install v1.5.1
$ node tools/nodeVersionCheck.js
[1/5] 馃攳  Validating package.json...
[2/5] 馃攳  Resolving packages...
[3/5] 馃殮  Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/material-design-icons/-/material-design-icons-3.0.1.tgz: ESOCKETTIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "/Users/dan/Dropbox/Documents/dev/landscape/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

If the current behavior is a bug, please provide the steps to reproduce.

Repo is open source: https://github.com/cncf/landscape

What is the expected behavior?

Expecting material-design-icons to correctly download and install. Note that I can fetch https://registry.yarnpkg.com/material-design-icons/-/material-design-icons-3.0.1.tgz using my web browser.

I then tried installing that file (which is 32 MB) with:

$ yarn add ~/Downloads/material-design-icons-3.0.1.tgz 
yarn add v1.5.1
$ node tools/nodeVersionCheck.js
[1/5] 馃攳  Validating package.json...
[2/5] 馃攳  Resolving packages...
[3/5] 馃殮  Fetching packages...
warning Pattern ["material-design-icons@/Users/dan/Downloads/material-design-icons-3.0.1.tgz"] is trying to unpack in the same destination "/Users/dan/Library/Caches/Yarn/v1/npm-material-design-icons-3.0.1-9a71c48747218ebca51e51a66da682038cdcb7bf" as pattern ["[email protected]"]. This could result in non-deterministic behavior, skipping.
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...

but it again hangs. I also tried rm -rf /Users/dan/Library/Caches/Yarn/v1/npm-material-design-icons-3.0.1-9a71c48747218ebca51e51a66da682038cdcb7bf before installing but it didn't make any difference.

Note that npm install works.

Please mention your node.js, yarn and operating system version.

$ yarn -v
1.5.1
$ node -v
v9.8.0
$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 10.13.3 (17D102)
      Kernel Version: Darwin 17.4.0

I completely uninstalled Homebrew and then reinstalled it, Node and Yarn but got the identical behavior.

triaged

Most helpful comment

I believe we let node or the OS use whatever its default is (normally we don't pass a timeout), but you can override it by adding this line to a .yarnrc file in your project root:

network-timeout 600000

where the number is milliseconds to wait (600000ms = 10min)

Please note that even if it doesn't timeout during the download, it's still probably going to take several minutes to un-tar the archive, since it has somewhere close to 90,000 files in it 馃槥

All 6 comments

I believe we let node or the OS use whatever its default is (normally we don't pass a timeout), but you can override it by adding this line to a .yarnrc file in your project root:

network-timeout 600000

where the number is milliseconds to wait (600000ms = 10min)

Please note that even if it doesn't timeout during the download, it's still probably going to take several minutes to un-tar the archive, since it has somewhere close to 90,000 files in it 馃槥

@rally25rs Thanks. Adding the .yarnrc resolved my issue, and I also appreciate your link to https://github.com/jossef/material-design-icons-iconfont as a much smaller repo.

I'm closing as resolved.

I am getting same error, please help me

[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.3.tgz: ESOCKETTIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "C:\RHB_1610\Domus\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I am getting same error, please help me

Please scroll up, you will notice a fix was posted over a year ago.

Thank you, I too was able to solve my problem with the .yarnrc file

Was this page helpful?
0 / 5 - 0 ratings