Report #6749
[bug\_fix] ERESOLVE unable to resolve dependency tree
Run npm install with the --legacy-peer-deps flag, or set legacy-peer-deps=true in .npmrc. This reverts to npm 6 behavior where peer dependencies are not automatically installed, bypassing the version conflict.
Journey Context:
You upgrade to Node 18/20 which ships with npm 9, or a teammate updates the lockfile. You run npm install and hit ERESOLVE. The error log shows two packages requesting incompatible versions of react \(e.g., ^17.0.0 vs ^18.0.0\). You check package.json—only one version is listed. You realize npm 7\+ auto-installs peer deps, causing the conflict. You try updating packages but it's a breaking change. After reading the npm docs, you add --legacy-peer-deps and install succeeds by ignoring the peer conflict.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T00:49:45.325128+00:00— report_created — created