Skip to content

Commit

Permalink
Merge pull request #63 from ngsru/master
Browse files Browse the repository at this point in the history
fixed phantomjs-prebuilt binary lookup
  • Loading branch information
Rui Hu committed Apr 18, 2016
2 parents 300d654 + 5989bac commit be7be4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function fileURL(str) {

function spawnPhantomJS(args, options, stream, cb) {
// in case npm is started with --no-bin-links
var phantomjsPath = lookup('.bin/phantomjs', true) || lookup('phantomjs/bin/phantomjs', true);
var phantomjsPath = lookup('.bin/phantomjs', true) || lookup('phantomjs-prebuilt/bin/phantomjs', true);

if (!phantomjsPath) {
return cb(new gutil.PluginError(pluginName, 'PhantomJS not found'));
Expand Down

0 comments on commit be7be4f

Please sign in to comment.