You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When /proc/stat and /proc/cpuinfo are not accessible and version 1 package-lock.json is present, npm ci fails to install packages with "exit handler never called" error after "The package-lock.json file was created with an old version of npm" warning. This is caused by a bug in promise-call-limit library.
To check whether the system is affected by the bug one can run this command:
node -e "console.log(require('os').cpus())"
If it prints an empty list [] then there is a bug and npm will fail either at idealTree:inflate stage or at build:run:* stage. This is caused by a bug in callLimit function that doesn't run any of the passed functions if CPU count cannot be determined. This function is invoked in two places: when parsing old lock file and when running build:run.
I have made a pull request to fix the bug: isaacs/promise-call-limit#11 . Please consider updating promise-call-limit version.
So, the bug only happens if /proc not being accessible and stage is idealTree:inflate (and old lockfile is present) or build:run:*.
Searching around shows that there are bugs from users trying to use npm in different OSes which might be caused by the same reason:
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm verb unfinished npm timer command:ci 1680276840213
npm verb unfinished npm timer idealTree 1680276840284
npm verb unfinished npm timer idealTree:inflate 1680276840288
npm info ok
npm ERR! Exit handler never called!
Environment
npm: 9.6.3
Node.js: v18.15.0
OS Name: Linux
System Model Name:
npm config:
; node bin location = /usr/bin/node; node version = v18.15.0; npm local prefix = /shared/test-npm; npm version = 9.6.3; cwd = /shared/test-npm; HOME = (removed); Run `npm config ls -l` to show all defaults.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When
/proc/stat
and/proc/cpuinfo
are not accessible and version 1package-lock.json
is present,npm ci
fails to install packages with "exit handler never called" error after "The package-lock.json file was created with an old version of npm" warning. This is caused by a bug in promise-call-limit library.To check whether the system is affected by the bug one can run this command:
node -e "console.log(require('os').cpus())"
If it prints an empty list
[]
then there is a bug and npm will fail either atidealTree:inflate
stage or atbuild:run:*
stage. This is caused by a bug incallLimit
function that doesn't run any of the passed functions if CPU count cannot be determined. This function is invoked in two places: when parsing old lock file and when running build:run.I have made a pull request to fix the bug: isaacs/promise-call-limit#11 . Please consider updating promise-call-limit version.
So, the bug only happens if /proc not being accessible and stage is
idealTree:inflate
(and old lockfile is present) orbuild:run:*
.Searching around shows that there are bugs from users trying to use npm in different OSes which might be caused by the same reason:
Exit handler never called!
When trying to installcode-server
#5841 (Android, build:run:install stage)These users should run the command above to check whether their issue is caused by this bug.
Expected Behavior
npm ci runs successfully without errors
Steps To Reproduce
node -e "console.log(require('os').cpus())"
and see that it prints[]
Also create package.json:
Environment
The text was updated successfully, but these errors were encountered: