ChromeHeadless failed to start stdout / Failed to start ChromeHeadless using PhantomJS / Karma

I am currently running tests using PhantomJS and Karma to test Angular.js application. With the recent release of ChromeHeadless, we started using the ChromeHeadless validation browser instead of the default PhantomJS browser.

I currently have karma-chrome-launcher 2.1.0.

When I run my tests, I am presented with several different errors, excerpts from which are listed below:

 Cannot start ChromeHeadless [0510/113948.371837:ERROR:resource_bundle.cc(767)] Failed to load /Applications/Google Chrome.app/Contents/Versions/58.0.3029.110/Google Chrome Framework.framework/Versions/A/resources.pak Some features may not be available. ChromeHeadless stdout: 10 05 2017 11:39:48.428:ERROR [launcher]: ChromeHeadless stderr: [0510/113948.371837:ERROR:resource_bundle.cc(767)] Failed to load /Applications/Google Chrome.app/Contents/Versions/58.0.3029.110/Google Chrome Framework.framework/Versions/A/resources.pak Some features may not be available. ChromeHeadless stderr: [0510/113948.490917:ERROR:resource_bundle.cc(767)] Failed to load /Applications/Google Chrome.app/Contents/Versions/58.0.3029.110/Google Chrome Framework.framework/Versions/A/resources.pak Some features may not be available. ChromeHeadless failed 2 times (cannot start). Giving up. npm ERR! Test failed. See above for more details. 

I tried to run several npm commands, namely npm rebuild and npm update , since initially I thought it was a dependency problem. This did not work, and I'm not sure how to proceed. Any ideas?

+7
browser google-chrome karma-runner headless-browser
source share
1 answer

The problem is with the version of Google Chrome that I installed. Without Chrome Chrome, Chrome 59 is supported, and I have 58.

I installed Chrome beta to access Chrome without Chrome.

+6
source share

All Articles