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
- node.js/iojs (https://iojs.org)
- python 2.x (https://www.python.org/downloads/release/python-2710/).
Then (assuming you have a clean Windows 7 x64 install)
- Install VS2010 (http://download.microsoft.com/download/1/E/5/1E5F1C0A-0D5B-426A-A603-1798B951DDAE/VS2010Express1.iso)
- Install 7.1 SDK (http://www.microsoft.com/en-us/download/details.aspx?id=8279)
- Install VS2010 SP1 (https://www.microsoft.com/en-us/download/details.aspx?id=23691)
- 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