-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
Open
Description
Version
v22.22.2
Platform
Darwin M-FC6WJYY430 25.3.0 Darwin Kernel Version 25.3.0: Wed Jan 28 20:56:35 PST 2026; root:xnu-12377.91.3~2/RELEASE_ARM64_T6030 arm64
Subsystem
No response
What steps will reproduce the bug?
# use the latest node 22.x
nvm install 22.22.2
# activate the node version
nvm use 22.22.2
# install latest npm
npm install -g npm@latestHow often does it reproduce? Is there a required condition?
Always happens.
What is the expected behavior? Why is that the expected behavior?
NPM should install successfully.
What do you see instead?
npm error code MODULE_NOT_FOUND
npm error Cannot find module 'promise-retry'
npm error Require stack:
npm error - /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js
npm error - /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/index.js
npm error - /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/index.js
npm error - /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/npm/node_modules/libnpmfund/lib/index.js
npm error - /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/npm/lib/utils/reify-output.js
npm error - /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/npm/lib/utils/reify-finish.js
npm error - /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/npm/lib/commands/install.js
npm error - /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/npm/lib/npm.js
npm error - /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/npm/lib/cli/entry.js
npm error - /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/npm/lib/cli.js
npm error - /opt/hostedtoolcache/node/22.22.2/x64/lib/node_modules/npm/bin/npm-cli.js
Additional information
Created a minimal reproducible matrix of Node and NPM versions in https://github.com/altbdoor/node-22-npm-regress/actions/runs/23525843427/job/68478996014 .
For brevity:
| Node | NPM | Success? |
|---|---|---|
22.22.1 |
^11.12.0 |
OK |
22.22.1 |
^11.11.0 |
OK |
22.22.1 |
latest |
OK |
22.22.2 |
^11.12.0 |
NOK |
22.22.2 |
^11.11.0 |
NOK |
22.22.2 |
latest |
NOK |
Edit: seems to only happen from a new Node 22.22.2 environment, doing npm install -g npm@latest. Installing the versions in increment appears to be OK.
$ npm i -g npm@^10
changed 13 packages in 1s
$ npm i -g npm@~11.10
removed 48 packages, and changed 92 packages in 1s
$ npm i -g npm@~11.11
removed 1 package, and changed 26 packages in 902ms
$ npm i -g npm@~11.12
removed 7 packages, and changed 22 packages in 905ms
$ npm i -g npm@latest
changed 10 packages in 1sReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels