- Download Visual Studio 2017 with "Desktop development with C++" workload and the default components selected.
- Add
msbuildto PATH. For me its this directory:D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin. - Install
node-gypglobally:npm i -g node-gyp - Python 2.7
- Download python2.7
- Install to
C:\Python27 - Rename
python.exetopython2.exe - Add
C:\Python27to PATH
npm config set python python2.7npm config set msvs_version 2017
If using msys2 chances are python2 is already there in /usr/bin. That version wont work. To force using the
windows version add it to start of PATH:
PATH=/c/Python27:$PATH