diff --git a/bin/lib/check_reqs.js b/bin/lib/check_reqs.js index 61bd4494..7794594e 100644 --- a/bin/lib/check_reqs.js +++ b/bin/lib/check_reqs.js @@ -31,7 +31,7 @@ var isWindows = process.platform == 'win32'; function forgivingWhichSync(cmd) { try { - return which.sync(path); + return which.sync(cmd); } catch (e) { return ''; }