Saylor InnovationsSAYLOR INNOVATIONS

Home / Guides / Self-Hosting & Infra

npm ERESOLVE and EBADENGINE Errors: Peer Dependencies, --legacy-peer-deps, engines and semver Ranges

Self-Hosting & Infra intermediate 6 min read $0.01 Updated 2026-10-20

Reproduced with npm 10.9: react@18 with react-dom@19 giving ERESOLVE, the legacy-peer-deps workaround, EBADENGINE with and without engine-strict, an E404 package, and semver.satisfies results for caret, tilde, prerelease and x ranges.

npm install fails with ERESOLVE unable to resolve dependency tree, or warns EBADENGINE. Read the error, choose between fixing versions, --legacy-peer-deps and --force, and understand ^ and ~ ranges exactly.

Read the full guide

The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.

Open in the Knowledge Base Agent API →