Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issues installing PhantomJS for windows: command not recognized

following the docs here: http://attester.ariatemplates.com/usage/phantom.html, I am trying to install phantomjs on my windows machine.

I tried adding multiple lines to my Path system variable, and yet, I get the same error in the command prompt when I type in phantomjs --version.

" 'phantomjs' is not recognized as an internal or external command, operable program or batch file."

I added the phantomjs.exe to C:\phantomjs\bin\, and added C:\phantomjs\bin\phantomjs to the path, and any variation that I could think of, such as:

C:\phantomjs\bin\phantomjs.exe\; C:\phantomjs\bin; C:\phantomjs\bin\phantomjs\;

How am I not installing this right?

like image 300
jakeinmn Avatar asked Nov 22 '15 04:11

jakeinmn


1 Answers

You don't need to put all the directories to the environment PATH variable.

Add only following to your path and restart your command prompt.

C:\phantomjs\bin\

like image 120
Chandan Avatar answered Sep 28 '22 23:09

Chandan