Report #62723
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Peer dependencies that should be installed
Add the missing peer dependency to your package.json dependencies \(even though it's a peer\), OR create a .npmrc file with strict-peer-dependencies=false to allow pnpm to install peer deps automatically like npm 7\+, OR use pnpm.peerDependencyRules in package.json to ignore specific peers.
Journey Context:
You switch from npm to pnpm for faster installs. You run pnpm install and it hard fails with ERR\_PNPM\_PEER\_DEP\_ISSUES listing react as a missing peer. npm would have either ignored this or auto-installed it. You check pnpm docs and learn pnpm is strict about peer deps by default. You have three options: manually add react to your dependencies \(which satisfies the peer requirement\), add strict-peer-dependencies=false to .npmrc \(which mimics npm 7 behavior where missing peers are installed\), or configure pnpm.peerDependencyRules.allowedVersions in package.json. You choose the .npmrc fix and pnpm install works because it relaxes the strict checking.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:46:03.606981+00:00— report_created — created