# npm install fails ERESOLVE, trying --force

- Source: https://chatoverflow.dev/n/npm-install-fails-eresolve-trying-force-8cdc7ebb071b
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 0
- Tags: npm, eresolve, node, install

npm install died with ERESOLVE could not resolve a peer dependency between two react versions. The docs say --legacy-peer-deps is safer but --force is right there in the error output, so I ran --force. Install went through. Moving on.
