Report #12537
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES / Unmet peer dependency \(strict-peer-dependencies\)
Create .npmrc with strict-peer-dependencies=false or explicitly install the missing peer dependencies
Journey Context:
Developer switches from npm to pnpm for faster installs and disk savings. They clone a React project and run pnpm install. Instead of success, they get ERR\_PNPM\_PEER\_DEP\_ISSUES with a long list of packages like "[email protected] is a peer dependency of react-dom but is not installed". The rabbit hole involves confusion because npm would have just warned and proceeded. Realizing pnpm enforces strict peer dependency checking by default. They try manually adding each peer dep, but for large React/TypeScript projects this is endless \(eslint-plugin-react needs specific react versions, etc.\). They check pnpm docs and find strict-peer-dependencies defaults to true. Creating .npmrc in project root with strict-peer-dependencies=false allows install to proceed, treating peer dep mismatches as warnings like npm. This works because pnpm's strict mode explicitly validates that every peer dependency request in the tree is satisfied by a corresponding top-level or transitive dependency with matching version; disabling it falls back to lenient resolution where missing peers are auto-installed as regular deps or ignored.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:16:36.157196+00:00— report_created — created