Node.js version mismatch
April 30, 2026 · View on GitHub
Playbook ID: node-version-mismatch
Category: build
Severity: medium
Tags: node, nodejs, nvmrc, engines, nvm, version
What this failure means
The Node.js version installed on the CI runner does not satisfy the engines constraint declared in package.json or the version pinned in .nvmrc.
Common log signals
The engine "node" is incompatible with this module
Required engine node
requires node version
engine: unsatisfied
node: /.*: version
Unsupported engine
error node@
warning: You are using Node.js
Diagnosis
The Node.js version installed on the CI runner does not satisfy the engines constraint declared in package.json or the version pinned in .nvmrc.
Fix steps
- Identify the required Node.js version from
.nvmrc,.node-version, orpackage.jsonengines.node. - GitHub Actions: set
node-version-file: .nvmrcon theactions/setup-nodestep. - GitLab CI: use a versioned image —
image: node:20-alpine— matching your.nvmrc. - CircleCI: use
cimg/node:20.xor pin the version in the.circleci/config.ymlexecutor. - Azure Pipelines: use the
NodeTool@0task with a pinnedversionSpec. - Locally: run
nvm useorvolta install nodeto switch to the pinned version.
Validation
- Re-run the local reproduction command after the fix.
- cat .nvmrc && node --version
- nvm use
Likely files to inspect
.nvmrc.node-versionpackage.json
Run Faultline
faultline analyze build.log
faultline explain node-version-mismatch
faultline workflow build.log --json --mode agent
Search phrases this page answers
- Node.js version mismatch
- Build: node.js version mismatch
- The engine "node" is incompatible with this module
- GitHub Actions node.js version mismatch
- faultline explain node-version-mismatch
- Node.js node.js version mismatch
Generated from playbooks/bundled/log/build/node-version-mismatch.yaml. Do not edit directly — run make docs-generate.