diff --git a/index.js b/index.js index a1c0f17..6a4941e 100644 --- a/index.js +++ b/index.js @@ -31,6 +31,11 @@ function findVcvarsall() { } } } + // Special case for Visual Studio 2015 (and maybe earlier), try it out too. + const path = `${programFiles}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat` + if (fs.existsSync(path)) { + return path + } throw new Error('Microsoft Visual Studio not found') }