2012-11-24 55 views
-1

我試圖編譯emberjs但每次我運行rake它不斷告訴我編譯emberjs抱怨在Windows 7 phantomjs

Building Ember... 
Done 
The system cannot find the path specified. 
PhantomJS is not installed. Download from http://phantomjs.org 

我下載PhantomJS並提取到C:\Program Files\phantomjs-1.7.0-windows和我說這條路到我的環境和系統PATH。

當我打開命令提示符並運行phantomjs --version時,我得到1.7.0,但是如果我運行rake來編譯ember,它會一直抱怨phantomjs沒有安裝。

還有什麼需要做的phantomjs被「檢測」?

+0

我不知道是不是''rakefile' - '系統(「哪個phantomjs>/dev/null 2>&1」)'''這個命令在Windows中不存在,但我想知道它應該用在那裏嗎? – raina77ow

+0

這是一個很好的觀點,'哪個'不是windows命令這個代碼不是跨平臺的。我想我是燼社區中唯一的Windows用戶:) – user391986

回答

3

它抱怨,因爲Windows中沒有'which'命令。註釋掉Rakefile中的69-71行,這應該可以解決問題。