I get this error when attempting to run "htmlhint" from the command line. I installed with "npm install htmlhint -g". Any ideas?
You can read help like this:
That command generates the same error.
Place a test.html in current directory.
Try this cmd:
What's your system?
Mac or Windows?
Yup, same error. I'm on Mac
I have no mac, so htmlhint is not tested on mac.
I will found mac to test soon, thank you for report issue.
I just fixed this on my Mac by running dos2unix on the htmlhint 'binary' in node_modules/htmlhint/bin. So it's probably an issue with the line endings in the file.
Can you please publish an updated version to npm with this fix? This issue is still affecting new installs.
A fix pushed to npm would be much appreciated, as I'm still seeing this bug. In the meantime, referencing the executable directly works:
node /usr/local/bin/htmlhint index.html