-
Notifications
You must be signed in to change notification settings - Fork 291
npm install fails on old laptops #4327
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
Comments
Can you share the error log you are getting |
Thank you for replying. Setting the log to verbose, I see many lines beginning with 'timing', then a TLSWrap.onStreamRead error, then it finishes with many 'unfinished npm timer' lines. The point of failure changes each time I run the command, but the error is the same. The relevant part of a typical log is this (I have added the bold):
|
Following a suggestion turned up by Google, I tried openssl s_client -msg -debug -state -connect registry.npmjs.org:443 This worked perfectly well with zero reported problems. |
Thanks for sharing the fix. Can you post the link to the fix |
My apologies for confusing you. It has not fixed my problem. I was just saying this test of the low level comms worked correctly. The laptop still gets ECONNRESET when running npm ci. For completeness, the link I saw was: |
Please provide full error log as a gist. Also can perhaps connect to another network temporarily and check |
I have pasted the full verbose log into gist https://gist.github.com/owlbrudder/242250158aff52c34ac524326d1f900c I have tried using my cellphone as a hotspot to get away from the modem normally used, but the result is the same. The failure occurs at different places on each run. The desktop computer using the identical setup runs without error. |
Thanks for sharing the detailed log. Could you perhaps try https://docs.npmjs.com/cli/v10/using-npm/config#maxsockets Also, see if this work around is of any help npm/npm#18903 (comment) |
I will try adjusting that - it sounds promising. I tried a number of different maxsockets settings with no improvement .. until I set it to 1 and the old machine slowly ground its way a lot further through the job, but still died. I will rerun several times to see if it can progressively get through. EDIT: SUCCESS!! Setting maxsockets to 1 on both the old laptops has seen them run npm ci to completion. Thank you very much for the pointer in that direction. I did try http at one point, but the problem persisted. |
Can you check syslog to see if eveything is okay |
I could not find anything called syslog, but this is what was sent to the terminal: added 1040 packages, and audited 1041 packages in 24m 135 packages are looking for funding 17 vulnerabilities (4 moderate, 12 high, 1 critical) To address issues that do not require attention, run: To address all issues possible (including breaking changes), run: Some issues need review, and may require choosing Run |
One mystery solved: Fedora does not install rsyslog by default, which is why I have never seen a file called syslog. I have just installed it and am now trying to work out what configuration I need in order to see the socket misbehaviour. |
Is this issue still occuring? If not, feel free to self-close. |
It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. |
It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. |
Details
I have three machines, all running Fedora 38. The desktop is the main development machine, but I have two rather ancient laptops I use as test beds.
Currently I am working with the team on GitHub project opensourcepos. The desktop machine behaves perfectly, but both the old laptops running dual core Celeron CPUs and 4Gb RAM always get ECONNRESET errors when I run npm install.
All three machines are connected to the same modem and there is no proxy involved.
Is there a hardware lower limit to the capabilities of npm?
Node.js version
node.js v18.19.0
npm v10.2.3
Example code
No response
Operating system
Linux david 6.6.9-100.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 1 20:31:07 UTC 2024 x86_64 GNU/Linux
Scope
When running npm install for the opensourcepos project
Module and version
Not applicable.
The text was updated successfully, but these errors were encountered: