dustinspecker / generator-ng-poly

Yeoman generator for modular AngularJS apps with Gulp and optional Polymer support
MIT License
237 stars 50 forks source link

'unitTest' terminates with error 'Cannot start PhantomJS' #403

Open surajplobal opened 6 years ago

surajplobal commented 6 years ago

I'm using node v6.11.4 , npm 3.10.10 , gulp -v [11:32:29] CLI version 3.9.1 [11:32:29] Local version 3.9.1

Please find the below logs for details

plobaltech$ sudo gulp unitTest Password: [11:29:15] Using gulpfile /Applications/XAMPP/xamppfiles/htdocs/plobalapps-server/diy-frontend/gulpfile.js [11:29:15] Starting 'clean'... [11:29:15] Starting 'analyze'... [11:29:15] Finished 'analyze' after 145 μs [11:29:15] Starting 'clean:test'... [11:29:15] Finished 'clean' after 198 ms [11:29:15] Starting 'markup'... [11:29:15] Starting 'styles'... [11:29:15] Starting 'bowerAssets'... [11:29:15] Starting 'images'... [11:29:16] Starting 'favicon'... [11:29:16] Starting 'fonts'... [11:29:16] Finished 'clean:test' after 959 ms [11:29:16] Starting 'buildTests'... [11:29:16] Finished 'favicon' after 63 ms [11:29:16] Finished 'fonts' after 670 ms [11:29:16] Finished 'bowerAssets' after 1.13 s [11:29:17] Finished 'styles' after 1.67 s [11:29:17] Finished 'buildTests' after 925 ms [11:29:17] Finished 'images' after 1.15 s [11:29:17] Finished 'markup' after 1.74 s [11:29:17] Starting 'scripts'... [11:29:17] Finished 'scripts' after 633 ms [11:29:17] Starting 'inject'... [11:29:18] gulp-inject 224 files into index.html. [11:29:18] gulp-inject Nothing to inject into index.html. [11:29:18] Finished 'inject' after 385 ms [11:29:18] Starting 'bowerCopy'... [11:29:18] Finished 'bowerCopy' after 91 ms [11:29:18] Starting 'bowerInject'... [11:29:18] Finished 'bowerInject' after 166 ms [11:29:18] Starting 'components'... [11:29:18] Finished 'components' after 21 ms [11:29:18] Starting 'componentsInject'... [11:29:18] gulp-inject 1 files into index.html. [11:29:18] Finished 'componentsInject' after 8.06 ms [11:29:18] Starting 'copyTemplates'... [11:29:18] Finished 'copyTemplates' after 80 ms [11:29:18] Starting 'deleteTemplates'... [11:29:18] Finished 'deleteTemplates' after 42 μs [11:29:18] Starting 'build'... [11:29:18] Finished 'build' after 14 μs [11:29:18] Starting 'karmaFiles'... [11:29:18] Finished 'karmaFiles' after 219 ms [11:29:18] Starting 'unitTest'... 09 04 2018 11:29:20.130:WARN [watcher]: Pattern "/Applications/XAMPP/xamppfiles/htdocs/plobalapps-server/diy-frontend/node_modules/karma-babel-preprocessor/node_modules/babel-core/browser-polyfill.js" does not match any file. 09 04 2018 11:29:20.875:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/ 09 04 2018 11:29:20.881:INFO [launcher]: Starting browser PhantomJS 09 04 2018 11:29:21.027:ERROR [launcher]: Cannot start PhantomJS

09 04 2018 11:29:21.034:INFO [launcher]: Trying to start PhantomJS again (1/2). 09 04 2018 11:29:21.197:ERROR [launcher]: Cannot start PhantomJS

09 04 2018 11:29:21.204:INFO [launcher]: Trying to start PhantomJS again (2/2). 09 04 2018 11:29:21.352:ERROR [launcher]: Cannot start PhantomJS

09 04 2018 11:29:21.354:ERROR [launcher]: PhantomJS failed 2 times (cannot start). Giving up.

[11:29:21] 'unitTest' errored after 2.69 s [11:29:21] Error: 1 at formatError (/Users/plobaltech/.nvm/versions/node/v6.11.4/lib/node_modules/gulp/bin/gulp.js:169:10) at Gulp. (/Users/plobaltech/.nvm/versions/node/v6.11.4/lib/node_modules/gulp/bin/gulp.js:195:15) at emitOne (events.js:96:13) at Gulp.emit (events.js:188:7) at Gulp.Orchestrator._emitTaskDone (/Applications/XAMPP/xamppfiles/htdocs/plobalapps-server/diy-frontend/node_modules/orchestrator/index.js:264:8) at /Applications/XAMPP/xamppfiles/htdocs/plobalapps-server/diy-frontend/node_modules/orchestrator/index.js:275:23 at finish (/Applications/XAMPP/xamppfiles/htdocs/plobalapps-server/diy-frontend/node_modules/orchestrator/lib/runTask.js:21:8) at cb (/Applications/XAMPP/xamppfiles/htdocs/plobalapps-server/diy-frontend/node_modules/orchestrator/lib/runTask.js:29:3) at removeAllListeners (/Applications/XAMPP/xamppfiles/htdocs/plobalapps-server/diy-frontend/node_modules/karma/lib/server.js:336:7) at Server. (/Applications/XAMPP/xamppfiles/htdocs/plobalapps-server/diy-frontend/node_modules/karma/lib/server.js:347:9) at Server.g (events.js:292:16) at emitNone (events.js:91:20) at Server.emit (events.js:185:7) at emitCloseNT (net.js:1556:8) at _combinedTickCallback (internal/process/next_tick.js:77:11) at process._tickCallback (internal/process/next_tick.js:104:9)