title: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree in react
body: <p>I am doing a mern project in that I used the following command</p>
  <p><strong>npm i react-router-dom axios react-paypal-express-checkout</strong></p>
  <p>In that I faced the following error</p>
  <pre><code>npm ERR! code ERESOLVE
  npm ERR! ERESOLVE unable to resolve dependency tree
  npm ERR! 
  npm ERR! While resolving: client@0.1.0
  npm ERR! Found: react@18.0.0
  npm ERR! node_modules/react
  npm ERR!   react@&quot;^18.0.0&quot; from the root project
  npm ERR! 
  npm ERR! Could not resolve dependency:
  npm ERR! peer react@&quot;~0.14.8 || ^15.5.0&quot; from react-paypal-express-checkout@1.0.5
  npm ERR! node_modules/react-paypal-express-checkout
  npm ERR!   react-paypal-express-checkout@&quot;*&quot; 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\nahee\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\nahee\AppData\Local\npm-cache\_logs\2022-04-11T15_43_33_096Z-debug.log
  </code></pre>
  <p>And my package.json file is:</p>
  <pre><code>{
    &quot;name&quot;: &quot;animal_feedmart&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;dependencies&quot;: {
      &quot;bcrypt&quot;: &quot;^5.0.0&quot;,
      &quot;cloudinary&quot;: &quot;^1.23.0&quot;,
      &quot;concurrently&quot;: &quot;^5.3.0&quot;,
      &quot;cookie-parser&quot;: &quot;^1.4.5&quot;,
      &quot;cors&quot;: &quot;^2.8.5&quot;,
      &quot;dotenv&quot;: &quot;^8.2.0&quot;,
      &quot;express&quot;: &quot;^4.17.1&quot;,
      &quot;express-fileupload&quot;: &quot;^1.2.0&quot;,
      &quot;jsonwebtoken&quot;: &quot;^8.5.1&quot;,
      &quot;mongoose&quot;: &quot;^5.10.1&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;nodemon&quot;: &quot;^2.0.4&quot;
    }
  }
  </code></pre>
  <p>Can anyone help me to clear this error.</p>
  <p>Thanks in advance</p>