Report #80548
[bug\_fix] Node.js version mismatch causing 'The engine node is incompatible' or missing 'node:fs/promises' module
Explicitly use actions/setup-node with node-version: '18' \(or lts/\*, or node-version-file: '.nvmrc'\) before running npm commands
Journey Context:
Developer pushes Node.js 18 application with package.json specifying engines: \{ node: '>=18.0.0' \}. Workflow uses ubuntu-latest without explicit Node setup. Step runs npm ci. Fails with 'error @scope/[email protected]: The engine "node" is incompatible with this module. Expected version ">=18.0.0". Got "16.20.0"'. Developer checks ubuntu-latest documentation, discovers it defaults to older Node version depending on the image date. Tries using apt-get to install Node, which works but is slow. Discovers actions/setup-node action. Adds - uses: actions/setup-node@v4 with node-version: '18'. Workflow succeeds. Later learns to use node-version-file: '.nvmrc' to sync with local development.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:48:02.134151+00:00— report_created — created