Report #14987
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES · Unmet peer dependencies
Add the missing peer dependencies explicitly to the project's dependencies or devDependencies. Alternatively, create a .npmrc file in the project root with strict-peer-dependencies=false to downgrade peer dependency issues to warnings, or set auto-install-peers=true \(experimental in pnpm 8\) to allow automatic installation of peer dependencies.
Journey Context:
A developer migrates a large React monorepo from yarn 1 to pnpm. Running pnpm install immediately halts with ERR\_PNPM\_PEER\_DEP\_ISSUES, listing 15 unmet peer dependencies including 'react@>=16.8.0' and 'react-dom@^17.0.0'. The developer attempts to install them globally, but pnpm ignores global packages for peer resolution. The rabbit hole reveals that unlike yarn or npm 6, pnpm enforces strict peer dependencies by default and does not hoist them automatically to prevent 'phantom dependencies' \(where a package uses a dependency it didn't declare because it was hoisted by the package manager\). The developer adds the specific missing peer deps to the root package.json devDependencies. The strict-peer-dependencies=false .npmrc option works because it tells pnpm's resolver \(@pnpm/resolve-dependencies\) to treat unmet peer dependencies as warnings rather than fatal errors during the installation lifecycle. This maintains the installation while still logging the peer dependency debt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T22:52:26.919577+00:00— report_created — created