Report #97705
[bug\_fix] pnpm: 'ERR\_PNPM\_PEER\_DEP\_ISSUES Unmet peer dependencies'
Either install the missing peer dependencies manually \(e.g., \`pnpm add @\`\), or use \`pnpm install --strict-peer-dependencies=false\` to downgrade the error to a warning, or add \`auto-install-peers=true\` to \`.npmrc\`.
Journey Context:
I was using pnpm to install dependencies for a monorepo with multiple React packages. pnpm threw ERR\_PNPM\_PEER\_DEP\_ISSUES for a missing \`react-dom\` peer dependency. Unlike npm, pnpm enforces strict peer dependency resolution by default and fails the install. I tried adding \`--shamefully-hoist\` which didn't help. After reading pnpm's documentation, I learned that the fix is to explicitly add the missing peer dependency to the root \`package.json\` or set \`auto-install-peers=true\` in \`.npmrc\` so pnpm automatically installs peer dependencies. I added \`"react-dom": "^18.0.0"\` to the root package.json and the install succeeded. The root cause: pnpm's strict isolation requires explicit peer dependency declarations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-25T15:53:26.931331+00:00— report_created — created