I can't install phantomJs in my macbook after upgrading to 10.11 (El Capitan).
Whenever I try to install it using homebrew it gives me this error:
$ brew install phantomjs phantomjs: OS X Yosemite or older is required. Error: An unsatisfied requirement failed this build.
Go to the “bin” folder and check phantomjs.exe file. If you are using it on a Windows OS, then you can set the path variable under the environment variable for fast access through command prompt. The command to run the PhantomJS program: C:\> phantomjs [options] file.
PhantomJS is a discontinued headless browser used for automating web page interaction. PhantomJS provides a JavaScript API enabling automated navigation, screenshots, user behavior and assertions making it a common tool used to run browser-based unit tests in a headless system like a continuous integration environment.
Something is broken since Xcode 7, if you have npm you can install it:
npm install -g phantomjs-prebuilt
Now that the issue have been handled, you can download it.
Note that :
npm install -g phantomjs
Will install v1.9.8
The latest preview version v2.0.1
works correctly on 10.11 El Captian is available as a binary download.
Just copy bin/phantomjs
from the download into /usr/local/bin/
(or wherever you want it) on your machine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With