npm WARN EBADENGINE Unsupported engine / The engine "node" is incompatible with this module
A package requires a different Node.js version than the one you’re running.
Seen on:
Node.js
Meaning
package.json "engines" declares supported versions. npm warns (EBADENGINE); yarn and pnpm can fail. Running anyway may break at runtime.
Common causes
- Node too old for a dependency
- Node too new for a legacy package
- CI using a different Node version than local
⚡ Quick fix
- Switch Node version with nvm (nvm use 20)
- Add .nvmrc to the project
- Pin Node in CI (setup-node)
Detailed fix by platform
Node.js
echo "20" > .nvmrc && nvm use
How to diagnose
- Required — Version range in the message
- Current — node -v
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 2 Oct 2026