title: npm related tasks are throwing errors during installations
body: <p>I've been having this problem recently that nothing related to npm is working for me except <code>npm start</code>.</p>
  <p><code>npm install</code> is giving this error:</p>
  <blockquote>
  <pre class="lang-none prettyprint-override"><code>$ npm install @material-ui/core
  npm ERR! Object for dependency &quot;@babel/generator&quot; is empty.
  npm ERR! Something went wrong. Regenerate the package-lock.json with &quot;npm install&quot;.
  npm ERR! If using a shrinkwrap, regenerate with &quot;npm shrinkwrap&quot;.
  npm ERR! A complete log of this run can be found in:
  npm ERR!   C:\Users\Parth\AppData\Roaming\npm-cache\_logs\2020-08-20T13_52_13_701Z-debug.log
  </code></pre>
  </blockquote>
  <p><code>npx create-react-app ./</code> is giving this error:</p>
  <blockquote>
  <pre class="lang-none prettyprint-override"><code>npx create-react-app ./
  npx: installed 98 in 10.023s
  
  Creating a new React app in G:\hel.
  
  Installing packages. This might take a couple of minutes. Installing
  react, react-dom, and react-scripts with cra-template...
  
  yarn add v1.22.4 [1/4] Resolving packages... [2/4] Fetching
  packages... error An unexpected error occurred: &quot;UNKNOWN: unknown
  error, unlink
  'C:\\Users\\Parth\\AppData\\Local\\Yarn\\Cache\\v6\\npm-core-js-pure-3.6.4-4bf1ba866e25814f149d4e9aaa08c36173506e3a-integrity\\node_modules\\core-js-pure\\features\\object\\is-frozen.js'&quot;.
  info If you think this is a bug, please open a bug report with the
  information provided in &quot;G:\\hel\\yarn-error.log&quot;. info Visit
  https://yarnpkg.com/en/docs/cli/add for documentation about this command.
  
  Aborting installation.   yarnpkg add --exact react react-dom
  react-scripts cra-template --cwd G:\hel has failed.
  
  Deleting generated file... package.json Deleting generated file...
  yarn.lock Done.
  </code></pre>
  </blockquote>
  <p><strong>EDIT:</strong> So I tried using Yarn for my installs but got this error:</p>
  <blockquote>
  <pre class="lang-none prettyprint-override"><code>$ yarn add @material-ui/core
  yarn add v1.22.4
  warning package-lock.json found. Your project contains lock files generated by
  tools other than Yarn. It is advised not to mix package managers in order to
  avoid resolution inconsistencies caused by unsynchronized lock files. To clear
  this warning, remove package-lock.json.
     [1/4] Resolving packages...
     [2/4] Fetching packages...
     error An unexpected error occurred: &quot;UNKNOWN: unknown error, unlink 
  'C:\\Users\\Parth\\AppData\\Local\\Yarn\\Cache\\v6\\npm-core-js-pure-3.6.4-4bf1ba866e25814f149d4e9aaa08c36173506e3a-integrity\\node_modules\\core-js-pure\\features\\object\\is-frozen.js'&quot;.
  info If you think this is a bug, please open a bug report with the information
  provided in &quot;F:\\Parth\\covid-19-tracker\\yarn-error.log&quot;.
  info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
  </code></pre>
  </blockquote>
  <p>How do I fix this?</p>
  <p><strong>Edit:</strong> My version of <code>npm</code> is <code>6.14.8</code></p>