I have the Vim ALE plugin installed, and can run tidy successfully on the command line (installed via brew install tidy on macOS). However, in vim
tidy
brew install tidy