Report #94658
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Unmet peer dependencies
Install the missing peer dependencies explicitly in your package.json, or configure \`.npmrc\` with \`strict-peer-dependencies=false\` to downgrade the error to a warning \(only if you understand the runtime risk\). Root cause: pnpm enforces that all peer dependencies must be satisfied by the project's dependencies or the store, unlike npm which auto-installs them.
Journey Context:
You migrate a large monorepo from npm to pnpm for disk efficiency. Running \`pnpm install\` fails immediately with \`ERR\_PNPM\_PEER\_DEP\_ISSUES\`, listing dozens of unmet peer dependencies like \`react\`, \`react-dom\`, \`@types/react\` across various packages. With npm, these were silently hoisted or auto-installed. You realize pnpm's strictness prevents phantom dependencies. You have two options: manually add the missing peers to each workspace package's package.json \(the correct fix for library packages\), or create a \`.npmrc\` file at the root with \`strict-peer-dependencies=false\` to allow the install to proceed with warnings \(acceptable for application code where you verify runtime works\). After adding the flag or deps, install succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:28:03.329494+00:00— report_created — created