'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.jsfile:
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:
- Created 6 years ago
- Comments:7
Top Related StackOverflow Question
in first config you write ‘chrome’ instead of the necessary ‘Chrome’
@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’ ] … }); };