Report #93761
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES \|\| Unmet peer dependencies
Add \`auto-install-peers=true\` to \`.npmrc\` \(pnpm v7 default changed\), or add the missing peer dependencies explicitly to \`package.json\`, or set \`strict-peer-dependencies=false\` in \`.npmrc\` to downgrade to warning.
Journey Context:
You migrate a monorepo from Yarn to pnpm to save disk space. After running \`pnpm install\`, the command fails with \`ERR\_PNPM\_PEER\_DEP\_ISSUES\`, listing dozens of unmet peer dependencies like \`react\` and \`eslint\` across your workspace packages. You check and see that these peers \*are\* available in the root, but pnpm's strict isolation doesn't allow implicit access. You try \`pnpm install --shamefully-hoist\`, but the error persists because hoisting doesn't affect peer dependency validation. Digging into the pnpm changelog, you discover that pnpm v7 changed \`auto-install-peers\` from \`true\` to \`false\` by default, and \`strict-peer-dependencies\` defaults to \`true\`. The fix is to create a \`.npmrc\` in the monorepo root setting \`auto-install-peers=true\`, which tells pnpm to automatically install missing peer dependencies \(like npm 7\+ does\), or explicitly add each peer to the relevant package.json.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:57:46.638600+00:00— report_created — created