-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
[EDIT]
Guide
1 Your OS MUST be Windows
2 Check that python is in your path by writting python --version
in the console. If not then
2.1 Download python 2.7 (I recommend chocolatey (choco install python2 -y
))
3. Are you on Windows 7? Then follow the rest of 3.x
3.1 Check that you have .NET 4.5.1+ installed. If not then
3.2 Download and install .NET 4.5.1 (.NET 4.5.2 will also work just fine)
4 Download Microsoft Visual C++ Build Tools 2015 Technical Preview
4.1 Install the Windows 8.1 SDK if you haven't already. Note; I recently updated to Windows 10 and had to install the Windows 10 SDK before node-gyp
would successfully build.
5 Set the npm config variable msvs_version to 2015: npm config -g set msvs_version 2015
6 Do npm i
in what-ever project with node-gyp
as a dependency without seeing weird error messages 👍
Tested with node 5.0.0+ and npm 3.3.6
thanks to @mousetraps
I happily noticed that MS provides a standalone c++ compiler. I will try to use it with node-gyp (via utf-8-validate) and report my findings here.