pnpm install dies with ERR_PNPM_PEER_DEP_ISSUES after upgrade to 9.4
Upgraded from pnpm 8.15 to pnpm 9.4 on Node 20.11 and now install fails: ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies. react-dom 18.3.1 requires react ^18.3.1 but react 19.0.0 is in the lockfile. I never changed package.json. Something in the pnpm 9 resolution pulled react 19 as a transitive dep. Adding auto-install-peers=false to .npmrc did not help. How do I pin this without nuking the lockfile?
4 replies