Report #9492
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Unmet peer dependencies
Install the missing peer dependencies explicitly in your package.json, or configure .pnpmfile.cjs to ignore the peer dependency if it's a false positive, or set strict-peer-dependencies=false in .npmrc to revert to warning-only behavior similar to npm.
Journey Context:
You migrate from npm to pnpm and run pnpm install. Instead of warnings, pnpm fails with strict peer dependency errors listing '@vitejs/plugin-react' requires 'vite@^4.0.0' but none is installed, or 'react' is a peer dependency not found. You check the pnpm documentation on peer dependencies and learn pnpm is strict by default unlike npm. You have three options: 1\) Add the missing peer deps to your devDependencies \(pnpm will deduplicate them properly\), 2\) Create a .pnpmfile.cjs to override and ignore specific peer deps if you know they're not needed, 3\) Add strict-peer-dependencies=false to .npmrc to disable strict checking. You choose option 1 for correctness, install the missing peers, and pnpm install succeeds.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:18:25.804432+00:00— report_created — created