diff --git a/install.js b/install.js index 8dffce7b..5bf3fd50 100755 --- a/install.js +++ b/install.js @@ -309,7 +309,7 @@ function errorSetMSVSVersion() { } function errorInvalidMSVSVersion() { - console.log('Invalid msvs_version ' + msvsVersion + '\n'); + console.log('Invalid msvs_version ' + process.env.npm_config_msvs_version + '\n'); console.log('Please set your Microsoft Visual Studio version before you run npm install'); console.log('Example for Visual Studio 2015:\n'); console.log(' For you user only:\n'); @@ -371,4 +371,4 @@ if (os.platform() !== 'win32') { }); }); } -} \ No newline at end of file +}