I'd like to allow users to simply run `npm install; grunt test` on my
project (which includes phantomjs in devDependencies) and thus use the
local phantomjs instead of having to install it globally/muck with
their PATH. How can I do this?
When I just do this now, I get:
ERROR [launcher]: Cannot start PhantomJS
execvp(): No such file or directory
I found
https://github.com/karma-runner/karma-phantomjs-launcher but
I'm not sure how to leverage it. I installed it, but how do I get
karma to start using this instead of its own PhantomJS.js file? It
resembles karma's built-in PhantomJS.js file except for what appear to
be the key lines:
24,26c22,24
< linux: 'phantomjs',
< darwin: '/usr/local/bin/phantomjs',
< win32: process.env.ProgramFiles + '\\PhantomJS\\phantomjs.exe'
---
> linux: require('phantomjs').path,
> darwin: require('phantomjs').path,
> win32: require('phantomjs').path
Thanks.