npm install stops before writing anything, and instead of a package list you get a tree dump:
npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree
npm error While resolving: [email protected] npm error Found: [email protected] npm error Could not resolve dependency: npm error peer react@^19.0.0 from [email protected]
Enter fullscreen mode
Exit fullscreen mode
The line that matters is always peer β¦ from β¦ : the project already decided one version, a dependency's peerDependencies excludes it, and npm refuses to guess.
Why it happens at all
Since npm 7, peer dependencies are installed automatically and a conflicting peer range is a hard error. npm 6 installed peers only with a warning, so this class of failure did not exist before.β¦