0

So I recently installed a few linters for sublimelinter and so far all work except htmltidy. I installed as directed using terminal (I'm running OSX) in the following way:

sudo npm install -g htmltidy

This worked for CSSLint, JSHint etc. but not htmltidy. i checked usr/local/bin and it turns out that there is no .js file for htmltidy. How could I fix this?

Jonathan H.
  • 939
  • 1
  • 7
  • 21

1 Answers1

1

Run whereis htmltidy. If that does not return anything close out of terminal and open it back up. The installer might of added something to your path but didn't resource it.

If that doesn't work run sudo find -name htmltidy /

Jeff Sloyer
  • 4,899
  • 1
  • 24
  • 48
  • I ran the second command you suggested and this came up in terminal: find: illegal option -- R usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression] – Jonathan H. Apr 12 '15 at 18:18
  • Sorry about that. I'm on my phone, it should be lowercase. Just updated the answer – Jeff Sloyer Apr 12 '15 at 18:20
  • A good comment was made above that the binary is called tidy. Search for that as well. – Jeff Sloyer Apr 12 '15 at 18:21
  • I used the lowercase command but it results in the same error: -- r usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression] – Jonathan H. Apr 12 '15 at 19:13
  • Sorry remove the -r option. – Jeff Sloyer Apr 12 '15 at 23:05
  • it looks like it is in the wrong location. Thanks for the help so far by the way but I'm afraid I'm not sure what step to take now. The message in terminal says: find: htmltidy: No such file or directory – Jonathan H. Apr 12 '15 at 23:31