npm ERR! Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps

56 Views Asked by At
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]

npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

I tried to install react-native-tesseract-ocr. But I faced the mentioned issue.

1

There are 1 best solutions below

1
Dusk On

npm config set legacy-peer-deps true

It solved the error in my case