Skip to content

Instantly share code, notes, and snippets.

@hrueger
Last active February 5, 2020 04:33
Show Gist options
  • Save hrueger/8cc8113eea1d2425f473786ad5325e7c to your computer and use it in GitHub Desktop.
Save hrueger/8cc8113eea1d2425f473786ad5325e7c to your computer and use it in GitHub Desktop.

Fix node-gyp MSBuild.exe ENOENT error

For VS 2017

  1. Download VS Buildtools 15.0 from here under the 2017 Tab
  2. Install it with the windows 10 SDK
  3. npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe"

For VS 2019

npm config set msbuild_path "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe"

Source: https://stackoverflow.com/questions/52729944/how-to-get-msbuild-15-without-a-full-install-of-visual-studio#answer-52729945

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment