Skip to content

fix: update Node.js to v22.12.0 for npm 11.x compatibility#22

Merged
jaseemjaskp merged 1 commit intomainfrom
fix/node-version-for-npm11
Dec 12, 2025
Merged

fix: update Node.js to v22.12.0 for npm 11.x compatibility#22
jaseemjaskp merged 1 commit intomainfrom
fix/node-version-for-npm11

Conversation

@jaseemjaskp
Copy link
Contributor

Problem

The publish workflow is failing with:

npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: npm@11.7.0
npm ERR! notsup Required: {"node":"^20.17.0 || >=22.9.0"}
npm ERR! notsup Actual:   {"npm":"10.5.0","node":"v21.7.1"}

Solution

Update .nvmrc from v21.7.1 to v22.12.0 (Node.js 22 LTS).

npm v11.x (required for trusted publishing with OIDC) requires Node.js ^20.17.0 || >=22.9.0. Node.js 21.x is an odd-numbered release and is not in the supported range.

npm v11.x (required for trusted publishing) needs Node.js ^20.17.0 || >=22.9.0.
Node.js 21.x is not supported.
@jaseemjaskp jaseemjaskp merged commit 1108548 into main Dec 12, 2025
1 check passed
@jaseemjaskp jaseemjaskp deleted the fix/node-version-for-npm11 branch December 12, 2025 05:03
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.

1 participant