I had a similar problem when trying an ion platform add android.
result; partial assembly with an ENOENT error called "cordova-plugin-console" on the same child process as mentioned above superspawn.js
After trying to reinstall, etc. without permission, I changed my path variables. ANDROID_HOME was placed in user variables -
C:\Users\XXXXXX\AppData\Local\Android\android-sdk
PATH was updated in system variables to remove previous entries for the SDK and added at the end; %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Windows\System32;C:\Users\XXXXXX\Node\;C:\Users\XXXXX\AppData\Local\Android\android-sdk\tools;C:\Users\XXXXXX\AppData\Local\Android\android-sdk\platform-tools;
Restart the computer, test it using the new ionic start <new folder> tabs cd application in the created folder, test it ionic serve --lab exit with q, then try adding the platform. ionic platform add android
now it works.
Please note that ********* now that I run "android" in CMD from my user directory ... C:\Users\XXXXX>android
I do not see xcopy not found on my screen. The Android SDK manager always loads before and still after I changed my paths.
Hope this helps ps. I am running these cmds from my non-admin user, as I never log in or use my computer as an administrator.
SuperTed Mar 22 '16 at 15:49 2016-03-22 15:49
source share