-
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] Transient ENOENT / file not found in npm ci #694
Comments
I experienced this on AWS and assumed it was their agent, but the issue is transient and sometimes I can run several jobs in a row with no issues. The error I get is
Strangely enough, the file is different sometimes.
|
I'm experiencing a similar problem. One of my teammates suggested that maybe it's an issue of running out of INodes on Linux? Edit/Update: Not an inode issue - I created a post-install task to list inodes and only 11% used (unless somehow they were cleaned up by npm after the error). |
We get the same issue on Windows so not sure it's Linux specific. |
We use GitHub Actions for CI and frequently see this issue too using NPMv6 on Ubuntu. We've recently added the Cache GitHub Action to our workflow which appears to have resolved this issue for us; we've performed over 300 builds with this change now. The thinking is that it helps with this from the NPM docs:
Using a cache reduces the number of network requests being made and so there are fewer "race conditions and other synchronization issues". |
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
2 similar comments
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
I just got an ENOENT while running npm ci on my project. I reran npm ci and it worked fine. We had this issue on our Azure Devops pipeline for a while, but couldn't reproduce it on our machines so we assumed it was a problem with Azure's hosted agents. We logged it with Azure support but they closed it as a problem with npm, so we wrote a script to just retry npm ci 3 times and hope that it works once out of those 3 times. That has worked fine, but now that I have seen it on my own dev machine, I no longer believe that it is just a problem with Azure's agents.
Log attached:
2020-01-16T09_20_45_728Z-debug.log
I don't know how to reproduce this, but I am happy to provide more details on request, I just don't know what information is needed. I have a feeling this is related to #529, which also looks related to https://npm.community/t/10099
The text was updated successfully, but these errors were encountered: