Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ant missing #2

Open
antoniobrandao opened this issue Jan 25, 2015 · 1 comment
Open

Ant missing #2

antoniobrandao opened this issue Jan 25, 2015 · 1 comment

Comments

@antoniobrandao
Copy link

I followed the steps and got this error:

Error: Failed to run "ant -version", make sure you have ant installed and added to your PATH.
at /kamrik/build/platforms/android/cordova/lib/check_reqs.js:43:27

I noticed "ant" is a NPM module so I installed it: "sudo npm install -g ant", but I get this warning

pm WARN engine ant@0.2.0: wanted: {"node":"~0.8.0"} (current: {"node":"0.10.33","npm":"1.4.28"})

ant@0.2.0 /usr/local/lib/node_modules/ant

So Ant doesn't get installed because my Node version is too high, therefore I keep getting the first error above.

Does your Template only work with {"node":"~0.8.0"} ?

@kamrik
Copy link
Owner

kamrik commented Jan 25, 2015

Hi Antonio,
The error is because cordova failed to find the Ant builder. Ant is not an npm package it's the Apache ant build system for java. You need to make sure you can run ant -version from the command line. Some version of Ant may be included with the Android SDK (not sure), but I use an independently installed version on my Mac.

This might be useful if you are on Mac as well.
http://superuser.com/questions/610157/how-do-i-install-ant-on-os-x-mavericks

On linux just do something like apt-get install ant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants