尝试的项目:https://github.com/yearofmoo/angularjs-seed-repo
环境:
Windows 7 64位
NodeJS版本0.10.24
Protractor版本0.16.1
grunt版本0.4.2
grunt cli版本0.1.11
注:
根据[Julie的帖子][1],对于selenium,install_selenium_standalone已于2013年12月2日左右被网络驱动程序管理器二进制文件取代。这似乎与这个问题有关。
此外,git必须安装在项目目录中,npm安装必须在Windows中使用git-Bash运行。
Git Bash中的错误:
$grunt测试:e2e--调试
正在运行"connect:testserver"(connect)任务
[D] 任务源:c:\nodejs-0.110.24\node_modules\grunt contrib connect\tasks\connect.js已于127.0.0.1:9999开始连接web服务器。
运行"量角器:单次运行"(量角器)任务
[D] 任务源:c:\nodejs-0.110.24\node_modules\grunt量角器runner\tasks\protactor_runner.js正在启动硒独立服务器。。。
events.js:72
nbsp nbsp 投掷者;//未处理的"错误"事件
nbsp nbsp nbsp nbsp nbsp nbsp^
错误:生成ENOENT
nbsp nbsp nbsp;在errnoException(child_process.js:980:11)
nbsp nbsp nbsp;位于Process.ChildProcess.handle.onext(child_Process.js:771:34)
>致命错误:量角器退出,代码为:8
Java是运行selenium所必需的,所以您似乎没有。