0

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

4

2 回答 2

3

您将需要设置环境变量:

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

参考:http ://docs.slimerjs.org/current/installation.html

于 2015-04-01T11:56:15.170 回答
0

我有一个类似的问题,这是由于 SlimerJS 不支持最新版本的 Firefox (37)。

它现在已在github 存储库中修复,因此如果您想运行它,您可以克隆该存储库并将克隆的 slimerjs 文件夹的 src 路径添加到您的 PATH 变量中。

不过,首先从自制软件中卸载 slimerjs。

例如(OSX 和崇高):

brew uninstall slimerjs
mkdir ~/forked && cd $_
git clone https://github.com/laurentj/slimerjs.git
subl ~/.bash_profile

将以下行添加到该文件

export PATH=$PATH:~/forked/slimerjs/src
于 2015-04-24T08:19:25.970 回答