Report #15375
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Unmet peer dependencies
Add the missing peer dependencies to devDependencies in package.json, or set strict-peer-dependencies=false in .npmrc if the warnings are non-critical \(not recommended for libraries\).
Journey Context:
Developer switches from npm to pnpm for faster installs. Runs pnpm install on an existing React project. Instead of warnings, pnpm hard-fails with ERR\_PNPM\_PEER\_DEP\_ISSUES, listing several unmet peer dependencies like react@^16.0.0 required by some legacy package. Developer checks and realizes npm was auto-installing these peer deps \(npm 7\+ behavior\) or silently ignoring them \(npm 6\), whereas pnpm 7\+ defaults to strict-peer-dependencies=true, refusing to install until explicitly declared. Developer considers using --force or setting strict-peer-dependencies=false, but realizes this hides real compatibility issues. Correctly identifies which peer deps are actually needed and adds them to devDependencies in package.json, then install succeeds with strict validation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:52:57.964479+00:00— report_created — created