I have an existing project that installs already with yarn and I was trying to install npm but I faced this errors
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: NamalWoocommerce@0.0.1
npm ERR! Found: react-native@0.63.3
npm ERR! node_modules/react-native
npm ERR! react-native@"0.63.3" from the root project
npm ERR! peer react-native@"*" from react-native-render-html@4.2.5
npm ERR! node_modules/react-native-render-html
npm ERR! react-native-render-html@"^4.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@">=0.60 <0.62" from react-native-webview@8.2.1
npm ERR! node_modules/react-native-webview
npm ERR! react-native-webview@"^8.0.4" from the root project
npm ERR! peer react-native-webview@"*" from react-native-render-html@4.2.5
npm ERR! node_modules/react-native-render-html
npm ERR! react-native-render-html@"^4.2.0" from the root project
npm ERR!
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.
npm ERR!
npm ERR! See C:\Users\Ahmed Al-sudairy\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ahmed Al-sudairy\AppData\Local\npm-cache\_logs\2022-09-17T07_45_05_943Z-debug-0.log
I deleted yarn.lock but I faced same issue