Created
July 27, 2014 18:18
-
-
Save glombard/516c83ef97a7ad354db1 to your computer and use it in GitHub Desktop.
Set Visual Studio version to use for Node's NPM on Windows (by default it uses VS2010)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See: https://www.npmjs.org/package/node-gyp | |
$vsVersion = "2012" | |
if (Test-Path HKLM:\Software\Microsoft\VisualStudio\12.0) { | |
$vsVersion = "2013" | |
} | |
npm.cmd config set msvs_version $vsVersion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment