Error Launcher Cannot Start Phantomjs
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch 337 Star 7,652 Fork 1,227 karma-runner/karma Code Issues 269 Pull requests 47 Projects 0 libfontconfig Pulse Graphs New issue Cannot start PhantomJS #1270 Closed etiennebr opened this error launcher cannot start phantomjs error spawn eacces Issue Dec 19, 2014 · 18 comments Projects None yet Labels None yet Milestone No milestone
Error Launcher Phantomjs Failed 2 Times (timeout). Giving Up
Assignees No one assigned 8 participants etiennebr commented Dec 19, 2014 Hello, this seems to be somewhat related to issue #558. However I'm new to all this (npm, grunt,
Phantomjs Failed 2 Times (cannot Start). Giving Up
karma) and I'm not really sure of the identity of the problem. When I grunt karma:unit I get this sad result Running "karma:unit" (karma) task INFO [karma]: Karma v0.12.28 server started at http://localhost:8080/ INFO [launcher]: Starting browser PhantomJS ERROR [launcher]: Cannot start PhantomJS Error: spawn EACCES INFO [launcher]: Trying to start PhantomJS again (1/2). ERROR [launcher]: Cannot start PhantomJS Error: spawn cannot start phantomjs ubuntu EACCES INFO [launcher]: Trying to start PhantomJS again (2/2). ERROR [launcher]: Cannot start PhantomJS Error: spawn EACCES ERROR [launcher]: PhantomJS failed 2 times (cannot start). Giving up. Warning: Task "karma:unit" failed. Use --force to continue. Aborted due to warnings. With my limited understanding I've tried installing and reinstalling (global and/or not) phantomjs but it didn't work out. I'm on Ubuntu 12.04 karma@0.12.28 node@0.10.34 phantomjs@1.9.12 However, when I $ phantomjs --version, I get 1.9.8. which is odd. Checking on the phantomjs website seems to confirm the latests release is phantomjs 1.9.8. $ npm remove phantomjs -g unbuild phantomjs@1.9.12 $ npm remove phantomjs unbuild phantomjs@1.9.12 $ phantomjs --version bash: ~/.npm-packages/bin/phantomjs: No such file or directory So I don't think there's another installation that karma could refer to. At this point, when I launch grunt karma:unit it accordingly say that phantomjs isn't there. Then I reinstalled phantomjs $ npm install phantomjs > phantomjs@1.9.12 install ~/mytodo/node_modules/phantomjs > node install.js Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 Saving to /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2 Receiving... [======================================--] 95% 0.0s Received 12854K total. Extracting tar contents (via spawned process) Removing /media/Fermi/workspace/mytodo/node_modules/phantomjs/lib/phantom Copying extracted folder /tmp/phantomjs
Sign in Pricing Blog Support
Karma Cannot Start Phantomjs
Search GitHub This repository Watch 14 Star grunt karma cannot start phantomjs 198 Fork 116 karma-runner/karma-phantomjs-launcher Code Issues 39 Pull requests 6 Projects 0 phantomjs have not captured in 60000 ms Pulse Graphs New issue Mac Os Sierra "Cannot start PhantomJS" #138 Open superandrew opened this Issue Sep 12, 2016 · https://github.com/karma-runner/karma/issues/1270 14 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 9 participants superandrew commented Sep 12, 2016 • edited However I am not 100% sure that this issue is related to Sierra, It https://github.com/karma-runner/karma-phantomjs-launcher/issues/138 seems the only thing changed in a project already configured and working. 12 09 2016 16:48:20.494:DEBUG [preprocessor.coverage]: Processing "/Users/anyuser/Documents/xcode/anyproject-backend/src/test/javascript/spec/components/auth/auth.services.spec.js". 12 09 2016 16:48:20.504:INFO [karma]: Karma v0.13.19 server started at http://localhost:9876/ 12 09 2016 16:48:20.509:INFO [launcher]: Starting browser PhantomJS 12 09 2016 16:48:20.509:DEBUG [temp-dir]: Creating temp dir at /var/folders/dj/j_jl7qxx06x59n9tfmkxh6s40000gn/T/karma-44720688 12 09 2016 16:48:20.511:DEBUG [launcher]: /Users/anyuser/Documents/xcode/anyproject-backend/node_modules/phantomjs/lib/phantom/bin/phantomjs /var/folders/dj/j_jl7qxx06x59n9tfmkxh6s40000gn/T/karma-44720688/capture.js 12 09 2016 16:48:20.618:DEBUG [launcher]: Process PhantomJS exited with code 0 12 09 2016 16:48:20.618:ERROR [launcher]: Cannot start PhantomJS 12 09 2016 16:48:20.618:DEBUG [temp-dir]: Cleaning temp dir /var/folders/dj/j_jl7qxx06x59n9tfmkxh6s40000gn/T/karma-44720688 12 09 2016 16:48:20.622:INFO [launcher]: Trying to start PhantomJS again (1/2). 12 09 2016 16:48:20.623:DEBUG [launcher]: Restarting PhantomJS 12 09 2016 16:48:20.623:DEBUG [temp-dir]: Creating temp dir at /var/folders/dj/j_jl7qxx06x59n9tfmkxh6s40000gn/T/karma-44720688 12 09 2016 16:48:20.624:DEBUG [launcher]: /Users/anyuser/Documents/xcode/anyproject-backend/node_modules/phantomjs/lib/phantom/bin/phantomjs /var/folders/dj/j_jl7qxx06x59n9tfmkxh6s40000gn/T/karma-44720688/capture.js /var/folders/dj/j_jl7qxx06x59n9tfmkxh6s40000gn/T/karma-4472068
here for a quick overview of http://stackoverflow.com/questions/28876061/phantomjs-cannot-start-up the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs cannot start Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up phantomjs cannot start up up vote 5 cannot start phantomjs down vote favorite I used AngularJS in my project and karma to test. Then I configured karma like this: config.set({ basePath: '../', frameworks: ['jasmine'], files: [ // bower:js 'bower_components/jquery/dist/jquery.js', 'bower_components/angular/angular.js', 'bower_components/bootstrap/dist/js/bootstrap.js', 'bower_components/angular-animate/angular-animate.js', 'bower_components/angular-cookies/angular-cookies.js', 'bower_components/angular-route/angular-route.js', 'bower_components/angular-sanitize/angular-sanitize.js', 'bower_components/angular-mocks/angular-mocks.js', // endbower 'js/**/*.js', 'test/spec/**/*.js' ], browsers: [ 'PhantomJS' ], plugins: [ 'karma-phantomjs-launcher', 'karma-jasmine' ], port: 8890 }) And grunt like this: grunt.initConfig({ connect: { testserver: { options: { base: 'js/', hostname: 'localhost', port: '8889' } } }, karma: { unit: { configFile: './test/karma-unit.conf.js', singleRun: true } } }); grunt.registerTask('test', ['connect', 'karma:unit']); When I type 'grunt test', the console shows that phantomjs cannot start: Running "connect:testserver" (connect) task Started connect web server on http://localhost:8889 Running "karma:unit" (karma) task INFO [karma]: Karma v0.12.31 server started at http://localhost:8890/ INFO [launcher]: Starting browser PhantomJS ERROR [launcher]: Cannot start PhantomJS INFO