Report #71028
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES Peer dependencies that should be installed
Install the missing peer dependencies explicitly into your project's \`dependencies\` or \`devDependencies\`. Alternatively, create \`.npmrc\` in project root with \`strict-peer-dependencies=false\` to downgrade the error to a warning \(matching npm's behavior\), though explicit installation is recommended for reproducibility.
Journey Context:
Developer switches from npm to pnpm for better disk usage. Clones existing React project. Runs \`pnpm install\`. Instead of success, gets \`ERR\_PNPM\_PEER\_DEP\_ISSUES\` listing 'react' and 'react-dom' as missing peer dependencies for 'react-router-dom'. Developer confused: "npm install worked fine\!". Checks react-router-dom's package.json, sees \`peerDependencies: \{ react: ">=16.8" \}\`. Realizes npm v7\+ would auto-install these, but pnpm is stricter and requires explicit declaration. Developer initially sets \`strict-peer-dependencies=false\` in \`.npmrc\` to unblock work. Later, they properly add \`react\` and \`react-dom\` to their own \`package.json\` dependencies \(even though they're already there indirectly\), satisfying pnpm's strict checker and making the dependency graph explicit.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:48:11.013191+00:00— report_created — created