Report #5621
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES unmet peer dependencies found
Add the missing peer dependencies to devDependencies in package.json, or create a .npmrc file with strict-peer-dependencies=false to allow installation despite warnings.
Journey Context:
Developer migrates a React project from npm to pnpm. Runs pnpm install and immediately gets ERR\_PNPM\_PEER\_DEP\_ISSUES, listing 'react' and 'react-dom' as unmet peers of various packages. Confused because the project uses React and it works with npm. Developer reads the error message which mentions strict-peer-dependencies. Searches 'pnpm strict peer dependencies', finds pnpm documentation explaining that pnpm v7\+ is strict by default, unlike npm 6 or pnpm 6. Options are: manually add react to devDependencies \(since it's a peer\), set strict-peer-dependencies=false in .npmrc to allow the install \(mimicking npm 6\), or use auto-install-peers=true \(pnpm 8 default\) to automatically add them. Developer chooses to set strict-peer-dependencies=false temporarily to unblock migration, then later cleans up peer deps properly.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:46:02.618543+00:00— report_created — created