⚠ Partial

Node.js 16 + npm 7: Works but Peer Dependency Strictness Breaks Older Projects

Node.js 16 + npm 7

npm 7 was the default shipped with Node.js 16.x initial releases. Its strict peer dependency enforcement broke many projects that worked fine on npm 6. Packages with unresolved peer conflicts produce `ERESOLVE` errors requiring `--legacy-peer-deps`. Node.js 16 is EOL (September 2023). Upgrade both.

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 20 + npm 7 ⚠ Partial Node.js 12 + npm 7 ⚠ Partial
Last verified: 2024-06-01  ·  Category: Node.js + npm