Skip to content

fix: pin npm to 11.10.0 to avoid promise-retry failure on Node 22.22.2#1096

Merged
yogeshchoudhary147 merged 1 commit intomainfrom
fix/pin-npm-11.10.0
Apr 17, 2026
Merged

fix: pin npm to 11.10.0 to avoid promise-retry failure on Node 22.22.2#1096
yogeshchoudhary147 merged 1 commit intomainfrom
fix/pin-npm-11.10.0

Conversation

@yogeshchoudhary147
Copy link
Copy Markdown
Contributor

Pins npm install -g npm@11 to npm@11.10.0 in the publish action.

Node 22.22.2 bundles npm 10.9.7, which lazily requires promise-retry; npm 11.12.0+ removes that module from its bundle, causing a MODULE_NOT_FOUND crash during the self-upgrade. npm 11.10.0 still bundles promise-retry, avoiding the failure.

The upstream fix landed in npm/cli#9152 (merged into npm 10.9.8 / 11.12.1). This pin can be dropped once a Node 22 patch release ships with npm ≥ 10.9.8.

@yogeshchoudhary147 yogeshchoudhary147 requested a review from a team as a code owner April 17, 2026 06:44
@yogeshchoudhary147 yogeshchoudhary147 merged commit 8038a24 into main Apr 17, 2026
12 checks passed
@yogeshchoudhary147 yogeshchoudhary147 deleted the fix/pin-npm-11.10.0 branch April 17, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants