Report #44733
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Peer dependencies that should be installed
Install the missing peer dependencies explicitly in devDependencies, or configure \`.npmrc\` with \`strict-peer-dependencies=false\` to allow installation to proceed \(use with caution\). Root cause: pnpm enforces strict peer dependency satisfaction by default, unlike npm 6 or Yarn classic, failing the install if peers are not explicitly present in the dependency tree.
Journey Context:
Developer switches from npm to pnpm for disk space savings. They run \`pnpm install\` on an existing React project. Instead of installing, pnpm errors with ERR\_PNPM\_PEER\_DEP\_ISSUES, listing "react@^18.0.0 is an optional peer dependency of [email protected] but none is installed". Developer is confused because they have react in dependencies. They check and realize react is there, but the strict resolution is failing due to a complex transitive peer chain. They try \`pnpm install --shamefully-hoist\` but that doesn't help. Reading pnpm docs, they learn about \`strict-peer-dependencies=false\` setting in \`.npmrc\`. Adding that allows the install to proceed like npm. Alternatively, they manually add the specific peer versions to devDependencies to satisfy the strict checker.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:33:13.565770+00:00— report_created — created