title: Can't install NPM dependencies on Windows 10
body: <p>Not too sure what's changed with Node.js and NPM recently (i.e. in the last several days) but I can't seem to find a way to install <code>node_modules</code> dependencies for any projects using Node.js on Windows 10 anymore...</p>
  
  <p>My current setup is as follows:</p>
  
  <p><code>Node.js: v9.5.0
   NPM: v5.6.0
   Vue.js: v2.9.3</code></p>
  
  <p>I've tried clearing the cache prior to install: <code>npm cache clear -f</code></p>
  
  <p>Any time I attempt to run <code>npm i</code> or <code>npm install</code> I'm presented with the following list of errors:</p>
  
  <pre><code>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents): 
  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, rename 'C:\xampp\htdocs\vue-scrolling-table-sample\node_modules\.staging\fsevents-a6c1bd51\node_modules\abbrev' -&gt; 'C:\xampp\htdocs\vue-scrolling-table-sample\node_modules\.staging\abbrev-3ab84c45'
  
  npm ERR! path C:\xampp\htdocs\vue-scrolling-table-sample\node_modules\acorn
  npm ERR! code ENOENT
  npm ERR! errno -4058
  npm ERR! syscall rename
  npm ERR! enoent ENOENT: no such file or directory, rename 'C:\xampp\htdocs\vue-scrolling-table-sample\node_modules\acorn' -&gt; 'C:\xampp\htdocs\vue-scrolling-table-sample\node_modules\.acorn.DELETE'
  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!     C:\Users\mbosse\AppData\Roaming\npm-cache\_logs\2018-02-14T18_27_56_988Z-debug.log
  </code></pre>
  
  <p>The specified debug.log contains the follow:</p>
  
  <blockquote>
    <p>19859 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3
    (node_modules\fsevents):</p>
    
    <p>19860 warn optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, rename'C:\xampp\htdocs\vue-scrolling-table-sample\node_modules.staging\fsevents-a6c1bd51\node_modules\abbrev' -> 'C:\xampp\htdocs\vue-scrolling-table-sample\node_modules.staging\abbrev-3ab84c45'</p>
    
    <p>19861 verbose optional SKIPPING OPTIONAL DEPENDENCY: </p>
    
    <p>19861 verbose optional Please try running this command again as root/Administrator.</p>
    
    <p>19862 verbose stack Error: ENOENT: no such file or directory, rename 'C:\xampp\htdocs\vue-scrolling-table-sample\node_modules\acorn' -> 'C:\xampp\htdocs\vue-scrolling-table-sample\node_modules.acorn.DELETE'</p>
    
    <p>19863 verbose cwd C:\xampp\htdocs\vue-scrolling-table-sample</p>
    
    <p>19864 verbose Windows_NT 10.0.14393 </p>
    
    <p>19865 verbose argv "C:\ProgramFiles\nodejs\node.exe" "C:\ProgramFiles\nodejs\node_modules\npm\bin\npm-cli.js" "i" </p>
    
    <p>19866 verbose node v9.5.0 </p>
    
    <p>19867 verbose npm  v5.6.0 </p>
    
    <p>19868 error path C:\xampp\htdocs\vue-scrolling-table-sample\node_modules\acorn </p>
    
    <p>19869 error code ENOENT </p>
    
    <p>19870 error errno -4058</p>
    
    <p>19871 error syscall rename</p>
    
    <p>19872 error enoent ENOENT: no such file or directory, rename 'C:\xampp\htdocs\vue-scrolling-table-sample\node_modules\acorn' ->  'C:\xampp\htdocs\vue-scrolling-table-sample\node_modules.acorn.DELETE'</p>
    
    <p>19873 error enoent This is related to npm not being able to find a file. </p>
    
    <p>19874 verbose exit [ -4058, true ]</p>
  </blockquote>
  
  <p>So it seems, for some reason, NPM is incapable of renaming <code>node_modules</code> dependencies. 
  I've tried rolling back NPM to earlier version (in case npm@latest is not stable enough). </p>
  
  <p>Using <code>nvm</code> I've completely uninstalled all versions of Node.js and NPM and reinstalled them. I've since tried installing my dependencies on a Node.js v6.11.3 setup as well as a Node.js v8.9.4 with the identical outcome.</p>
  
  <p>Any suggestions would be very beneficial, thank you!</p>