Installing module-foundry on Windows
We have worked with Microsoft on this to make the installation and build experience on Windows to be as painless as possible, but we're not Windows experts! Well we do have a resident Windows expert which is why any of this exists in the first place.
module-foundry itself it as easy as installing any other npm package:
npm install module-foundry -g module-foundry
In addition to that you will need to make sure your machine contains appropriate compilers, SDKs, and common tools, to build most nodejs modules. This installation guide will walk you through this process.
SDKs & Tools
Given the manual nature of many MSI-based installers on Windows:
- Windows .Net 4.0 full install
- Windows SDK 7.1 -- (install all recommended components)
- Chocolatey via oneliner
Got 'em? Good. Lets move on. If you're looking for a good chocolatey one-liner:
@powershell -NoProfile -ExecutionPolicy unrestricted ` -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" ` && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
After chocolatey is installed, you can automate the installation of the next set of dependencies:
- Mozilla Build tools 1.7
- Visual C++ 2008 redistributables
- ntrights.exe as part of the windows 2003 resource kit
- git (msysgit)
- Microsoft Security Essentials
cinst vcredist2008 cinst rktools.2003 cinst git cinst MozillaBuild cinst aria2 cinst MicrosoftSecurityEssentials
Note that the MozillaBuild tools also come with msys, as usable unix emulation shell with make/makefile support. Be careful of incompatibilities between gcc in msys and cl.exe from Visual Studio. Generally people assume the latter on Windows, but node modules with Makefiles may only compile with the former. Here be dragons.