Report #50486
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Unmet peer dependencies found in /workspace/package: react@"^17.0.0" required by some-dep but [email protected] installed
Add \`auto-install-peers=true\` to \`.npmrc\` in the project root to automatically install missing peer dependencies, or add \`strict-peer-dependencies=false\` to disable the error, or manually install the specific peer dependencies. Root cause: pnpm defaults to strict peer dependency validation unlike npm/yarn, failing immediately when peer deps are missing or incompatible rather than warning.
Journey Context:
Developer switches from npm to pnpm for a monorepo, runs \`pnpm install\`, and gets dozens of \`ERR\_PNPM\_PEER\_DEP\_ISSUES\` listing unmet peer dependencies for React, TypeScript, ESLint. They try adding the peers to devDependencies in each package but the list seems infinite. They search and find that pnpm 7\+ is stricter than npm by design. They create a \`.npmrc\` file with \`auto-install-peers=true\` and installation succeeds. They learn that pnpm's strictness catches issues npm ignores but requires configuration adjustment for legacy projects.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:13:34.072947+00:00— report_created — created