Report #14557
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Unmet peer dependencies
Add strict-peer-dependencies=false to .npmrc to downgrade errors to warnings, or explicitly install the missing peer dependencies into devDependencies, or set auto-install-peers=true in .npmrc \(pnpm 7.14\+\) to automatically install peer deps like npm/yarn.
Journey Context:
Developer switches from npm to pnpm for faster installs and disk space savings. Runs pnpm install on an existing React project. Immediately fails with ERR\_PNPM\_PEER\_DEP\_ISSUES listing multiple unmet peer dependencies like 'react' and 'react-dom' required by various packages. Developer confused because npm install worked fine without explicitly listing react as a devDependency \(it was a peer dep satisfied by the top level\). Realizes pnpm is stricter about peer dependencies by default \(strict-peer-dependencies=true\). Initially just wants it to work like npm, so creates .npmrc with strict-peer-dependencies=false. Install succeeds with warnings. Later learns better practice is to explicitly add the peer deps \(like react\) to devDependencies if they're used for testing/building but not bundled, or upgrade to pnpm 7.14\+ and enable auto-install-peers=true in .npmrc to get npm-like automatic peer installation behavior.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:50:42.112127+00:00— report_created — created