CMake: Visual Studio 15 2017 could not find any instance of Visual Studio

前端 未结 5 1617
死守一世寂寞
死守一世寂寞 2020-12-28 11:20

When I am trying to install CMake I get the error:

Visual Studio 15 2017 could not find any instance of Visual Studio.

I am using Windows 7

5条回答
  •  [愿得一人]
    2020-12-28 12:20

    Try downloading the windows-build-tools package.

    npm install --global --production windows-build-tools --vs2015
    

    This step should be the end-all-be-all solution to fixing node-gyp problems. For most people, that’s true. NPM has a package called windows-build-tools that should automatically install everything you need to get node-gyp working, including the Microsoft build tools, compilers, Python, and everything else required to build native Node modules on Windows.

提交回复
热议问题