-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] Getting constant EEXIST: file already exists, open 'C:\npm\cache\_cacache\tmp\90a9a665
when installing packages
#3079
Comments
This is more prevalent after a subsequent install attempt, trying to circumvent issue #3078. Seems to only affect Windows machines. |
EEXIST: file already exists, open 'C:\npm\cache\_cacache\tmp\90a9a665'
when installing packagesEEXIST: file already exists, open 'C:\npm\cache\_cacache\tmp\90a9a665
when installing packages
@ruluva can you try an earlier version of Of note, after talking quickly with @nlf he also believes #3078 might be linked to this & is going to help investigate further in both cases. |
I gave npm 7.5.0 a shot, and still saw the issue. As far as I was able to tell, it seems to only trigger on failed installs (like the in the case where we get the socket timeout) and try an install again. Another thing to point out is I haven't seen this issue on another Linux (Ubuntu 16.04) build machine we have. Unfortunately, most of our machines as well as dev machines are Windows. |
this one sure feels like it's happening because of an otherwise hidden problem in how we handle failures of network requests that's surfacing because of #3078 i'm going to look into this separately, since it is definitely a bug. |
@nlf any update here? |
This issue started happening almost in 100% of runs on our windows build agents after updating to npm v7.18.0. Reverting to v7.17.0 seems to be fixing it. We've attempted to run |
@nlf @darcyclarke this issue is getting more and more serious as it starts happening on some of our developer machines and above workaround doesn't seem to help all the time. Is there something we can provide to help you diagnose this issue? Logs? We can also debug npm process if you provide us guidance with what to look at. |
this one sure took a while, but just today i found a very small and subtle but significant bug that was causing the to allow us to test and see if this is really the root cause of the problems seen here, i've pushed a branch of the npm cli that you can install and test with. you can run |
It helped one of our developers after completely reinstalling node and then updating npm with |
Current Behavior:
When trying to install packages, with a previous cache present, we get constant cache collisions when trying to install packages, both locally and in a CI environment.
Stack trace:
Expected Behavior:
Be able to resolve cache collisions without failing
Steps To Reproduce:
Using a project with workspaces (~6425 packages)
Previous cache available
Run npm ci
Environment:
OS: Windows 10
Node: 14.15.4
npm: 7.9.0
The text was updated successfully, but these errors were encountered: