I installed ionic 3 on my ubuntu 14.04, then I installed visual studio code and downloaded the cordova tools extension.
Giving the command
ionic cordova build android
Running app-scripts build: --build --iscordovaserve --nobrowser
[11:39:50] build dev started ...
[11:39:50] clean started ...
[11:39:50] clean finished in 35 ms
[11:39:50] copy started ...
[11:39:50] deeplinks started ...
[11:39:50] deeplinks finished in 34 ms
[11:39:50] transpile started ...
[11:39:55] transpile finished in 5.39 s
[11:39:55] preprocess started ...
[11:39:55] preprocess finished in 1 ms
[11:39:55] webpack started ...
[11:39:56] copy finished in 6.08 s
[11:40:01] webpack finished in 5.75 s
[11:40:01] sass started ...
[11:40:04] sass finished in 3.10 s
[11:40:04] postprocess started ...
[11:40:05] postprocess finished in 401 ms
[11:40:05] lint started ...
[11:40:06] build dev finished in 16.34 s
[WARN] Error occurred during command execution from a CLI plugin
(@ionic/cli-plugin-cordova). Your plugins may be out of date.
TypeError: env.runcmd is not a function
giuseppedipalma@giuseppedipalma:~/ionicProjects/MyIonicProject$ ionic cordova build androi(node:8578) UnhandledPromiseRejectionWarning: Error [ERR_IPC_CHANNEL_CLOSED]: channel closed
at process.target.send (internal/child_process.js:578:16)
at taskError (/home/giuseppedipalma/ionicProjects/MyIonicProject/node_modules/@ionic/app-scripts/dist/worker-process.js:57:13)
at /home/giuseppedipalma/ionicProjects/MyIonicProject/node_modules/@ionic/app-scripts/dist/worker-process.js:17:13
at <anonymous>
(node:8578) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8578) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
reading in this forum I tried to launch then
ionic cordova run android --verbose
And my output is:
[DEBUG] Loading global plugin @ionic/cli-plugin-proxy
[DEBUG] Throwing PLUGIN_NOT_INSTALLED for global @ionic/cli-plugin-proxy
[DEBUG] Loading local plugin @ionic/cli-plugin-cordova
[DEBUG] Loading local plugin @ionic/cli-plugin-ionic-angular
Running app-scripts build: --address 0.0.0.0 --port 8100 --p 8100 --livereload-port 35729 --r 35729 --iscordovaserve --nobrowser
[11:52:27] build dev started ...
[11:52:27] clean started ...
[11:52:27] clean finished in 2 ms
[11:52:27] copy started ...
[11:52:27] deeplinks started ...
[11:52:27] deeplinks finished in 25 ms
[11:52:27] transpile started ...
[11:52:33] transpile finished in 5.68 s
[11:52:33] preprocess started ...
[11:52:33] preprocess finished in less than 1 ms
[11:52:33] webpack started ...
[11:52:34] copy finished in 6.83 s
[11:52:39] webpack finished in 5.81 s
[11:52:39] sass started ...
[11:52:44] sass finished in 5.37 s
[11:52:44] postprocess started ...
[11:52:44] postprocess finished in 220 ms
[11:52:44] lint started ...
[11:52:44] build dev finished in 17.32 s
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of
date.
[DEBUG] !!! ERROR ENCOUNTERED !!!
TypeError: env.runcmd is not a function
[DEBUG] TypeError: env.runcmd is not a function
at Object.<anonymous>
(/home/giuseppedipalma/ionicProjects/MyIonicProject/node_modules/@ionic/cli-plugin-cordova/dist/index.js:36:19)
at Generator.next (<anonymous>)
at /home/giuseppedipalma/ionicProjects/MyIonicProject/node_modules/tslib/tslib.js:107:75
at new Promise (<anonymous>)
at Object.__awaiter (/home/giuseppedipalma/ionicProjects/MyIonicProject/node_modules/tslib/tslib.js:103:16)
at Hook.hooks.register [as callable]
(/home/giuseppedipalma/ionicProjects/MyIonicProject/node_modules/@ionic/cli-plugin-cordova/dist/index.js:35:70)
at Hook.fire (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/dist/lib/hooks.js:18:21)
at Promise.all.registeredHooks.map
(/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/dist/lib/hooks.js:33:61)
at Array.map (<anonymous>)
at HookEngine.<anonymous>
(/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/dist/lib/hooks.js:33:48)
giuseppedipalma@giuseppedipalma:~/ionicProjects/MyIonicProject(node:9068) UnhandledPromiseRejectionWarning: Error [ERR_IPC_CHANNEL_CLOSED]: channel closed
at process.target.send (internal/child_process.js:578:16)
at taskError (/home/giuseppedipalma/ionicProjects/MyIonicProject/node_modules/@ionic/app-scripts/dist/worker-process.js:57:13)
at /home/giuseppedipalma/ionicProjects/MyIonicProject/node_modules/@ionic/app-scripts/dist/worker-process.js:17:13
at <anonymous>
(node:9068) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside ofan async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:9068) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections thatare not handled will terminate the Node.js process with a non-zero exit code.
My ionic info:
ionic info
[WARN] You are not in an Ionic project directory. Project context may be
missing.
global packages:
@ionic/cli-utils : 1.4.0
Ionic CLI : 3.4.0
System:
Node : v8.12.0
OS : Linux 4.15
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 6.4.1
I would just like to launch my application on the android connected usb device.
I hope in your help