-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Increase in npm ERR! cb() never called!
errors
#33424
Comments
Here's a knowledge dump for the actions I've taken so far, and findings. Actions so far:
The TLDR of the This page in the NPM wiki exactly what is going on. There’s also a very long-term issue on the NPM GH repo (npm/cli#417). It seems that it’s pretty common in projects with a large list of dependencies. There has been some exploration of cache keys used within GHA workflows being the cause for this because one way to potentially fix the error is to force clean the cache. I think we can rule that out. I think this is more likely a network issue, or a bug within one or more of our dependencies that happens on occasion. For NPM caching, it’s actually handled entirely by |
It's worth noting that we are still using |
An observation is that I've been seeing this error in incredible frequency with this PR - #34533. Notably, that PR contains changes to the package-lock.json because it changes the dependencies of one of the packages. I wonder if these kind of changes could be a trigger for the problem in our CI. |
@talldan, you linked this issue. Is it related to the fix to the mobile dependency that is a forks of a package? |
So I did! I've edited my comment. |
It looks every time All checks on the PR were green. |
Because this has only been happening when the When the lock file changes, the cache key changes and a 100% fresh In chatting with @gziolo just now, he mentioned that there were a few dependencies that were loaded through Since most of the references to the error message seem to suggest network issues, I'm thinking we should try to eliminate all As en experiment, we could create a fork, change the versions to standard |
One observation recently is that it does seem to be happening more regularly with React Native jobs (check recent failures to Those workflows have repeatedly failed to do a fresh npm install. It seems like for some reason Mac OS is more likely to fail than Linux, so I wondered if that operating system results in more happening during an install, or if the hardware might be not quite as capable. |
I'm trying to migrate npm v6 to v7 in #33892. In the process, I discovered a few issues between React Native dependencies that are tracked in #34801. As a temporary step, I also decided to remove |
I think was able to narrow down the issue in #34809 to package dependencies in |
Indeed @youknowriad. As we speak, @ceyhun is working on a spike to replace the npm deps defined as git-dependencies, since it looks like that helps with the |
Wanted to check in to see if the issue is happening less frequently after #34886. Happy to dig further and try more things if it's still an issue. I'm not heavily involved day to day in this repo, but it does seem that the issue has improved some. |
I'm back to my regular work schedule. I will check this week if #34886 unblocks npm 7 migration. |
The changes introduced in #34886 should have fixed the |
Just noting for reference that I have seen the error a couple times over the last 2-3 weeks. One instance: https://github.com/WordPress/gutenberg/runs/4089434918?check_suite_focus=true#step:4:4. They do seem to be more random, and accompanied by other failures referencing separate network issues though. |
Description
There has been an increase in failures running
npm install
andnpm ci
in the last 2 months. This has mainly been visible in GitHub Action workflows, but some folks have encountered this locally.Restarting the workflow or re-running
npm install
usually fixes the issue.This is an issue to track this problem, document findings, and hopefully find a solution.
The text was updated successfully, but these errors were encountered: