Report #11448
[bug\_fix] ERESOLVE unable to resolve dependency tree - peer dependency conflicts when npm install runs
Add the --legacy-peer-deps flag to npm install \(e.g., npm install --legacy-peer-deps\) to restore npm 6.x peer dependency resolution behavior, or downgrade to npm 6, or manually resolve the peer dependency version ranges in package.json.
Journey Context:
Developer upgrades from Node 14/npm 6 to Node 18/npm 8 and clones a legacy React 17 project. Runs npm install and hits ERESOLVE with conflicts between react-scripts and eslint-plugin-react peer dependencies. Deletes node\_modules and package-lock.json three times, retries, same error. Checks npm version \(8.19\), searches ERESOLVE, finds npm 7 introduced strict peer dependency resolution in arborist. Tries --legacy-peer-deps flag, installation completes successfully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T13:20:23.829375+00:00— report_created — created