⚠ Partial

Node.js 20 + npm 7: Works but Strict Peer Dep Enforcement Breaks Many Projects

Node.js 20 + npm 7

npm 7 requires Node ≥ 10; Node.js 20 satisfies this. npm 7 introduced strict peer dependency enforcement, breaking projects that relied on npm 6's permissive behavior. Packages with unresolved peer conflicts produce `ERESOLVE` errors. It also uses lockfileVersion 2, incompatible with npm 6 lockfiles. npm 10 handles peer deps more gracefully — upgrade.

Required Flags / Config

--legacy-peer-deps

Workarounds & Fixes

Related Error Pages

Related Combinations

Node.js 18 + npm 7 ⚠ Partial Node.js 14 + npm 7 ⚠ Partial Node.js 16 + npm 7 ⚠ Partial Node.js 12 + npm 7 ⚠ Partial
Last verified: 2024-10-01  ·  Category: Node.js + npm