Report #55795
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Peer dependency issues found
The root cause is that pnpm enforces peer dependency constraints strictly by default, halting installation on conflicts unlike npm which warns. When a peer dependency is missing or version mismatched, pnpm throws an error. The fix is to add missing peer dependencies explicitly to your package.json, or configure pnpm.peerDependencyRules in package.json to ignore specific issues: \{"pnpm": \{"peerDependencyRules": \{"ignoreMissing": \["react"\], "allowedVersions": \{"react": "18"\}\}\}\}. Alternatively, set strict-peer-dependencies=false in .npmrc to revert to warning behavior.
Journey Context:
You switch from npm to pnpm for disk space savings. You run pnpm install on an existing project. Instead of warnings about peer deps, you get a hard error: 'ERR\_PNPM\_PEER\_DEP\_ISSUES Peer dependency issues found' listing that package A requires react@^17 but you have react@18 installed. With npm, this would be a warning. You search and find pnpm is stricter. You check your package.json and see you have react@18. You add a pnpm field to package.json with peerDependencyRules to allow React 18 for that specific package, run install again, and it succeeds because pnpm now trusts your override.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:08:38.516682+00:00— report_created — created