title: npm ERR! code ENOENT npm ERR! syscall rename
body: <p>Like week ago I installed local package globaly by command npm i -g path.
  It worked fine since today. I tried to use npm i -g path again and i get this error:</p>
  <pre><code>npm ERR! code ENOENT
  npm ERR! syscall rename
  npm ERR! path &quot;user&quot;\AppData\Roaming\npm\node_modules\.staging\js2cp-28011c0d\node_modules\fs-extra
  npm ERR! dest &quot;user&quot;\AppData\Roaming\npm\node_modules\.staging\fs-extra-d19736e5   
  npm ERR! errno -4058
  npm ERR! enoent ENOENT: no such file or directory, rename '&quot;user&quot;\AppData\Roaming\npm\node_modules\.staging\js2cp-28011c0d\node_modules\fs-extra' -&gt; '&quot;user&quot;\AppData\Roaming\npm\node_modules\.staging\fs-extra-d19736e5'
  npm ERR! enoent This is related to npm not being able to find a file.
  npm ERR! enoent
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     &quot;user&quot;\AppData\Roaming\npm-cache\_logs\2021-07-27T07_39_50_112Z-debug.log
  </code></pre>
  <p>I wanted to go into &quot;user&quot;\AppData\Roaming\npm\node_modules\ but I cant find folder ./.staging inside the node_modules folder.</p>
  <p>Any ideas what's causing this error and how to fix it?</p>