Report #6111
[bug\_fix] ERR\_PNPM\_PEER\_DEP\_ISSUES or ERR\_PNPM\_HOISTING\_NOT\_WANTED
Use pnpm.peerDependencyRules.ignoreMissing or auto-install-peers=true in .npmrc, or strictly declare all peer deps
Journey Context:
Migrated from npm to pnpm for disk space efficiency. Running pnpm install on existing project fails with ERR\_PNPM\_PEER\_DEP\_ISSUES listing multiple unmet peer dependencies. npm used to ignore these or warn. pnpm is stricter about peer dependencies by default. Also encountered hoisting issues where packages expected dependencies to be flattened in node\_modules root, but pnpm's strict node\_modules structure doesn't allow accessing undeclared deps. Tried adding auto-install-peers=true to .npmrc which resolved the peer dep issues. For hoisting, added node-linker=hoisted to .npmrc to emulate npm's flat structure, or better, fixed the packages to properly declare their dependencies.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:12:11.666465+00:00— report_created — created