Skip to content

Instantly share code, notes, and snippets.

@tracker1
Last active August 29, 2015 14:16
Show Gist options
  • Save tracker1/ae58c1b22bfc5e5a8670 to your computer and use it in GitHub Desktop.
Save tracker1/ae58c1b22bfc5e5a8670 to your computer and use it in GitHub Desktop.
environment variables for npm to use VS 2013

Building node.js / io.js binary modules in Windows

  • You will need the latest Python 2.7.x installed (Should install to C:\Python27\ and will set environment variables). You will need to close your command prompt and re-open for this change to take effect.
  • You should have a recent version of Visual Studio installed.
  • Because node-gyp defaults to expecting VS 2010, you can save your version configuration via npm...
    • npm config set msvs_version 2013
  • Alternatively, you can specify the version via the following environment variables
    • SET GYP_MSVS_OVERRIDE_PATH=true
    • SET GYP_MSVS_VERSION=2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment