Report #103683
[bug\_fix] ERESOLVE unable to resolve dependency tree
Use \`--legacy-peer-deps\` flag or manually install the correct version of the conflicting peer dependency. Alternatively, upgrade/downgrade the package to a version that satisfies peer dependency constraints.
Journey Context:
A developer on Node 18 with npm 9 tried to install \`[email protected]\` alongside \`react@17\` \(instead of the required \`react@18\`\). npm 7\+ introduced strict peer dependency resolution, causing an ERESOLVE error that halted the install. The developer first tried \`--force\` which bypasses but can break runtime, then discovered \`--legacy-peer-deps\` which reverts to the npm v6 behavior of warning instead of error. The root cause is that npm changed peer dep handling from a warning to a hard error to prevent silent runtime failures. The fix works by ignoring the mismatch, but the recommended long-term fix is to align versions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-12T20:04:03.964885+00:00— report_created — created