Obvious/phantomjs — pull request #74 by jmervine (2013-07-12 04:42:10+00:00)
Title: Fixing install issue where existing phantomjs isn't found.

On my system, `npm intsall phantomjs` is downloading and installing `phantomjs` every time. I found the following:

> which("phantomjs", function () { console.log(arguments) });
{ '0': null, '1': '/usr/local/bin/phantomjs' }

But `install.js` was expecting `path` which is returning `null`, as in this example:

> which("phantomjs", function (path) { console.log(path) });
null

Test Passing on 0.6, 0.8 and 0.10 on travis: https://travis-ci.org/jmervine/phantomjs

My system info:

$ cat /etc/issue
Ubuntu 12.04.2 LTS \n \l

$ node --version
v0.10.13

This change should probably be validated on a Mac and/or Windows system, but I don't have access to either.

Cheers,
J