- npm install --global --production windows-build-tools
If you have problem, try to run it manually from C:\Users\{user}\.windows-build-tools
- npm install -g node-gyp
- npm install --debug
node-gyp configure -- -f cmake
node-gyp configure --debug
- Edit
build/Debug/CMakeLists.txt
andbuild/Release/CMakeLists.txt
- Replace
\\
and\
with/
- Add
../../prtscn_windows.cpp
toscreener__cxx_srcs
list - Add
set(CMAKE_CXX_STANDARD 17)
- Replace
- Right click on
build/Debug/CMakeLists.txt
orbuild/Release/CMakeLists.txt
and chooseLoad CMake Project
- Copy and save these files in other place because
npm install
clears them