Yeoman:EACCES错误运行Angularjs的业力单元测试

时间:2013-05-22 21:37:34

标签: yeoman gruntjs karma-runner

我正在关注yeoman.io上列出的样本Yeoman工作流程:

npm install -g generator-angular generator-karma  # install generators
yo angular                     # scaffold out a AngularJS project
bower install angular-ui       # install a dependency for your project from Bower
*grunt test                     # test your app
grunt server                   # preview your app
grunt                          # build the application for deployment

grunt test命令外,一切都很好:

C:\yeoman2>grunt test

(logging omitted for brevity)

Running "connect:test" (connect) task
Starting connect web server on localhost:9000.

Running "karma:unit" (karma) task
Fatal error: listen EACCES

我没有更新我的gruntfile或对配置进行任何其他修改。有没有人见过这个EACCESS错误?我在Windows 8上安装了新的节点。

1 个答案:

答案 0 :(得分:37)

这是因为业力服务器在端口8080上运行。我将它(在karma.conf.js中)更改为9999并且一切都很好。