-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't run any browser on Windows 7 64bits and node 0.10.2 #445
Comments
trying to start it using
my
digging out the sources, the BTW the |
calling the node module manually, it gives:
|
I have exactly the same problem on Ubuntu, so it's not Windows-specific problem. |
Use stable karma, that's |
The issue stays for both karma
|
I think it's just Karma can't find the firefox binary (plus the error msg is weird, because of #452), can you try to set the env variable |
Hi, setting env varible (User variable) CHROME_BIN to equal C:\Program Files\Google\Chrome\Application\chrome.exe resolves the problem well. OS - Win 7 x86. |
Great. Will close for now, please reopen if this error is persists with 0.8.3 |
I just got this problem using 0.8.5 on Win 8 64-bit while running build on a yeoman angular app scaffolded project (grunt 0.4.1). By following the suggestion of @vict-shevchenko I was able to resolve the problem (except in my case, as I'm on 64-bit, replacing the "Program Files" folder with "Program Files (x86)"). So, unfortunately, as far as I can tell the problem still exists in >= 0.8.3. It may be that this is a fringe case issue, in which case perhaps simply adding the User Variable instructions to a FAQ is sufficient? |
Sorry, having this same problem as above on Windows Server 2008 R2. Having set CHROME_BIN (either user or system variable) did not resolve this. I am starting Karma in the context of an Angularjs project I set up through Yeoman. I use Grunt and the Gruntfile.js from the Yeoman/Angularjs setup to start karma - the karma.config.js sets a single run and sets Chrome as the browser. I believe I have updated versions of nodejs, grunt and karma, as below. I am running this from within Powershell. So, first I'm confirming the CHROME_BIN points to Chrome exe. Then I run versions of node, grunt and karma to show updates. Then run karma using grunt. Then, try to start karma directly, which shows the error message and freezes powershell. Excuse any naivete here. I'm a rank newbie. Any assistance would be greatly appreciated! C:> $env:CHROME_BIN C:\Users\meUser> node --version C:\myapp> grunt karma:unit C:\Users\meUser\AppData\Roaming\npm> karma start C:\oef41_app\karma.conf.js |
@fielstem: Well, that's certainly the problem you'd receive if Karma can't find and spawn Chrome. I can only offer rather simplistic suggestions -- This is probably redundant, but are you pointing exactly to: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" (the exe file specifically and not just the folder)? Have you tried a different shell? This is a very remote contingency, but I do encounter situations on Windows in which certain shells can cause trouble. I just tried running "grunt test" in a yo-angular app on both msysgit (mingw32, git for windows) and the vanilla Command prompt, both successfully (note that if you run "grunt karma:unit" the process will hang after closing Chrome -- you'll have to kill it with CTL-C; "grunt test" will close the process automatically and drop you back to the prompt, however). Also, just for the heck of it, did you try running the command from a shell opened with administrator rights? I sometimes have to do this with specific Node commands. For instance, I can't create NPM symlinks unless I fire Git bash with administrator privileges. Because chrome.exe is in the higher-security Program Files folders, there's a remote possibly that Win Server 2008 is denying access, I suppose. Another remote one: Node is at 0.10.7 (and NPM 1.2.21). I'm running Karma successfully on Node 0.10.5 (NPM 1.2.18). It wouldn't hurt to update just in the outside chance. I know these aren't particularly insightful, but I thought I'd throw them out there just in the off chance they help. |
Thanks so much Raphael for taking the time and providing a detailed set of suggestions! They were very helpful and I've made some progress.
Done, without errors.
First, I notice that whether I set up karma.conf.js as single run true or as false, the tests run once and the command line session closes and the Chrome test session closes. That process isn't slow exactly, but the overhead of opening Chrome each run gets old and makes testing drag. I had hoped that the testing could be setup for nearly instantaneously quick testing each run, as I've seen on various screencasts and gotten spoiled :) Maybe I'm not setting this up correctly? Second, I am curious about the yeoman angular app setup. In the Gruntfile.js, both the 'grunt server' and the 'grunt test' tasks start a server on port 9000. So, if I first do 'grunt server' which opens a server on 9000 and starts the app running, then the 'grunt test' task fails because it's trying to open another server listening on port 9000. I could go in and modify the 'test' task in Gruntfile.js (though as a newbie I'm a little hesitant), but i'm just wondering why the config comes this way out of the both from Yeoman. I figure there is a purpose for this and that I may not be understanding how to run the app and run the tests quickly and easily. Apologies for the extra questions when you've been so generous with time already. But in case you can squeeze in a bit more time for help, I would certainly appreciate it. Or, if these questions should be taken elsewhere, please let me know. Thanks again!! -- Elliot |
I had the same issue. I had 64bit version of node.js and firefox is 32bit app, so I've uninstalled 64bit and installed 32bit version of node.js and now this error is gone. Hope this helps someone. |
Actually I can run tests even with the wrong path, it works okay, but no capturing |
@wenihal, thanks for the tip - that was it for me! And I have gotten rid of the CHROME_BIN and FIREFOX_BIN env vars and the 'grunt test' still runs, now that I use node.js 32 bit on my Win 8 Pro 64bit with 32bit Firefox and 32bit Chrome. |
setting the env vars fixed for me, but PhantomJS never ever works. |
Right now, Karma version: 0.9.0 can't run:
I don't know how to make it more "verbosy" to actually try to pin down the problem
The text was updated successfully, but these errors were encountered: