title: Getting "Cannot read property 'pickAlgorithm' of null" error in react native
body: <p>I get an error when running <code>npm install</code>.
  The error is:</p>
  <pre><code>npm ERR! Cannot read property 'pickAlgorithm' of null
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!    npm-cache\_logs\2021-10-14T08_03_47_266Z-debug.log
  </code></pre>
  <p>I did the following but the error stays:</p>
  <ol>
  <li>Deleted <code>node-modules</code></li>
  <li>Deleted the given file</li>
  <li>Running <code>npm cache clear --force</code></li>
  </ol>
  <p><strong>Environment:</strong></p>
  <p>OS: Windows 10<br />
  react native: 0.65.1<br />
  Node: 14.17.4<br />
  npm: 7.21.0</p>