title: Why am I getting "npm WARN tarball tarball data for ... seems to be corrupted. Trying again." when using Node 18/NPM8?
body: <p>I have a simple project that was installing fine on 17. I upgraded my node version to 18 and now I get these for all the deps when I run <code>npm i</code>...</p>
  <pre><code>npm WARN tarball tarball data for node-notifier@https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.2.tgz (sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg==) seems to be corrupted. Trying again.
  npm WARN tar zlib: incorrect data check
  npm WARN tarball tarball data for handlebars@https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz (sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==) seems to be corrupted. Trying again.
  npm WARN tar zlib: incorrect data check
  npm WARN tarball tarball data for esbuild-darwin-64@https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.13.14.tgz (sha512-YmOhRns6QBNSjpVdTahi/yZ8dscx9ai7a6OY6z5ACgOuQuaQ2Qk2qgJ0/siZ6LgD0gJFMV8UINFV5oky5TFNQQ==) seems to be corrupted. Trying again.
  npm WARN tar TAR_ENTRY_INVALID checksum failure
  ...
  npm WARN tar TAR_ENTRY_INVALID invalid base256 encoding
  npm WARN tar TAR_ENTRY_INVALID invalid base256 encoding
  npm WARN tar TAR_ENTRY_INVALID checksum failure
  npm WARN tar TAR_ENTRY_INVALID checksum failure
  ...
  
  npm ERR! code Z_DATA_ERROR
  npm ERR! errno -3
  npm ERR! zlib: incorrect data check
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /Users/.../.npm/_logs/2021-11-19T16_22_54_385Z-debug.log
  </code></pre>
  <p>I have tried <code>npm cache clear --force</code> but that doesn't seem to help.</p>
  <p>What is wrong and why are the deps marked as invalid?</p>
  <pre><code>node --version
  v18.0.0-pre
  </code></pre>
  <p><strong>Other Steps</strong></p>
  <ol>
  <li>I tried removing ~/.npm (I am on MacOs) but that didn't help</li>
  <li>Deleted all node_modules and package-lock</li>
  </ol>