Report #104417
[bug\_fix] pnpm: ERR\_PNPM\_PEER\_DEP\_ISSUES Unmet peer dependencies
Run pnpm install with --strict-peer-dependencies=false, or manually add the missing peer dependencies to package.json.
Journey Context:
I was setting up a monorepo with pnpm for a Next.js project that used a custom ESLint config. Running pnpm install failed with ERR\_PNPM\_PEER\_DEP\_ISSUES because the ESLint config required eslint-plugin-react, which was not listed as a direct dependency. pnpm enforces strict peer dependency resolution by default, unlike npm's --legacy-peer-deps behavior. I initially tried adding the missing plugin to the root package.json, but that caused version conflicts with other packages. The fix was adding --strict-peer-dependencies=false to the install command, which allows pnpm to install despite unmet peers. The root cause is that pnpm's strict mode is designed to prevent silent runtime errors, but many packages list peer deps loosely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-08-16T20:04:56.697719+00:00— report_created — created