Skip to content

Instantly share code, notes, and snippets.

@mafintosh
Last active November 30, 2019 09:55
Show Gist options
  • Save mafintosh/ce0dcadad846c7a24375 to your computer and use it in GitHub Desktop.
Save mafintosh/ce0dcadad846c7a24375 to your computer and use it in GitHub Desktop.

Compiling node modules for Windows x64

NOTE: I could not get VS2013 to compile node modules (sigh) so this uses VS2010.

Following this issue, http://blogs.msdn.com/b/vcblog/archive/2011/03/31/10148110.aspx.

First you need to install prerequisites

Then (assuming you have a clean Windows 7 x64 install)

  1. Install VS2010 (http://download.microsoft.com/download/1/E/5/1E5F1C0A-0D5B-426A-A603-1798B951DDAE/VS2010Express1.iso)
  2. Install 7.1 SDK (http://www.microsoft.com/en-us/download/details.aspx?id=8279)
  3. Install VS2010 SP1 (https://www.microsoft.com/en-us/download/details.aspx?id=23691)
  4. Install SP1 Compiler Patch (http://www.microsoft.com/en-us/download/details.aspx?id=4422)

To mount the ISO file I used Virtual Clone Drive (http://www.slysoft.com/en/virtual-clonedrive.html)

NOTE: You have to execute the above steps in exactly that order. Otherwise it won't work.

Afterwards open a Windows SDK 7.1 cmd prompt (not the regular cmd prompt!) and you should be able to compile node modules using node-gyp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment