Skip to content

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

Merged
cschetan77 merged 1 commit intomasterfrom
fix/pin-publish-npm-version
Apr 16, 2026
Merged

fix: pin npm to 11.10.0 to avoid promise-retry failure on Node 22.22.2#815
cschetan77 merged 1 commit intomasterfrom
fix/pin-publish-npm-version

Conversation

@cschetan77
Copy link
Copy Markdown
Contributor

Summary

  • 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 race condition

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.

References

@cschetan77 cschetan77 requested a review from a team as a code owner April 16, 2026 05:23
@cschetan77 cschetan77 merged commit 9268e46 into master Apr 16, 2026
9 checks passed
@cschetan77 cschetan77 deleted the fix/pin-publish-npm-version branch April 16, 2026 05:26
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