Hi,
When I run
ionic cordova platform add android
I get the following output:
$ ionic cordova platform add android
> cordova platform add android --save
Using cordova-fetch for cordova-android@~6.3.0
Error: Failed to fetch platform cordova-android@~6.3.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! Linux 3.13.0-77-generic
npm ERR! argv "/home/pisaris/.nvm/versions/node/v6.11.4/bin/node" "/home/pisaris/projects/batler.io_new/batler.io/node_modules/.bin/npm" "install" "cordova-android@~6.3.0" "--production" "--save-exact"
npm ERR! node v6.11.4
npm ERR! npm v2.15.12
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package @ionic-native/core@3.14.0 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @ionic-native/app-rate@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/camera@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/device@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/file@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/file-path@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/in-app-browser@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/keyboard@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/local-notifications@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/native-page-transitions@4.4.2 wants @ionic-native/core@^4.2.0
npm ERR! peerinvalid Peer @ionic-native/native-storage@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/network@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/onesignal@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/screen-orientation@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/social-sharing@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/splash-screen@3.7.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/status-bar@3.7.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/toast@3.14.0 wants @ionic-native/core@^3.6.0
npm ERR! peerinvalid Peer @ionic-native/transfer@3.14.0 wants @ionic-native/core@^3.6.0
However, my package.json is as following:
{
"name": "io.batler.sgl",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "4.1.0",
"@angular/compiler": "4.1.0",
"@angular/compiler-cli": "4.1.0",
"@angular/core": "4.1.0",
"@angular/forms": "4.1.0",
"@angular/http": "4.1.0",
"@angular/platform-browser": "4.1.0",
"@angular/platform-browser-dynamic": "4.1.0",
"@ionic-native/app-rate": "3.14.0",
"@ionic-native/camera": "3.14.0",
"@ionic-native/core": "3.14.0",
"@ionic-native/device": "3.14.0",
"@ionic-native/file": "3.14.0",
"@ionic-native/file-path": "3.14.0",
"@ionic-native/in-app-browser": "3.14.0",
"@ionic-native/keyboard": "3.14.0",
"@ionic-native/local-notifications": "3.14.0",
"@ionic-native/native-page-transitions": "4.4.2",
"@ionic-native/native-storage": "3.14.0",
"@ionic-native/network": "3.14.0",
"@ionic-native/onesignal": "3.14.0",
"@ionic-native/screen-orientation": "3.14.0",
"@ionic-native/social-sharing": "3.14.0",
"@ionic-native/splash-screen": "3.7.0",
"@ionic-native/status-bar": "3.7.0",
"@ionic-native/toast": "^3.10.3",
"@ionic-native/transfer": "^3.6.1",
"@ionic/app-scripts": "3.0.1",
"@ionic/storage": "2.0.1",
"com.telerik.plugins.nativepagetransitions": "^0.6.5",
"com.unarin.cordova.beacon": "^3.5.2",
"cordova-ios": "~4.5.3",
"cordova-plugin-app-event": "^1.2.1",
"cordova-plugin-apprate": "^1.3.0",
"cordova-plugin-camera": "^2.4.1",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-crosswalk-webview": "^2.3.0",
"cordova-plugin-device": "^1.1.7",
"cordova-plugin-dialogs": "^1.3.4",
"cordova-plugin-email": "^1.2.6",
"cordova-plugin-email-composer": "^0.8.11",
"cordova-plugin-file": "^5.0.0",
"cordova-plugin-file-transfer": "^1.7.0",
"cordova-plugin-filepath": "^1.1.0",
"cordova-plugin-globalization": "^1.0.8",
"cordova-plugin-inappbrowser": "^1.7.2",
"cordova-plugin-nativestorage": "^2.2.2",
"cordova-plugin-network-information": "^1.3.4",
"cordova-plugin-screen-orientation": "^2.0.2",
"cordova-plugin-splashscreen": "^4.1.0",
"cordova-plugin-statusbar": "^2.3.0",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-plugin-x-socialsharing": "^5.2.1",
"cordova-plugin-x-toast": "^2.6.0",
"cordova-sqlite-storage": "^2.1.2",
"cordova-uglify": "^0.2.9",
"de.appplant.cordova.plugin.local-notification": "^0.8.5",
"es6-promise-plugin": "^4.1.1",
"hammerjs": "^2.0.8",
"intl": "^1.2.5",
"ionic": "^3.4.0",
"ionic-angular": "3.2.1",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"localforage": "^1.5.0",
"localforage-cordovasqlitedriver": "^1.6.0",
"onesignal-cordova-plugin": "^2.2.2",
"reflect-metadata": "^0.1.3",
"rxjs": "5.1.1",
"setimmediate": "^1.0.5",
"sw-toolbox": "3.6.0",
"uglify-js": "^3.1.3",
"web-animations-js": "^2.2.5",
"woocommerce-api": "^1.4.2",
"wpapi": "^1.1.2",
"zone.js": "0.8.10"
},
"devDependencies": {
"@ionic/app-scripts": "3.1.0",
"@types/hammerjs": "^2.0.35",
"crypto-js": "^3.1.9-1",
"ionic": "3.18.0",
"typescript": "^2.3.4"
},
"description": "batler.io: An Ionic project",
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-statusbar",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
],
"cordova": {
"plugins": {
"com.unarin.cordova.beacon": {},
"cordova-plugin-camera": {
"CAMERA_USAGE_DESCRIPTION": " ",
"PHOTOLIBRARY_USAGE_DESCRIPTION": " "
},
"cordova-plugin-file-transfer": {},
"cordova-plugin-filepath": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-nativestorage": {},
"cordova-sqlite-storage": {},
"ionic-plugin-keyboard": {},
"cordova-plugin-crosswalk-webview": {
"XWALK_VERSION": "23+",
"XWALK_LITEVERSION": "xwalk_core_library_canary:17+",
"XWALK_COMMANDLINE": "--disable-pull-to-refresh-effect",
"XWALK_MODE": "embedded",
"XWALK_MULTIPLEAPK": "true"
},
"cordova-plugin-screen-orientation": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-x-socialsharing": {},
"de.appplant.cordova.plugin.local-notification": {},
"cordova-plugin-network-information": {},
"cordova-plugin-email": {},
"cordova-plugin-device": {},
"cordova-plugin-apprate": {},
"onesignal-cordova-plugin": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-email-composer": {},
"cordova-plugin-file": {},
"com.telerik.plugins.nativepagetransitions": {}
},
"platforms": [
"ios"
]
}
}
ionic info:
$ ionic info
cli packages: (/home/pisaris/projects/batler.io_new/batler.io/node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.0.1
Cordova Platforms : none
Ionic Framework : ionic-angular 3.2.1
System:
Android SDK Tools : 26.1.1
Node : v6.11.4
npm : 2.15.12
OS : Linux 3.13
Environment Variables:
ANDROID_HOME : /home/pisaris/Android/Sdk
Misc:
backend : legacy
Also, when I run
npm outdated
I get the following output:
Package Current Wanted Latest Location
@ionic/app-scripts 3.0.1 3.0.1 3.1.2 io.batler.sgl
@angular/common 4.1.0 4.1.0 5.0.3 io.batler.sgl
@angular/compiler 4.1.0 4.1.0 5.0.3 io.batler.sgl
@angular/compiler-cli 4.1.0 4.1.0 5.0.3 io.batler.sgl
@angular/core 4.1.0 4.1.0 5.0.3 io.batler.sgl
@angular/forms 4.1.0 4.1.0 5.0.3 io.batler.sgl
@angular/http 4.1.0 4.1.0 5.0.3 io.batler.sgl
@angular/platform-browser 4.1.0 4.1.0 5.0.3 io.batler.sgl
@angular/platform-browser-dynamic 4.1.0 4.1.0 5.0.3 io.batler.sgl
@ionic-native/app-rate 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/camera 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/core 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/device 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/file 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/file-path 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/in-app-browser 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/keyboard 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/local-notifications 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/native-storage 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/network 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/onesignal 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/screen-orientation 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/social-sharing 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic-native/splash-screen 3.7.0 3.7.0 4.4.2 io.batler.sgl
@ionic-native/status-bar 3.7.0 3.7.0 4.4.2 io.batler.sgl
@ionic-native/toast 3.14.0 3.14.0 4.4.2 io.batler.sgl
@ionic/app-scripts 3.0.1 3.0.1 3.1.2 io.batler.sgl
@ionic/storage 2.0.1 2.0.1 2.1.3 io.batler.sgl
cordova-plugin-camera 2.4.1 2.4.1 3.0.0 io.batler.sgl
cordova-uglify 0.2.9 0.2.9 0.3.0 io.batler.sgl
ionic-angular 3.2.1 3.2.1 3.9.2 io.batler.sgl
rxjs 5.1.1 5.1.1 5.5.2 io.batler.sgl
zone.js 0.8.10 0.8.10 0.8.18 io.batler.sgl
Any ideas about what is going on?
Thanks in advance