diff --git a/lib/cli.js b/lib/cli.js index fae095048..8d9e7b75c 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -182,7 +182,7 @@ function createCheckPhantom(_phantomPath) { } // If we have phantompath, see if its version satisfies our requirements - exec(phantomPath + ' --version', function(err, stdout, stderr) { + exec('"' + phantomPath + '" --version', function(err, stdout, stderr) { if (err) { next(new Error("Could not find phantomjs at the specified path.")) }