Search code examples
dalekjs

dalekjs error on running any tests scripts on Ubuntu


Hi i've been using a lot of dalekjs in my companies mac, but when I try it in ubuntu I get this error when running any scripts

~/Desktop/test $ dalek test.js
Running tests
Running Browser: PhantomJS
>> ERROR: SyntaxError: Unexpected token E
~/Desktop/test $ 

I have followed all the instructions properly in installing dalekjs the same way I have installed it in my mac and this is the first time I get this kind of error. Can you guys tell me if I missed installing something to make dalekjs run? Thanks!


Solution

  • I got it working, I think it was the installation process is where I went wrong. I installed everything globally and locally.

    So this time I uninstalled all dalekjs packages locally and globally and then followed this process

    sudo npm install dalek-cli -g
    
    sudo npm install dalekjs
    

    and it worked out just fine for me