Search code examples
node.jscasperjsslimerjs

slimerjs command doesn't do anything after install


just tried running "slimerjs hello.js" after installing it via npm or homebrew and of course having a hello.js file.
and it just doesn't do anything except going to a new line.
it does not say command not found so that should mean it is installed somehow.
i'm also trying to run it with casperjs like that "casperjs test someDirectory --engine=slimerjs". also nothing happening.
even slimerjs -v is not showing or doing anything.

anybody have come across that or am i just missing something :/
thanks in advance


Solution

  • You will need to set the environment variable:

    On linux:
    
        export SLIMERJSLAUNCHER=/usr/bin/firefox
    
    on Windows
    
        SET SLIMERJSLAUNCHER="c:\Program Files\Mozilla Firefox\firefox.exe
    
    On windows with cygwin
    
        export SLIMERJSLAUNCHER="/cygdrive/c/program files/mozilla firefox/firefox.exe"
    
    On MacOS
    
        export SLIMERJSLAUNCHER=/Applications/Firefox.app/Contents/MacOS/firefox
    

    Ref: http://docs.slimerjs.org/current/installation.html