Ionic - "platform add android" Comand failed with exit code ENOENT
Please help me to configure my Windows 8 / Ionic / Cordova / Android settings correctly.
I am trying to use the 'add platform android' command but I cannot get it to work. I've seen similar posts, but not exactly the same.
I have tried disabling Cordova and Ionic and reinstalling them as recommended here http://tinyurl.com/ogxb8u5 , but that has no effect.
I assumed my environment variables are ok because the ant, android, java and node commands work fine, as do Cordova and ionic as seen in the tests below.
source to share
Sorry, you do not have sufficient rights to comment on your question. I faced a similar problem. run this command before adding android platform,
C: \ your \ Directory> npm link cordova
C: \ your \ Directory> npm link ionic
then go,
C: \ your \ Directory> ionic platform add android
hope this helps!
source to share