Report #104205
[bug\_fix] ERESOLVE unable to resolve dependency tree
Add \`--legacy-peer-deps\` flag to npm install, or use \`overrides\` in package.json to force a specific version of the conflicting peer dependency.
Journey Context:
A developer upgrading a React project from npm v6 to v7 encountered ERESOLVE when running \`npm install\`. The error listed multiple peer dependency conflicts between react-scripts, eslint-plugin-react, and an older version of eslint. After reading the npm blog on strict peer dep resolution, the developer tried \`npm install --legacy-peer-deps\` which resolved it. Later, they added an \`overrides\` section to package.json for eslint to permanently fix the conflict without the flag.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-19T20:02:47.661277+00:00— report_created — created