title: Why does npm install fetch an old version of the package?
body: <p>I'm trying to run this command:</p>
  <blockquote>
  <p>npm install --save react-highlight-words@0.16.0</p>
  </blockquote>
  <p>Which fails with this message:</p>
  <pre><code>npm install --save react-highlight-words@0.16.0
  (node:16708) ExperimentalWarning: The fs.promises API is experimental
  npm ERR! code ERESOLVE
  npm ERR! ERESOLVE unable to resolve dependency tree
  npm ERR! 
  npm ERR! While resolving: admin_fe@1.0.0
  npm ERR! Found: react@17.0.2
  npm ERR! node_modules/react
  npm ERR!   dev react@&quot;^17.0.2&quot; from the root project
  npm ERR! 
  npm ERR! Could not resolve dependency:
  npm ERR! peer react@&quot;^0.14.0 || ^15.0.0 || ^16.0.0-0&quot; from react-highlight-words@0.16.0
  npm ERR! node_modules/react-highlight-words
  npm ERR!   react-highlight-words@&quot;0.16.0&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 /Users/amitruparel/.npm/eresolve-report.txt for a full report.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /Users/amitruparel/.npm/_logs/2021-10-08T01_17_59_650Z-debug.log
  </code></pre>
  <p>However looking at the <a href="https://github.com/bvaughn/react-highlight-words/blob/master/package.json" rel="nofollow noreferrer">github code</a> for this package:</p>
  <pre><code>  &quot;peerDependencies&quot;: {
      &quot;react&quot;: &quot;^0.14.0 || ^15.0.0 || ^16.0.0-0 || ^17.0.0-0&quot;
    }
  </code></pre>
  <p>it does seem to support React v17 (which I have)</p>
  <p>So I don't understand why is npm not letting me install this package?</p>