Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ember.js 编译emberjs抱怨Windows7上的phantomjs_Ember.js_Phantomjs - Fatal编程技术网

Ember.js 编译emberjs抱怨Windows7上的phantomjs

Ember.js 编译emberjs抱怨Windows7上的phantomjs,ember.js,phantomjs,Ember.js,Phantomjs,我试图编译emberjs,但每次运行rake时,它总是告诉我 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,然后将此路径添加到我的环境和系统路径中 当我打开一个命令

我试图编译emberjs,但每次运行
rake
时,它总是告诉我

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
,然后将此路径添加到我的环境和系统路径中

当我打开一个命令提示符并运行phantomjs时——版本是1.7.0,但如果我运行rake编译ember,它会一直抱怨没有安装phantomjs


还需要做什么才能“检测”phantomjs?

它抱怨说,因为Windows中没有“which”命令。注释掉中的第69-71行,这应该可以解决问题。

我想知道是不是因为
rakefile
-
中的这一行,除非系统(“which phantomjs>/dev/null 2>&1”)
哪个
命令在Windows中不存在,但我想知道是否应该在那里使用它?这是一个很好的观点,
哪个
不是Windows命令此代码不跨平台。我想我是余烬社区中唯一的windows用户:)