cmake-js: vs-build-tools-2017 (vs version 15) is not recognized

In a continuation of #46 - it appears that build tools 2017 is not found ERR! OMG Error: There is no Visual C++ compiler installed. Install Visual C++ Build Toolset or Visual Studio.

From what I can tell, cmake-js looks in in vsDetect in the registry key

"HKLM\\SOFTWARE\\Classes\\Installer\\Dependencies\\Microsoft.VS.VisualCppBuildTools_x86_enu,v" + mainVer

Visual Studio 2017 build tools does not have a registry key there, although there are others, that particular one does not exist.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Doesn’t seem to be fixed for me. I have VS2017 installed, and I also have the 2015 build tools installed, cmake-js detects neither. node-gyp works fine though.

cmake-js 3.6.2 node v6.11.4 npm 3.10.10 Visual Studio Community 2017 Version 15.5.7 Visual Studio Community 2015 Version 14.0.254.20.01 Update 3 Windows 10 64-bit Pro

Still getting OMG There is no Visual C++ compiler installed

Fixed as of 3.5.0.

Try with:

cmake-js build -a x64 -r electron -v 1.6.0 -c "C:\Users\ehiller\AppData\Local\omega\system\cmake\bin\cmake.exe" -G "Visual Studio 15 2017 Win64"