Skip to content

Instantly share code, notes, and snippets.

@odra
Created June 7, 2018 09:11
Show Gist options
  • Save odra/6ae9ec23c2b95a4444877fda2cc90b16 to your computer and use it in GitHub Desktop.
Save odra/6ae9ec23c2b95a4444877fda2cc90b16 to your computer and use it in GitHub Desktop.
> cordova platform add android --save
Using cordova-fetch for cordova-android@^7.1.0
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: org.aerogear.js.showcase
Name: cordova_showcase_template
Activity: MainActivity
Android target: android-27
Subproject Path: CordovaLib
Subproject Path: app
Android project created with [email protected]
Android Studio project detected
Android Studio project detected
Installing "cordova-plugin-app-version" for android
Installing "cordova-plugin-device" for android
Installing "cordova-plugin-inappbrowser" for android
Installing "cordova-plugin-ionic-webview" for android
Installing "cordova-plugin-iroot" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-is-debug" for android
Installing "cordova-plugin-pincheck" for android
Installing "cordova-plugin-secure-key-store" for android
Installing "cordova-plugin-secure-storage" for android
Installing "cordova-plugin-splashscreen" for android
Installing "cordova-plugin-sslcertificatechecker" for android
Installing "cordova-plugin-statusbar" for android
Installing "cordova-plugin-whitelist" for android
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Installing "phonegap-plugin-push" for android
Installing "cordova-support-google-services" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "phonegap-plugin-multidex" for android
Subproject Path: CordovaLib
Subproject Path: app
Subproject Path: CordovaLib
Subproject Path: app
Discovered plugin "cordova-plugin-aerogear-metrics" in config.xml. Adding it to the project
Failed to restore plugin "cordova-plugin-aerogear-metrics" from config.xml. You might need to try adding it again. Error: Error: npm: Command failed with exit code 1 Error output:
npm ERR! Linux 4.16.12-200.fc27.x86_64
npm ERR! argv "/home/lrossett/.nvm/versions/node/v7.10.1/bin/node" "/home/lrossett/.nvm/versions/node/v7.10.1/bin/npm" "view" "cordova-plugin-aerogear-metrics" "--json"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! code E404
npm ERR! 404 Not found : cordova-plugin-aerogear-metrics
npm ERR! 404
npm ERR! 404 'cordova-plugin-aerogear-metrics' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /home/lrossett/.npm/_logs/2018-06-07T09_10_40_072Z-debug.log
Discovered plugin "cordova-plugin-aerogear-security" in config.xml. Adding it to the project
Failed to restore plugin "cordova-plugin-aerogear-security" from config.xml. You might need to try adding it again. Error: Error: npm: Command failed with exit code 1 Error output:
npm ERR! Linux 4.16.12-200.fc27.x86_64
npm ERR! argv "/home/lrossett/.nvm/versions/node/v7.10.1/bin/node" "/home/lrossett/.nvm/versions/node/v7.10.1/bin/npm" "view" "cordova-plugin-aerogear-security" "--json"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! code E404
npm ERR! 404 Not found : cordova-plugin-aerogear-security
npm ERR! 404
npm ERR! 404 'cordova-plugin-aerogear-security' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /home/lrossett/.npm/_logs/2018-06-07T09_10_41_403Z-debug.log
Discovered plugin "cordova-plugin-aerogear-push" in config.xml. Adding it to the project
Failed to restore plugin "cordova-plugin-aerogear-push" from config.xml. You might need to try adding it again. Error: Error: npm: Command failed with exit code 1 Error output:
npm ERR! Linux 4.16.12-200.fc27.x86_64
npm ERR! argv "/home/lrossett/.nvm/versions/node/v7.10.1/bin/node" "/home/lrossett/.nvm/versions/node/v7.10.1/bin/npm" "view" "cordova-plugin-aerogear-push" "--json"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! code E404
npm ERR! 404 Not found : cordova-plugin-aerogear-push
npm ERR! 404
npm ERR! 404 'cordova-plugin-aerogear-push' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /home/lrossett/.npm/_logs/2018-06-07T09_10_42_841Z-debug.log
--save flag or autosave detected
Saving android@~7.1.0 into config.xml file ...
[ERROR] Exception:
npm ERR! Linux 4.16.12-200.fc27.x86_64
npm ERR! argv "/home/lrossett/.nvm/versions/node/v7.10.1/bin/node" "/home/lrossett/.nvm/versions/node/v7.10.1/bin/npm" "run" "ionic:android"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] ionic:android: `ionic cordova run android --emulator --no-fetch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] ionic:android script 'ionic cordova run android --emulator --no-fetch'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cordova-showcase-template package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic cordova run android --emulator --no-fetch
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs cordova-showcase-template
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls cordova-showcase-template
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/lrossett/.npm/_logs/2018-06-07T09_10_43_795Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment