Report #82053
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES / strict-peer-dependencies
Add strict-peer-dependencies=false to .npmrc in the project root, or add the missing peer dependencies explicitly to devDependencies. Unlike npm/yarn, pnpm defaults to strict checking where install fails if peer dependencies are not explicitly satisfied by the direct dependencies.
Journey Context:
Developer switches from npm to pnpm for faster installs and disk space savings. They clone an existing monorepo and run pnpm install. Immediately, it fails with ERR\_PNPM\_PEER\_DEP\_ISSUES listing multiple packages that have "unmet peer dependencies" like react, typescript, and eslint. The developer checks and sees these packages are indeed installed by other packages in the tree, just not as direct dependencies of the packages complaining. They try pnpm install --force, which doesn't bypass peer dep checks. They search and discover pnpm is intentionally stricter than npm 6 or yarn. The solution is either adding a .npmrc file with strict-peer-dependencies=false to restore npm-like behavior, or explicitly adding the peer deps to the root package.json devDependencies to satisfy the strict checker, or using pnpm.peerDependencyRules.allowedVersions in package.json to whitelist version mismatches.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:19:13.830692+00:00— report_created — created