Karma无法连接到Windows 7中的Chrome

时间:2014-12-26 06:23:18

标签: google-chrome karma-runner

  • karma start使用正确的网址启动Chrome,但Chrome只是坐在那里旋转。此外,Karma推出的那个窗口中没有其他网址可以使用。
  • 与金丝雀相同的行为
  • 与FireFox类似的问题
  • Opera和IE工作!
  • 如果我将网址复制/粘贴到正常运行的Chrome浏览器中,则会连接但在原始测试窗口超时后服务器关闭
  • 出于某种原因,我无法使用用户数据标记启动Chrome:--user-data-dir=C:\tmp\karma-7572069 - 这是相同的行为...浏览器只是旋转而没有其他网址在该窗口中工作
  • 删除了Chrome和&amp ;;中的所有用户个人资料Firefox并重新安装它们......没有去

任何建议?

谷歌搜索并倾注了无数类似的SO问题后,我认为这肯定与损坏的用户个人资料有关...但在擦除Chrome用户文件夹并重新安装等之后,我还能尝试什么?

  • 业力:0.12.28
  • Chrome:39.0.2171.95 m
  • Windows 7

调试日志:

DEBUG [config]: Loading config d:\Code\test2\karma.conf.js
DEBUG [plugin]: Loading karma-* from d:\Code\test2\node_modules
DEBUG [plugin]: Loading plugin d:\Code\test2\node_modules/karma-chrome-launcher.
DEBUG [plugin]: Loading plugin d:\Code\test2\node_modules/karma-firefox-launcher.
DEBUG [plugin]: Loading plugin d:\Code\test2\node_modules/karma-ie-launcher.
DEBUG [plugin]: Loading plugin d:\Code\test2\node_modules/karma-jasmine.
DEBUG [plugin]: Loading plugin d:\Code\test2\node_modules/karma-opera-launcher.
INFO [karma]: Karma v0.12.28 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
DEBUG [temp-dir]: Creating temp dir at C:\tmp\karma-7572069
DEBUG [launcher]: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir=C:\tmp\karma-7572069 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:9876/?id=7572069
DEBUG [watcher]: Resolved files:
        d:/Code/test2/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
        d:/Code/test2/node_modules/karma-jasmine/lib/boot.js
        d:/Code/test2/node_modules/karma-jasmine/lib/adapter.js
WARN [launcher]: Chrome have not captured in 60000 ms, killing.
DEBUG [launcher]: Process Chrome exited with code 0
DEBUG [temp-dir]: Cleaning temp dir C:\tmp\karma-7572069
INFO [launcher]: Trying to start Chrome again (1/2).
DEBUG [launcher]: Restarting Chrome
DEBUG [temp-dir]: Creating temp dir at C:\tmp\karma-7572069
DEBUG [launcher]: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir=C:\tmp\karma-7572069 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:9876/?id=7572069
WARN [launcher]: Chrome have not captured in 60000 ms, killing.
DEBUG [launcher]: Process Chrome exited with code 0
DEBUG [temp-dir]: Cleaning temp dir C:\tmp\karma-7572069
INFO [launcher]: Trying to start Chrome again (2/2).
DEBUG [launcher]: Restarting Chrome
DEBUG [temp-dir]: Creating temp dir at C:\tmp\karma-7572069
DEBUG [launcher]: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir=C:\tmp\karma-7572069 --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate http://localhost:9876/?id=7572069
WARN [launcher]: Chrome have not captured in 60000 ms, killing.
DEBUG [launcher]: Process Chrome exited with code 0
DEBUG [temp-dir]: Cleaning temp dir C:\tmp\karma-7572069
ERROR [launcher]: Chrome failed 2 times (timeout). Giving up.
DEBUG [launcher]: Disconnecting all browsers

1 个答案:

答案 0 :(得分:1)

想出来。我的控制台是以非管理员身份运行的。 Booo。现在一切正常。