Ionic command, "ionic platform add android"


#1

I am having problem running the command, ionic platform add android, error as shown in the image attached.
Please help.


#2

Try to execute the command

cordova platfor add android

at the end ionic has nothing to do with android.


#3

it really won’t matter, whether “ionic platform add android” or “cordova platform add android”, the errors are the same,

C:\Users\Edgar\myapp>ionic platform add android
Creating android project…
Error: C:\Users\Edgar.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\c
reate: Command failed with exit code ENOENT
at ChildProcess.whenDone (C:\Users\Edgar\AppData\Roaming\npm\node_modules\co
rdova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:808:12)

C:\Users\Edgar\myapp>cordova platform add android
Creating android project…
Error: C:\Users\Edgar.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\c
reate: Command failed with exit code ENOENT
at ChildProcess.whenDone (C:\Users\Edgar\AppData\Roaming\npm\node_modules\co
rdova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:808:12)


#4

I just found out that it worked when previous version was used as follows,

ionic platform add android@3.6.3

so, there is a problem on cordova-android version 3.6.4


#5

hi there , i m having exactly the same problem mentioned above screenshot.

I read all posts regarding this issue including that one but unable to resolve issue.
I m stuck at that point. when i run the script above, ionic platform add android@3.6.3 , it does not work, either

Ionic team please update your windows installation video tutorial