user2030592
user2030592

Reputation: 417

Dalekjs ERROR: dalek-browser-phantomjs: Could not start Ghost Driver

just found Dalekjs and tried out their "Getting Started".

I use it together with grunt but I get this message after "grunt dalek": Running "dalek:dist" (dalek) task Fatal error: connect ECONNREFUSED

I have this here included in my Gruntfile.js

  dalek: {
      options: {
          browser: ['phantomjs']
      },
      dist: {
          src: ['tests/test.js']
      }
  }

And my tests/test.js looks like this:

module.exports = {
    'Page title is correct': function (test) {
            test
                .open('http://google.com')
                .assert.title().is('Google', 'It has title')
                .done();
        }
    };

If I try this "dalek tests/test.js" i get this message:

ERROR: dalek-browser-phantomjs: Could not start Ghost Driver

Any ideas? already tried to remove dalek and phantomjs and install it again

Upvotes: 1

Views: 963

Answers (1)

aug2uag
aug2uag

Reputation: 3445

you have an old process running, find it and kill it

$ ps -lA | grep dalek
  501 65879   225     4006   0  31  0  3053832  44328 -      T                   0 ttys002    0:00.46 node /usr/local/bin/dalek test.js
  501 65881 65879     400a   0  33  0   777876  50968 -      T                   0 ttys002    0:00.75 .../node_modules/dalekjs/node_modules/dalek-browser-phantomjs/node_modules/phantomjs/lib/phantom/bin/phantomjs --webdriver 9001 --ignore-ssl-errors=true
  501 66135   225     4006   0  31  0  2432784    496 -      R+                  0 ttys002    0:00.00 grep dalek

$ kill -9 65881
$ kill -9 65879

Upvotes: 1

Related Questions