title: This npm install is not working on Windows
body: <p>This works great in my Mac. But the same process on Windows and the npm install crashes. This is what I get.</p>
  <p>I've tried everything I've seen on Stack Overflow so far and every link Google search produced. I tried the following as suggested <a href="https://stackoverflow.com/questions/18401606/npm-doesnt-install-module-dependencies">here</a>:</p>
  <pre class="lang-none prettyprint-override"><code>rm -rf node_modules
  npm install
  </code></pre>
  <p>It didn't work.</p>
  <p>I:</p>
  <ul>
  <li><p>ran it as admin,</p>
  </li>
  <li><p>tried npm install -g</p>
  </li>
  <li><p>restarted the <a href="https://en.wikipedia.org/wiki/XAMPP" rel="nofollow noreferrer">XAMPP</a> server</p>
  </li>
  <li><p>turned off <a href="https://en.wikipedia.org/wiki/Windows_Defender" rel="nofollow noreferrer">Windows Defender</a></p>
  </li>
  <li><p>checked the PATH for <em>C:\Program Files\nodejs</em></p>
  </li>
  </ul>
  <h3>Output</h3>
  <pre class="lang-none prettyprint-override"><code>warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
  warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {&quot;os&quot;:&quot;darwin&quot;,&quot;arch&quot;:&quot;any&quot;} (current: {&quot;os&quot;:&quot;win32&quot;,&quot;arch&quot;:&quot;x64&quot;})
  verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
  verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
  verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
  verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
  warn fuse@1.4.4 No description
  verbose If you need help, you may report this error at:
  verbose     &lt;https://github.com/npm/npm/issues&gt;
  warn fuse@1.4.4 No repository field.
  verbose If you need help, you may report this error at:
  verbose     &lt;https://github.com/npm/npm/issues&gt;
  warn fuse@1.4.4 No license field.
  verbose If you need help, you may report this error at:
  verbose     &lt;https://github.com/npm/npm/issues&gt;
  verbose stack Error: EPERM: operation not permitted, rename 'C:\xampp\htdocs\ScalaCM\node_modules\.staging\accessibility-developer-tools-2e33f290' -&gt; 'C:\xampp\htdocs\ScalaCM\node_modules\accessibility-developer-tools'
  verbose stack     at destStatted (C:\Users\Luis\AppData\Roaming\npm\node_modules\npm\lib\install\action\finalize.js:25:7)
  verbose stack     at C:\Users\Luis\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:276:29
  verbose stack     at FSReqWrap.oncomplete (fs.js:123:15)
  verbose stack
  verbose stack Error: EPERM: operation not permitted, rename 'C:\xampp\htdocs\ScalaCM\node_modules\.staging\accessibility-developer-tools-2e33f290' -&gt; 'C:\xampp\htdocs\ScalaCM\node_modules\accessibility-developer-tools'
  verbose stack     at Error (native)
  verbose cwd C:\xampp\htdocs\ScalaCM
  error Windows_NT 10.0.14393
  error argv &quot;C:\\Program Files\\nodejs\\node.exe&quot; &quot;C:\\Users\\Luis\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;install&quot;
  error node v6.9.1
  error npm  v4.0.2
  error path C:\xampp\htdocs\ScalaCM\node_modules\.staging\accessibility-developer-tools-2e33f290
  error code EPERM
  error errno -4048
  error syscall rename
  error Error: EPERM: operation not permitted, rename 'C:\xampp\htdocs\ScalaCM\node_modules\.staging\accessibility-developer-tools-2e33f290' -&gt; 'C:\xampp\htdocs\ScalaCM\node_modules\accessibility-developer-tools'
  error     at destStatted (C:\Users\Luis\AppData\Roaming\npm\node_modules\npm\lib\install\action\finalize.js:25:7)
  error     at C:\Users\Luis\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:276:29
  error     at FSReqWrap.oncomplete (fs.js:123:15)
  error
  error Error: EPERM: operation not permitted, rename 'C:\xampp\htdocs\ScalaCM\node_modules\.staging\accessibility-developer-tools-2e33f290' -&gt; 'C:\xampp\htdocs\ScalaCM\node_modules\accessibility-developer-tools'
  error     at Error (native)
  error  { Error: EPERM: operation not permitted, rename 'C:\xampp\htdocs\ScalaCM\node_modules\.staging\accessibility-developer-tools-2e33f290' -&gt; 'C:\xampp\htdocs\ScalaCM\node_modules\accessibility-developer-tools'
  error     at destStatted (C:\Users\Luis\AppData\Roaming\npm\node_modules\npm\lib\install\action\finalize.js:25:7)
  error     at C:\Users\Luis\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:276:29
  error     at FSReqWrap.oncomplete (fs.js:123:15)
  error
  error Error: EPERM: operation not permitted, rename 'C:\xampp\htdocs\ScalaCM\node_modules\.staging\accessibility-developer-tools-2e33f290' -&gt; 'C:\xampp\htdocs\ScalaCM\node_modules\accessibility-developer-tools'
  error     at Error (native) parent: 'fuse' }
  error Please try running this command again as root/Administrator.
  verbose exit [ -4048, true ]
  </code></pre>
  <p><em>node -v</em> gives me version 6.9.1.</p>
  <p><em>npm -v</em> gives me version 4.0.2.</p>
  <p>Which proves they are all installed fine. Am I right?</p>