I'm trying to install PhantomJS on my Mac (Yosemite).
I did the following:
npm install phantomjs
Then I did:
npm install phantomjs-prebuilt
Both of which appear in my node_modules. But when I try to run phantomjs --version
I get
-bash: phantomjs: command not found
Also tried installing the binary from the downloads website, but nothing. What am I missing? End goal is to use casperjs but currently casper is asking
Fatal: [Errno 2] No such file or directory; did you install phantomjs?
I thought I did....?
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.
If you are using Homebrew, you can type:
brew tap homebrew/cask brew cask install phantomjs
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