-
Notifications
You must be signed in to change notification settings - Fork 121
Mac Os Sierra "Cannot start PhantomJS" #138
Comments
From what I can tell, the problem is caused by the version of PhantomJS installed by When I updated |
Same issue. I've noticed that using phantomjs v2 (included in v1.0.2 of karma-phantomjs-launcher) seems to work fine. However, some of the tests in my rather large project fail with the phantomjs 2. The only solution for me may be to go back to El Capitan until there is time to update phantomjs and the tests. |
in case anyone is depending on this task in a project, I can confirm that running the test using 'Chrome' works DISCLAIMER: this is only intended as a workaround for someone who is using frameworks (like jHipsters) with this dependency which broke the building process such as me :) in karma.conf.js
|
Sadly I too can't run Phantomjs2 due to some kind of race condition between my initial setup scripts (that setup external browserify deps) and the tests themselves which require those browserify externals (meaning I get |
Same issue. @superandrew work around works as a hack for now |
+1 , doesn't work in macOS sierra. Chrome takes too much time to load the test suite. |
@hamxabaig @kayschmitt Phantom2 doesn't work for you? I doubt anyone will patch Phantom 1.9 to support Sierra, so there's not much @llhupp have you been able to detect any patterns with the tests that fail in Phantom 2? |
@justinjmoses i'm upgrading to Phantom2. Will let you know in a bit. |
okay, Phantom |
I filed this for Phantom 1.9.8. ariya/phantomjs#14558 |
Same issue and I can't upgrade to Phantom v2... |
phantomjs has issue with sierra (see karma issue [here](karma-runner/karma-phantomjs-launcher#138)). It's resolved with bumping the karma-phantomjs-launcher plugin to 1.0.2
Just got this error, unable to fix with any of updates. |
FWIW I worked around my particular problem (Phantom 2 upgrade) by ensuring all test bundles (we're using browserify) include all their dependencies rather than externalizing them. |
I had this issue earlier this week but was able to run |
Just updated to OS Sierra and my setup don't work anymore. Here is my part of package.json:
when I run karma start then I get following error:
It drives me crazy I wasted already so much of time due to this error. Anyone any idea? Thx a lot |
same issue, any idea? |
Another workaround for this is using Electron instead of Phantom via https://github.com/lele85/karma-electron-launcher. I managed to upgrade to Phantom 2.1..1 but tried using Electron as a POC and it ran our 10k specs in the same time as Phantom 2 |
My issue wasn't with Phantom js, I had to upgrade "grunt-contrib-jasmine": "^1.0.3". |
Similar upgrades reported to fix: karma-runner/karma-phantomjs-launcher#138
You need to figure out what directory you have your node, npm-cache and npm (if you installed it out of node) installed. Then, you give permission of execute and read. Usually, the npm-cache is located at:
to find out where is your node and npm:
Note: Those commands above will probably give you the folder "bin" so, get the folder node and npm to apply the permission. E.g FOR: "/usr/local/Cellar/node/bin/" YOU'RE GONNA USE: "/usr/local/Cellar/node/"
Everytime when Mac OS updates (MAJOR Updates like maverick, mount lion, sierra) we lose some permissions. That is why those errors pop up. Also, I upgrade from "karma-phantomjs-launcher@~0.1.4" to "[email protected]". |
Also, it might be helpful |
"phantomjs": "^2.1.3" solve problems for me in Mac Os sierra |
On mac sierra the bug is located at this place into karma-phantomjs-launcher/index.js
in the index.js file we can find:
|
npm install [email protected] worked for me on mac Sierra |
npm install [email protected] worked for me on mac Sierra works also but it's when you use you would have this kind of error |
For what it's worth, I ran into this today. Adding |
I ran into same error like @obeyler mentioned, looks like still not fixed?
|
I'm running into the same issue still after upgrading to Sierra. Tried: any other ideas? |
#191 trying to fix |
Found this error to also happen if you end up using Karma directly from github source. Turns out there is a difference between the Karma code on npm and the one on github. See: nano3labs/karma#1. It was falsely indicating this error for me. So make sure you don't use something like:
|
Has anyone had any luck with this issue? I'm also on Sierra with [email protected] and [email protected]. |
+1. Mac OS Sierra. Same issue |
Can someone please take a look the issue regarding Mac OS Sierra ? Its still giving the similar issue. |
I was getting the same issue on macOS Sierra 10.12.6 and after updated using these versions below it's working.
|
Still no luck @SimenB / @giovanigenerali . I switched my attention to Chrome instead of Phantom now. |
This commit solves the "Cannot start PhantomJS" on Mac OS Sierra. Also, a package-lock.json file was created karma-runner/karma-phantomjs-launcher#138 (comment)
Karma and PhantomJS are failing on OSX Sierra: karma-runner/karma-phantomjs-launcher#138 Before merging this, we should (at minimum) test to see if this installs correctly on `ubu1204`. If we could try another variant of OSX, that would also be ideal.
Upgrading PhantomJS to 2.x seems to have allowed the installation to complete successfully. However, I am now getting an error in my tests when running from the command line:
I'm running tests that were written several years ago, so is it possible that they're simply not compatible with newer versions of PhantomJS? |
I had this issue after upgrading to High Sierra, and updating the |
Version fixes running PhantomJS process in Mac OS Sierra. See karma-runner/karma-phantomjs-launcher#138.
Updating to "[email protected]" fixed it for me |
This update allows me to run the tests on Mac OS Sierra… See karma-runner/karma-phantomjs-launcher#138
Same error for me =( |
* Upgrade `karma-phantomjs-launcher` This fixes tests for Mac Os Sierra - [see this](karma-runner/karma-phantomjs-launcher#138). * Add getCurrentSpeech() function & tests for it * Update README with new getCurrentSpeech() function doc * More solid version of getCurrentSpeech() function * Add null test case for getCurrentSpeech()
However I am not 100% sure that this issue is related to Sierra, It seems the only thing changed in a project already configured and working.
Any Idea?
The text was updated successfully, but these errors were encountered: