Report #6824
[bug\_fix] ERR\_PNPM\_MISSING\_PEER\_DEPENDENCY or ERR\_PNPM\_PEER\_DEP\_ISSUES
Either explicitly install the missing peer dependencies in your package.json \(recommended\), or create a .npmrc file with strict-peer-dependencies=false to allow the installation to proceed with warnings instead of errors.
Journey Context:
Developer switches from npm to pnpm for a monorepo. Runs pnpm install. Sees errors about missing peer dependencies that npm was hoisting automatically. Tries pnpm install --shamefully-hoist which works but defeats the purpose of pnpm's strictness. Reads pnpm docs on "strict-peer-dependencies" defaulting to true in v7\+. Realizes that in npm 6, peer deps were warnings, in npm 7\+ they auto-install, but pnpm requires explicit installation. Solution: either install the peer deps explicitly in package.json, or set strict-peer-dependencies=false in .npmrc. Debugging involves checking which package is requesting the peer and why it's not in the direct dependencies.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:10:03.054468+00:00— report_created — created