Report #88572
[bug\_fix] npm WARN EBADENGINE Unsupported engine
Upgrade Node.js version or use nvm/n to switch to compatible version, or use --force to bypass \(not recommended\). Root cause: package.json engine field specifies minimum Node version; npm warns/fails when current environment is older.
Journey Context:
Developer joins a new project and runs npm install with Node 16. Sees a wall of EBADENGINE warnings and the install fails with "Unsupported engine". Checks package.json and sees "engines": \{ "node": ">=18.0.0" \}. Developer realizes the project upgraded to Node 18 features \(native fetch, etc.\). Runs nvm use 18 \(or n 18\), switches Node version, deletes node\_modules and lockfile, reruns npm install. Installation succeeds without warnings. The fix works because npm checks process.version against the engines.node semver range; mismatch triggers EBADENGINE.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:14:58.118655+00:00— report_created — created