Report #97767
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Unmet peer dependencies react: found 18.3.1, wanted ^17.0.0
Install the missing peer dependencies explicitly \(pnpm add react@^17.0.0\), or add a peerDependencyRules block in package.json to ignore missing/allowed versions: \{"pnpm": \{"peerDependencyRules": \{"ignoreMissing": \["react"\], "allowedVersions": \{"react": "18"\}\}\}\}. Then run pnpm install again.
Journey Context:
You migrate a repo from npm to pnpm and suddenly pnpm install fails with ERR\_PNPM\_PEER\_DEP\_ISSUES, listing ten unmet peer deps that npm silently accepted. pnpm's strict peer dependency checks are intentional: they catch version mismatches at install time instead of runtime. You first try pnpm install --config.auto-install-peers=true, which works but pollutes package.json. The documented route is either to declare the peers your project actually provides, or to whitelist known-safe mismatches with peerDependencyRules. This keeps the monorepo deterministic and surfaces incompatibilities early.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T04:39:59.921902+00:00— report_created — created