2015-03-19 37 views
0

剛剛嘗試在通過npm或homebrew安裝後運行「slimerjs hello.js」,當然還有一個hello.js文件。
它只是沒有做任何事情,除了去一個新的行。
它沒有說沒有找到命令,因此應該表示它以某種方式安裝。
我也試圖與casperjs一樣運行「casperjs測試someDirectory --engine = slimerjs」。也沒有任何發生。
甚至slimerjs -v沒有顯示或執行任何操作。slimerjs命令在安裝後沒有做任何事情

人所遇到的這還是我只是失去了一些東西:/
由於事先

回答

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

0

我有一個類似的問題,這是由於SlimerJS不支持最新版本的Firefox(37)。

現在已經修復了github repo,所以如果你想運行它,你可以克隆該repo並將克隆的slimerjs文件夾的src路徑添加到PATH變量中。

雖然首先從自制軟件中卸載slimerjs。

EG(OSX &崇高):

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

以下行添加到該文件

export PATH=$PATH:~/forked/slimerjs/src 
+0

意識到,這是實際上是我自己的錯,因爲我說好的把它適當地進入路徑: ( – 2015-04-25 12:23:06

+1

好的,聽到了!也許標記Kumars回答正確嗎? – vikeri 2015-04-27 06:40:06