-
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
ESOCKETTIMEDOUT on 31 MB package material-design-icons #5540
Comments
Related: #5055 |
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
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 I'm closing as resolved. |
I am getting same error, please help me [2/4] Fetching packages... |
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 |
@rally25rs thankyou so much adding |
@rally25rs .yarnrc does not work for me! i made the yarnrc file and i get this error. SyntaxError: Unknown token: { line: 1, col: 0, type: 'INVALID', value: undefined } 1:0 in E:\Coding Projects\FNB\main\.yarnrc
at Parser.unexpected (C:\Program Files (x86)\Yarn\lib\cli.js:63442:11)
at Parser.parse (C:\Program Files (x86)\Yarn\lib\cli.js:63573:14)
at parse (C:\Program Files (x86)\Yarn\lib\cli.js:63647:21)
at module.exports.exports.default (C:\Program Files (x86)\Yarn\lib\cli.js:63209:96)
at loadRcFile (C:\Program Files (x86)\Yarn\lib\cli.js:56943:58)
at C:\Program Files (x86)\Yarn\lib\cli.js:56917:14
at C:\Program Files (x86)\Yarn\lib\cli.js:97254:14
at Array.map (<anonymous>)
at parseRcPaths (C:\Program Files (x86)\Yarn\lib\cli.js:97252:78)
at Object.findRc (C:\Program Files (x86)\Yarn\lib\cli.js:97266:10) I am on windows , and copied the yarnrc exactly! |
So, if I understand correctly the accepted solution for the network timeout error is to increase the timeout wait? (I am asking because I can't seem to find other explainations other than this workaround) |
@fast-and-curious-1910 that is odd. I haven't looked at the yarnrc parsing in a while, but maybe it is sensitive to windows vs linux style line endings? That would be my best guess anyway. |
Works like a charm |
What is the current behavior?
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 fetchhttps://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:
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.
I completely uninstalled Homebrew and then reinstalled it, Node and Yarn but got the identical behavior.
The text was updated successfully, but these errors were encountered: