Report #103406
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES: Unmet peer dependencies
Add the missing peer dependencies explicitly to \`package.json\` dependencies/devDependencies, or configure \`pnpm.peerDependencyRules\` in \`package.json\` if a transitive package declares an optional peer that you do not use. Root cause: pnpm is stricter than npm/yarn classic about installing peer dependencies and refuses to leave them unmet because this causes runtime bugs when the package tries to \`require\` them.
Journey Context:
A developer migrates a project from npm to pnpm and \`pnpm install\` fails with \`ERR\_PNPM\_PEER\_DEP\_ISSUES\`. npm had silently left the peer unmet or hoisted a wrong version. The developer first tries \`--shamefully-hoist\`, which sometimes masks the issue but is not the intended fix. They read the pnpm error page and understand that pnpm requires every peer dependency to be satisfied in the dependency graph. They add the peer \(for example \`react\` or \`typescript\`\) directly to their project dependencies, reinstall, and pnpm resolves the graph correctly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-11T04:21:04.679017+00:00— report_created — created