I downloaded the "phantomjs-1.7.0-windows.zip " for Windows from here.
I even set up the path of the extracted folder in the environment variables. But I am getting the "parse error" when I try to enter any command like phantomjs --version
in the phantomjs.exe
command prompt. (My Windows is 64 bit.)
Why is it throwing the error?
PhantomJS is based on WebKit making it a similar browsing environment to Safari and Google Chrome (before Chrome's fork of WebKit evolved into Blink). It is open-source software released under the BSD License.
Download and Installation Go to the download page of the PhantomJS official website, where you can download the . zip file according to your OS. Different versions are available for Windows, Mac, and Linux.
Type phantomjs --version
in the Windows command-prompt.
If you launch PhantomJS by executing phantomjs.exe
, you are now inside PhantomJS interactive mode (REPL). In this prompt, you should type JavaScript code.
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