我正在跟踪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上,安装了新的节点。
最佳答案
发生这种情况是因为业力服务器在端口8080上运行。我将其(在业力.conf.js中)更改为9999,一切都很好。
关于yeoman - Yeoman:为Angularjs运行 karma 单元测试时发生EACCES错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16701987/