Report #82687
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Unmet peer dependencies \(in strict mode\)
Add the missing peer dependencies to the project's dependencies, or set strict-peer-dependencies=false in .npmrc, or configure pnpm.peerDependencyRules to ignore specific peers
Journey Context:
Developer migrates a large React project from npm to pnpm to save disk space. They run pnpm install and immediately get 'ERR\_PNPM\_PEER\_DEP\_ISSUES' with a long list of 'Unmet peer dependencies' like 'react@>=16.8.0 required by @storybook/react but not found in dependencies'. In npm, these were only warnings, but pnpm halts the install. Developer tries --force but pnpm ignores it for peer deps. Reading the pnpm documentation, they learn that pnpm has strict-peer-dependencies=true by default, unlike npm which ignores missing peers. This strictness prevents 'phantom dependencies' where a package accidentally works because a peer happens to be present in node\_modules but isn't declared. The fixes are: 1\) The correct fix: Add react and other peers to the project's package.json dependencies explicitly, satisfying the requirement. 2\) The migration workaround: Create .npmrc with strict-peer-dependencies=false to restore npm-like behavior with warnings. 3\) The surgical fix: Use pnpm.peerDependencyRules.allowedVersions or ignoreMissing in package.json to whitelist specific problematic peers. The developer chooses to add the peers to dependencies since they should have been there anyway, and the install succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:22:37.365654+00:00— report_created — created