'Karma start' fails with 'Cannot load browser 'chrome'

See original GitHub issue

‘karma start’ fails with the error:

04 06 2017 22:47:24.132:WARN [karma]: No captured browser, open http://localhost:9876/ 04 06 2017 22:47:24.166:INFO [karma]: Karma v1.7.0 server started at http://0.0.0.0:9876/ 04 06 2017 22:47:24.169:INFO [launcher]: Launching browser chrome with unlimited concurrency 04 06 2017 22:47:24.173:ERROR [launcher]: Cannot load browser “chrome”: it is not registered! Perhaps you are missing some plugin? 04 06 2017 22:47:24.175:ERROR [karma]: Found 1 load error

Environment Details

  • Karma version (output of karma --version): 1.7.0

  • OS: Windows 10

  • Relevant part of your karma.config.js file:

module.exports = function (config) { config.set({ frameworks: [“qunit”], files: [ { pattern: “*.js” }, ], plugins: [‘karma-qunit’, ‘karma-chrome-launcher’], reporters: [“progress”], browsers: [‘chrome’] }); };

Repro steps: karma start

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

11reactions
Komdoshcommented, Jul 6, 2017

in first config you write ‘chrome’ instead of the necessary ‘Chrome’

4reactions
ghostcommented, Nov 22, 2018

@EzraBrooks you need to configurate the karma.conf.js First install the ‘karma-chrome-launcher’ plugin and then add ‘Chrome’ capitalized to the list of browsers:

module.exports = function (config) { config.set({ … plugins: [ … require(‘karma-chrome-launcher’), ], … browsers: [‘Chrome’ ] … }); };

Read more comments on GitHub >

github_iconTop Results From Across the Web

Karma - Chrome failed 2 times (cannot start). Giving up
Turned out that chrome browser was crashing due to missing ttf fonts. So running: apt-get install ttf-freefont. Solved that issue for me and...
Read more >
Troubleshooting - Karma test runner
The --no-single-run option causes the server to print a URL and wait. Open the URL in a browser and use the browsers devtools...
Read more >
Fixing a Karma Issue With Chrome V93 | by Colton - Medium
We could work around this problem by using the browsers: ['ChromeHeadless'] in the Karma config file. Headless Chrome is a way to run...
Read more >
Issue running karma with chrome-launcher : WEB-12245
1. Run karma tests from Terminal. · 2. If it passed successfully, launch WebStorm from the Terminal using this command: open -a /Applications/WebStorm.app....
Read more >
karma-runner/karma - Gitter
I have a problem with Karma in enterprise angular project (500k+ LOC). Karma starts the Chrome browser too early without waiting for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found