Report #15142
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Unmet peer dependencies
Add auto-install-peers=true to .npmrc to automatically install peer dependencies \(similar to npm 7\+ behavior\), or add strict-peer-dependencies=false to allow installation despite unmet peers.
Journey Context:
You migrate a project from npm to pnpm for faster installs. You run pnpm install and immediately get ERR\_PNPM\_PEER\_DEP\_ISSUES, listing dozens of unmet peer dependencies for React, React-DOM, etc. You check node\_modules and see the packages are installed, but pnpm is complaining they're not available as peers. You try using --shamefully-hoist but that defeats the purpose of pnpm. You read the pnpm documentation and learn that unlike npm 7\+, pnpm does NOT auto-install peer dependencies by default \(to save space and avoid phantom dependencies\). The error occurs because your packages declare peers but pnpm won't auto-install them. The fix is creating a .npmrc with auto-install-peers=true to opt into npm-like behavior, or strict-peer-dependencies=false to ignore the warnings.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:17:35.367864+00:00— report_created — created