- Download Visual Studio 2017 with "Desktop development with C++" workload and the default components selected.
- Add
msbuild
to PATH. For me its this directory:D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin
. - Install
node-gyp
globally:npm i -g node-gyp
- Python 2.7
- Download python2.7
- Install to
C:\Python27
- Rename
python.exe
topython2.exe
- Add
C:\Python27
to PATH
npm config set python python2.7
npm 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