Skip to content

Instantly share code, notes, and snippets.

@glombard
Created July 27, 2014 18:18
Show Gist options
  • Save glombard/516c83ef97a7ad354db1 to your computer and use it in GitHub Desktop.
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)
# 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