title: Error "Your cache folder contains root-owned files, due to a bug in previous versions of npm" while "npx create-react-app example_app"
body: <p>When I was trying to create a new react app using <code>npx create-react-app example_app</code>, I get this error </p>
  
  <blockquote>
    <p>[Your cache folder contains root-owned files, due to a bug in previous
    versions of npm which has since been addressed sudo chown -R 0:0
    "/root/.npm"]</p>
  </blockquote>
  
  <p>I even tried to re-install <code>create-react-app</code> again using <code>npm i create-react-app</code>, it is giving the same kind of
  <a href="https://i.stack.imgur.com/z9QJA.png" rel="noreferrer">error</a>.</p>
  
  <p>I assume after searching about it that it is due to some permissions issue. My current user doesn't have permission to <code>/home/shubham/.npm</code> where <code>shubham</code> is my username, but I am not so sure about this.</p>
  
  <p>I have tried to solve this error using <code>chown</code> command as</p>
  
  <pre><code>sudo chown -R &lt;username&gt;:&lt;groupname&gt; /home/shubham/.npm" 
  </code></pre>
  
  <p>where <code>&lt;username&gt;</code> is <code>Shubham</code> and <code>&lt;groupame&gt;</code> is <code>1000</code>, but it is still not working.</p>
  
  <p>Request people to help me out.
  If you need any more information, let me know.</p>