node-gyp error on npm install: fatal error C1083 on bson and kerberos compilation
<p>Does anyone around have a solution path to overcome this issue successfully?</p>

<p>I found this error on following a nodejs, express, mongodb tutorial on Windows.</p>

<p>My environment is Windows 10 x64, nvm for windows (using v.012.7 x64).
Environment has vs2015 c++ build tools installed, and python 2.7 (x64) and the system is using it.
node-gyp was installed globally via npm install.</p>

<p>The compilation error I got (for a number of files on bson and kerberos) is the following:</p>

<pre><code>D:\projects\express-tut\nodetest1&gt; npm install

&gt; bson@0.2.22 install D:\projects\express-tut\nodetest1\node_modules\bson
&gt; (node-gyp rebuild 2&gt; builderror.log) || (exit 0)


D:\projects\express-tut\nodetest1\node_modules\bson&gt;if not defined npm_config_node_gyp (node "C:\Users\Javier\AppData\Roaming\nvm\v0.12.7\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
Los proyectos de esta solución se van a compilar de uno en uno. Para habilitar la compilación en paralelo, agregue el modificador "/m".
  bson.cc
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory [D:\projects\express-tut\nodetest1\node_modules\bson\build\bson.vc
xproj]
</code></pre>

<p>You can see a more detailed summary of the issue in gist and the screen capture below: </p>

<p><a href="https://gist.github.com/javlc/67220256c6e51573dc07" rel="nofollow">https://gist.github.com/javlc/67220256c6e51573dc07</a></p>

<p>Screen capture of the error (Shown twice).
<a href="http://imgur.com/aSQV3vs" rel="nofollow">http://imgur.com/aSQV3vs</a></p>

<p>Your help resolving this is very appreciated.</p>