Report #52080
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES peer dependencies that should be installed
Add \`strict-peer-dependencies=false\` to \`.npmrc\` to restore warning-only behavior like npm 6, or explicitly install the missing peer dependencies using \`pnpm add\` to satisfy the strict requirements.
Journey Context:
Developer switches from npm to pnpm for disk space efficiency. Runs \`pnpm install\` on existing React project. Immediately fails with \`ERR\_PNPM\_PEER\_DEP\_ISSUES\` listing multiple packages that have unmet peer dependencies \(react, react-dom\). Developer checks package.json - react is listed there. Confused, reads the error details: transitive dependencies \(like react-router\) have peer dependencies on specific React versions that aren't satisfied by the hoisted structure. Developer tries \`pnpm add react@17 react-dom@17\` but still fails because sub-deps want React 16. Researching pnpm documentation, discovers pnpm is stricter than npm about peer dependencies by design. Two paths: set \`strict-peer-dependencies=false\` in \`.npmrc\` to get npm-like warning behavior, or use pnpm's ability to override peer dependencies via \`package.json\` \`pnpm\` field. Chooses the .npmrc config for migration compatibility, allowing install to proceed with warnings while addressing actual peer conflicts incrementally.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:54:34.847951+00:00— report_created — created