Skip to content Skip to sidebar Skip to footer

Install Phantomjs On Macos 10.11 El Captian

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 phantomj

Solution 1:

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.

Solution 2:

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.

Solution 3:

brew update

then

brew install phantomjs

Solution 4:

Install It through Homebrew or MacPorts

brew install phantomjs

or

port install phantomjs

Check the version using: phantomjs --version

Which will install the latest version. Currently: 2.1.1

My Mac OSX version: OS X El Capitan - Version 10.11.6

Thanks!

Solution 5:

If that doesn't work try:

brew install npm

npm install phantom phantomjs -g

Post a Comment for "Install Phantomjs On Macos 10.11 El Captian"