Report #8154
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES / Unmet peer dependencies \(strict-peer-dependencies\)
Add strict-peer-dependencies=false to .npmrc or install the missing peer dependencies explicitly. Root cause: pnpm defaults to strict peer dependency checking, treating missing peers as fatal errors rather than warnings like npm.
Journey Context:
Switched team project from npm to pnpm for disk space savings. Ran pnpm install and immediately got ERR\_PNPM\_PEER\_DEP\_ISSUES listing dozens of missing peer dependencies like react, eslint. npm had installed successfully by ignoring these or inferring them. Tried installing the peers but they conflicted with existing versions. Checked pnpm docs and found strict-peer-dependencies setting in .npmrc. Setting this to false makes pnpm warn instead of error, matching npm's behavior and allowing the install to proceed while still logging the peer issues for later cleanup.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:45:22.445372+00:00— report_created — created