Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhantomJS version 1.4.0 version issue

I installed PhantomJS today and got this error trying to use it:

PhantomJS version 1.4.0
is too old. You must use at least version 1.7.0  
(Capybara::Poltergeist::PhantomJSTooOld)

How can I install the newer version?

I can get the newer version (1.7) at: http://phantomjs.org/download.html

Once I've downloaded it though how do I actually install it?

like image 815
Michael Durrant Avatar asked Apr 06 '26 05:04

Michael Durrant


2 Answers

Are you using Linux or OS X? You'll need to either build from source or install an updated PhantomJS package. You can also download the binaries and install over the system installed PhantomJS. Type "which phantomjs" and it should show the location of PhantomJS.

like image 94
Cameron Tinker Avatar answered Apr 08 '26 22:04

Cameron Tinker


If you're using homebrew, just:

brew upgrade phantomjs
like image 31
Steven Soroka Avatar answered Apr 09 '26 00:04

Steven Soroka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!