philipwalton / html-inspector

HTML Inspector is a code quality tool to help you and your team write better markup. It's written in JavaScript and runs in the browser, so testing your HTML has never been easier.
2.32k stars 145 forks source link

"PhantomJS must be installed to use the HTML Inspector CLI." (Windows 8.1) #50

Closed yuricamara closed 9 years ago

yuricamara commented 9 years ago

Hi guys,

I followed the steps below:

  1. Downloaded phantomjs.
  2. Extracted the files to c:/bin/phantomjs/
  3. Put this path in Windows Environment Variable.
  4. Restart the machine.
  5. Ran phantomjs --version in command line and the result was 1.9.8 as expected.
  6. Ran htmlinspector index.html in a folder with this file and the message "PhantomJS must be installed to use the HTML Inspector CLI." appeared in console.

Who could help me, please?

philipwalton commented 9 years ago

Hmmm, this may be a Windows/Unix compatibility issue. Out of curiousity, what does running which phantomjs return from the command line?

I ask because here's the logic that produces the error you're seeing: https://github.com/philipwalton/html-inspector/blob/0.8.1/bin/html-inspector#L32-L35

yuricamara commented 9 years ago

Windows doesn´t recognize the which command.

philipwalton commented 9 years ago

Thanks, should be fixed as of 0.8.2. Let me know if you're still having problems.

yuricamara commented 9 years ago

Thank you very much @philipwalton .

It works like a charm!