I recently came upon the problem of installing native node.js modules on windows again. I just wanted to record the trick that I keep forgetting:
Add --msvs_version=2012
to the end of you install command and it will just magically work on modern operating systems with modern versions of visual studio.
It looks like the best way to make sure this setting persists so you don’t have to remember it every time is to set the Environment Variable GYP_MSVS_VERSION
to the value 2012
(source: http://stackoverflow.com/a/25071620/272958).
N.B. If you have a different version of Visual Studio installed, you may need to use a different number in there.