npm install aborts with ERESOLVE "Could not resolve dependency tree".
Two packages demand incompatible versions of a shared dependency.
npm ls <package>npm outdated && npm update <old-package>npm install --legacy-peer-deps # legacy npm v6 behavior"overrides": { "react": "^18.2.0" } # in package.jsonLockfile in git; CI installs with npm ci so conflicts surface at PR time.
NinjaOps publishes free engineering guides. Some outbound links are affiliate links: they cost you nothing and support the site.
Last reviewed 2026-10-02 · NinjaOps SEO grid · DevOps blog