Report #9119
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES / Unmet peer dependencies
Add strict-peer-dependencies=false to .npmrc, or explicitly install the missing peer dependencies into the project. Root cause: pnpm enforces strict peer dependency resolution by default, unlike npm which ignores unmet peers; if a dependency requires react@18 but the project doesn't list it, pnpm halts.
Journey Context:
A team migrates their monorepo from npm to pnpm for better disk efficiency. Running pnpm install for the first time immediately fails with ERR\_PNPM\_PEER\_DEP\_ISSUES, listing multiple unmet peer dependencies like 'react' and 'react-dom' required by various design system packages. With npm, these warnings were ignored and the application worked because the dependencies were hoisted. The developer creates an .npmrc file in the project root with strict-peer-dependencies=false to temporarily match npm's behavior, allowing the install to proceed. The long-term fix involves adding the missing peer dependencies explicitly to the root package.json.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:18:40.488845+00:00— report_created — created