Report #41312
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Unmet peer dependencies
Add strict-peer-dependencies=false to .npmrc in the project root, or install the missing peer dependencies explicitly. Alternatively, use pnpm.peerDependencyRules.ignoreMissing in package.json for specific packages.
Journey Context:
Developer migrates from npm to pnpm for faster disk usage. Runs pnpm install on an existing React project. Immediately gets ERR\_PNPM\_PEER\_DEP\_ISSUES listing multiple unmet peer dependencies \(e.g., [email protected] requires react@^18.0.0 but found [email protected]\). The install stops completely. Developer tries pnpm install --force which works but feels wrong. Investigating pnpm behavior reveals that pnpm is stricter than npm 6 \(which ignored peers\) and npm 7\+ \(which auto-installs but allows conflicts differently\). The error occurs because pnpm enforces that every peer dependency must be satisfied by the parent's dependencies. Solution: create .npmrc with strict-peer-dependencies=false to allow the install to proceed like npm, then address the peer conflicts by upgrading React to match requirements, or install the missing peers explicitly \(pnpm add react@18\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T23:49:03.212324+00:00— report_created — created