Obvious/phantomjs — pull request #75 by jmervine (2013-07-12 19:47:46+00:00)
Title: Fix install issue

### Fixing install issue

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

Additionally, I've tested this change on Mac OS X.

I have not tested this on Windows.

Cheers,
Josh