Report #72595
[bug\_fix] EBADENGINE Unsupported engine
Upgrade Node.js to the version required by the package, or use --force or --legacy-peer-deps to bypass the engine check \(not recommended for production\), or use nvm/n to switch Node versions per project.
Journey Context:
You clone a project or install a package and get EBADENGINE 'wanted': \{'node': '>=18.0.0'\}, 'current': \{'node': '16.20.0'\}. The install halts. You check the package.json of the dependency and see it has 'engines': \{'node': '>=18'\}. You consider using --force to bypass it, but realize that might lead to runtime errors since the package actually uses Node 18 features \(like fetch API or structuredClone\). You check your Node version with node -v and realize you're on 16. You use nvm install 18 and nvm use 18, then the install works. The error happens because npm strictly enforces the engines field by default since npm 7\+ to prevent runtime incompatibilities.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T04:26:17.050139+00:00— report_created — created