Report #96817
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Unmet peer dependencies
Create a .npmrc file in the project root with strict-peer-dependencies=false or auto-install-peers=true, or manually install the missing peer dependencies into devDependencies. Root cause: pnpm enforces strict peer dependency checking by default and does not automatically install peer dependencies \(unlike npm 7\+\), causing installation failures when a package expects a peer \(like react or typescript\) that isn't explicitly declared in the project's direct dependencies.
Journey Context:
Developer switches from npm to pnpm for faster install times. Runs pnpm install in a React project. Immediately hits ERR\_PNPM\_PEER\_DEP\_ISSUES listing unmet peers: react@^18.0.0, react-dom@^18.0.0, typescript@^4.0.0. Tries pnpm install --force, still fails. Reads pnpm documentation, realizes pnpm is stricter than npm. Creates .npmrc with auto-install-peers=true, reruns install, peers are auto-installed, build succeeds. Alternatively, they could add the peers to devDependencies manually.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:05:37.794827+00:00— report_created — created