question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

karma won't launch any browser ENOENT

See original GitHub issue

I’m runnning

  • Windows 7 x64
  • node.js 0.10.3
  • karma 0.8.4

I’ve set all my *_BIN ENV variables, `echo %CHROME_BIN% “C:\Program Files (x86)\Google\Chrome\Application\chrome.exe”``

I’ve checked the paths are correct and I can launch the browsers by launching %CHROME_BIN% myself.

However, karma wont launch any browser.

ERROR [karma]: { [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' } Error: spawn ENOENT at errnoException (child_process.js:977:11) at Process.ChildProcess._handle.onexit (child_process.js:768:34)

It happens with every browser. I’ve been checking the other issues but it seemed that they all were fixed by setting the ENV variables, but not in my case.

I’ve also tried launching karma from a cmd shell with administrative rights (just in case) but had no luck either.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

19reactions
harshadbankarcommented, Oct 23, 2017

I resolved this issue by simply running 'npm rebuild’ I got same issue when I have updated my npm, but after rebuild it worked fine. Hope this will help someone!

3reactions
vojtajinacommented, Apr 8, 2013

It can’t find the binary. Double check escaping backslashes etc…

Windows sucks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Karma start throws spawn ENOENT error - Google Groups
I created my own, but now, when I run 'karma start', i get an error saying 'Error: spawn ENOENT'. Any ideas?
Read more >
Angular-Karma-Test-Explorer/Bugs - Gitter
I'm desperate as I cannot debug the tests in my angular project with vscode testexplorer - the test all run fine, but the...
Read more >
Karma - Chrome failed 2 times (cannot start). Giving up
browsers: ['PhantomJS'] , Here allowed browser is PhantomJs , but code is trying for Chrome, which is not a specified browser in the...
Read more >
Changelog - Karma test runner
Using Karma to run Dart code in the browser is no longer supported. Use your favorite Dart-to-JS compiler instead. dart file type has...
Read more >
Troubleshooting - Puppeteer
Make sure all the necessary dependencies are installed. You can run ldd chrome | grep not on a Linux machine to check which...
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