【发布时间】:2016-02-26 00:51:33
【问题描述】:
我正在 yeoman angular-fullstack 生成器上构建一个项目。已经有一段时间了,运行grunt serve 任务后登录页面正确加载。
我真的不知道我做了什么,但是现在当我运行 grunt serve 时,我首先在 chrome 中看到 ERR_CONNECTION_REFUSED 消息,然后着陆页正常加载(在 ERR_CONNECTION_REFUSED 消息之后大约 5 秒)
这使我的 e2e 测试崩溃。
在 github 上发现了一些关于 grunt-concurrent 降级和禁用 livereload 的问题,但没有任何帮助..
这是日志。如您所见,快速服务器必须在打开服务器和监视任务之前开始侦听(新创建的全栈生成器会这样做,因此它可以正常工作)
Running "serve" task
Running "clean:server" (clean) task
>> 1 path cleaned.
Running "env:all" (env) task
Running "concurrent:pre" (concurrent) task
Running "ngconstant:app" (ngconstant) task
Creating module serviceboxApp.constants at client/app/app.constant.js...OK
Done, without errors.
Execution Time (2016-02-26 00:40:08 UTC)
loading tasks 302ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 85%
loading grunt-ng-constant 34ms ▇▇▇▇ 10%
ngconstant:app 19ms ▇▇ 5%
Total 356ms
Running "concurrent:server" (concurrent) task
Running "newer:babel:client" (newer) task
Running "babel:client" (babel) task
Running "newer-postrun:babel:client:1:/Users/apple/Desktop/dev/servicebox/node_modules/grunt-newer/.cache" (newer-postrun) task
Done, without errors.
Execution Time (2016-02-26 00:40:09 UTC)
loading tasks 312ms ▇▇▇▇▇▇▇ 15%
newer:babel:client 36ms ▇ 2%
loading grunt-babel 415ms ▇▇▇▇▇▇▇▇▇ 20%
babel:client 1.2s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 61%
Total 2s
Running "injector:scripts" (injector) task
Missing option `template`, using `dest` as template instead
Injecting js files (33 files)
Running "injector:css" (injector) task
Missing option `template`, using `dest` as template instead
Injecting css files (9 files)
Running "wiredep:client" (wiredep) task
Running "postcss:dist" (postcss) task
Running "express:dev" (express) task
Starting background Express server
Debugger listening on port 5858
[TypeError: Cannot read property 'Kerberos' of undefined]
Running "wait" task
>> Waiting for server reload...
Done waiting!
Running "open:server" (open) task
Running "watch" task
Waiting...
Express server listening on 9000, in development mode
finished populating users
finished populating quotes
finished populating poviders
【问题讨论】:
-
看起来这是您的问题
[TypeError: Cannot read property 'Kerberos' of undefined]您能否发布更多详细信息,详细说明您调用 Kerberos 的位置?