Building an ionic application you can have the following error:
Error: ERROR : executing command ‘ant’, make sure you have ant installed and added to your path.
And if you install ant, using brew install ant, you can just have an JAVA_HOME problem. For Mavericks users, you need to set your JAVA_HOME as:
Before do it, please reinstall your ant:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup