Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No binary for PhantomJS browser on your platform. Please, set "PHANTOMJS_BIN" env variable

My package.json looks like this..

"karma-phantomjs-launcher": "^0.1.4", "karma-safari-launcher": "^0.1.1", "karma-sinon-chai": "~0.2.0", "karma-spec-reporter": "~0.0.16", "mocha": "~1.20.1" 

my npm version is 2.2.0

whay am I getting this when I run karma test - karma start my.conf.js

like image 345
Sanath Avatar asked Feb 05 '15 04:02

Sanath


1 Answers

This seems to be an issue with phantom js runner and phantom js versions.

https://github.com/karma-runner/karma-phantomjs-launcher/issues/31

How I fixed my issue..

   # install     npm install -g karma-phantomjs-launcher     # temporary path.. set the path    export PHANTOMJS_BIN=/usr/local/lib/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs     karma start my.conf.js 
like image 99
Sanath Avatar answered Sep 17 '22 18:09

Sanath