Skip to content

tools.func: pin npm to 11.11.0 to work around Node.js 22.22.2 regression#13296

Merged
MickLesk merged 1 commit intomainfrom
fix/pin-npm-version
Mar 26, 2026
Merged

tools.func: pin npm to 11.11.0 to work around Node.js 22.22.2 regression#13296
MickLesk merged 1 commit intomainfrom
fix/pin-npm-version

Conversation

@MickLesk
Copy link
Copy Markdown
Member

✍️ Description

Node.js 22.22.2 ships with a broken npm self-upgrade path where 'npm install -g npm@latest' fails with MODULE_NOT_FOUND for promise-retry. Pin to npm@11.11.0 as a known-good version until the upstream issue is resolved. Ref: nodejs/node#62425, npm/cli#9151

🔗 Related Issue

Related to #13290

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

…gression

Node.js 22.22.2 ships with a broken npm self-upgrade path where 'npm install -g npm@latest' fails with MODULE_NOT_FOUND for promise-retry. Pin to npm@11.11.0 as a known-good version until the upstream issue is resolved. Ref: nodejs/node#62425, npm/cli#9151
@MickLesk MickLesk requested a review from a team as a code owner March 26, 2026 08:52
@MickLesk MickLesk merged commit b9a39db into main Mar 26, 2026
2 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants