Report #100975
[bug\_fix] npm WARN ERESOLVE overriding peer dependency npm WARN Found: [email protected] npm WARN Could not resolve dependency: peer eslint@^7.0.0 from [email protected]
Install a version of the peer dependency that satisfies the constraint, or update the plugin/package that declares the stale peer requirement, or use --legacy-peer-deps as a temporary workaround if you have verified the versions are actually compatible.
Journey Context:
You add a new ESLint plugin and npm install starts warning about peer dependencies. In npm 6 it would finish anyway; in npm 7\+ the install halts. The message tells you exactly which package expects which range. You check the plugin's package.json and see peerDependencies: \{ eslint: ^7.0.0 \} while your project uses eslint 8. You either downgrade eslint to ^7, upgrade the plugin to a version supporting eslint 8, or add --legacy-peer-deps if you've tested that the plugin works fine with eslint 8 despite the declared range.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-06T04:46:33.485614+00:00— report_created — created