HI,
I convert my angular project to Ionic project using this tutorial but when I execute this command ionic cordova run android --project="XXX"
says
An unhandled exception occurred: Project "XXX" does not exist.
See "logPath" for further details.
[ERROR] An error occurred while running subprocess ng.
ng.cmd run XXX:ionic-cordova-build --platform=android exited with exit code 127.
Re-running this command with the --verbose flag may provide more information.
ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms
ionic:utils-process onBeforeExit handler: running 1 functions +1ms
ionic:utils-process error while killing process tree for 18428: Error: Command failed: taskkill /pid 18428 /T /F
ionic:utils-process ERROR: The process "18428" not found.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (node:child_process:402:12)
ionic:utils-process at ChildProcess.emit (node:events:513:28)
ionic:utils-process at maybeClose (node:internal/child_process:1100:16)
ionic:utils-process at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) {
ionic:utils-process code: 128,
ionic:utils-process killed: false,
ionic:utils-process cmd: 'taskkill /pid 18428 /T /F'
ionic:utils-process } +213ms
ionic:utils-process onBeforeExit handler: error from function: Error: Command failed: taskkill /pid 18428 /T /F
ionic:utils-process ERROR: The process "18428" not found.
ionic:utils-process
ionic:utils-process at ChildProcess.exithandler (node:child_process:402:12)
ionic:utils-process at ChildProcess.emit (node:events:513:28)
ionic:utils-process at maybeClose (node:internal/child_process:1100:16)
ionic:utils-process at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) {
ionic:utils-process code: 128,
ionic:utils-process killed: false,
ionic:utils-process signal: null,
ionic:utils-process cmd: 'taskkill /pid 18428 /T /F'
ionic:utils-process } +4ms
ionic:utils-process processExit: exiting (exit code: 127) +3ms
can some one help me to solve the problem?
thanks
Ionic:
Ionic CLI : 5.4.16 (ZZZ\node_modules\ionic)
Ionic Framework : @ionic/angular 5.9.4
@angular-devkit/build-angular : 0.1102.1
@angular-devkit/schematics : 11.2.1
@angular/cli : 11.2.1
@ionic/angular-toolkit : 7.0.0
Cordova:
Cordova CLI : 11.0.0
Cordova Platforms : android 10.1.2
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 3 other plugins)
Utility:
cordova-res : not installed
native-run : 1.7.1
System:
NodeJS : v16.18.1
npm : 8.19.2
OS : Windows 10