ronaldlokers / grunt-casperjs

Grunt task for casperjs
MIT License
104 stars 51 forks source link

Windows - did you install phantomjs #74

Open mikemellor11 opened 8 years ago

mikemellor11 commented 8 years ago

I keep getting this error, i have phantomjs installed globally and locally for other tasks (karma/grunticon ect.) All of those seem to boot up phantom just fine but casperjs gives me the error

Running "casperjs:local" (casperjs) task
Verifying property casperjs.local exists in config...OK
Files: _Test/casperjs/index.js
Options: casperjsOptions=[]
Command: C:\Users\mmellor\Desktop\preprocess\node_modules\grunt-casperjs\node_modules\.bin\casperjs.cmd

Running tests from "_Test/casperjs/index.js":
Fatal: [Errno 2] No such file or directory; did you install phantomjs?

Here's my config

    casperjs: {
            options: {
                casperjsOptions: [
                ]
            },
            local: {
                src: ['_Test/casperjs/*.js']
            }
        }

If i run phantomjs -v from the same location it finds it

$ phantomjs -v
2.1.1

Any idea?

JustinT01 commented 6 years ago

I am also facing similar issue when trying to run casperjs: " Running CasperJS with: ['/Users/thomasj/dev/projects/VRT/node_modules/backstopjs/capture/genBitmaps.js', '--ignore-ssl-errors=true', '--captureConfigFileName=/var/folders/9p/r9ryl_f93q75jfymg1x24gls6v173t/ T/capture/3555d660dd495d80b3877473ea646f5eda3be723.json' ] CasperJS: ERROR - Fatal: No such file or directory; did you install phantomjs? "

Anyone has any idea about this issue?