3

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!

Monece Solis
  • 653
  • 1
  • 6
  • 22

1 Answers1

2

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

Monece Solis
  • 653
  • 1
  • 6
  • 22
  • 1
    I just had a chat with someone over IRC with exactly the same problem. He needed to do an `npm cache clean` before, because the invalid package got stored in npms cache. – Sebastian Golasch Jan 28 '14 at 12:59
  • i'll take note of that in the future if I encounter problems. thanks! – Monece Solis Jan 28 '14 at 13:56
  • by the way I still have problems when installing packages with dalekjs in Ubuntu http://stackoverflow.com/questions/21408618/dalek-browser-chrome-fails-installing-everytime @SebastianGolasch hope you can help me out – Monece Solis Jan 28 '14 at 14:44