node-gyp build error windows x64: “fatal error LNK1181: cannot open input file ‘kernel32.lib'”

I had a similar problem. I found that this switch helped me

--msvs_version=2012

so for example

npm install --msvs_version=2012 <package>

Leave a Comment