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.

Heres's the output of the command 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.

enter image description here

+3


source to share


3 answers


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!

+4


source


I had a similar problem starting node as the admin solved my problem.



+1


source


  • Get back to your CD
  • a type: bower--install-dev platform

  • Type: cordova platform add android

    (non ionic run) I did this, it works here.
0


source







All Articles