Report #5161
[bug\_fix] ERR\_PNPM\_MISSING\_PEER\_DEPENDENCY or ERR\_PNPM\_PEER\_DEP\_ISSUES
Install the missing peer dependency explicitly in the project root \(e.g., \`pnpm add react@18\`\), or create a \`.npmrc\` file with \`strict-peer-dependencies=false\` to downgrade the error to a warning \(matching npm behavior\).
Journey Context:
Developer migrates an existing npm project to pnpm for faster installs. Runs \`pnpm install\`. Instead of warnings, pnpm halts with ERR\_PNPM\_PEER\_DEP\_ISSUES, listing multiple packages that have unmet peer dependencies \(e.g., a UI library expecting React 16-18, but React isn't in the project's deps because it was provided by a parent monorepo package\). Developer tries adding the peer to the root package.json, but the error persists because the version range doesn't satisfy all dependents. Developer considers using \`pnpm install --force\`, but reads that pnpm expects explicit handling. They create a \`.npmrc\` in the project root with \`strict-peer-dependencies=false\`, allowing the install to proceed with warnings only, similar to npm's behavior. Alternatively, they correctly identify that a missing \`react\` and \`react-dom\` need to be added to the workspace root to satisfy the graph.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:45:38.351381+00:00— report_created — created