UNMET PEER DEPENDENCY @ionic-native/core@3.12.1


#1

Hi all ! Could anyone suggest please, what dose it meen ? My ionic info.

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.12.0
ionic (Ionic CLI) : 3.12.0

local packages:

@ionic/app-scripts : 3.0.0
Ionic Framework    : ionic-angular 3.7.0

System:

Node : v6.10.3
npm  : 3.10.10 
OS   : macOS Sierra

Misc:

backend : pro

#2

It means that you have things in your package.json that are reliant on conflicting versions of @ianic-native/core.


#3

rapropos, I use latest Ionic. Is it will affect on built/run process ?


#4

Post your package.json so we can have a look.


#5
{
    "name": "mob",
    "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.4.3",
        "@angular/compiler": "4.4.3",
        "@angular/compiler-cli": "4.4.3",
        "@angular/core": "4.4.3",
        "@angular/forms": "4.4.3",
        "@angular/http": "4.4.3",
        "@angular/platform-browser": "4.4.3",
        "@angular/platform-browser-dynamic": "4.4.3",
        "@ionic-native/app-version": "^4.3.0",
        "@ionic-native/background-mode": "^4.3.0",
        "@ionic-native/clipboard": "^4.3.0",
        "@ionic-native/core": "3.12.1",
        "@ionic-native/device": "^4.3.0",
        "@ionic-native/file": "^4.3.0",
        "@ionic-native/file-opener": "^4.3.0",
        "@ionic-native/file-transfer": "^4.3.0",
        "@ionic-native/in-app-browser": "^4.3.0",
        "@ionic-native/keyboard": "^4.3.0",
        "@ionic-native/local-notifications": "^4.3.0",
        "@ionic-native/native-storage": "^4.3.0",
        "@ionic-native/network": "^4.3.0",
        "@ionic-native/splash-screen": "3.12.1",
        "@ionic-native/status-bar": "3.12.1",
        "@ionic-native/vibration": "^4.3.0",
        "@ionic-native/zip": "^4.3.0",
        "@ionic/storage": "2.0.1",
        "cordova-clipboard": "^1.1.0",
        "cordova-ios": "^4.5.1",
        "cordova-plugin-app-event": "file:node_modules/cordova-plugin-app-event",
        "cordova-plugin-app-version": "^0.1.9",
        "cordova-plugin-background-mode": "^0.7.2",
        "cordova-plugin-compat": "^1.2.0",
        "cordova-plugin-device": "^1.1.4",
        "cordova-plugin-file": "^4.3.3",
        "cordova-plugin-file-opener2": "^2.0.19",
        "cordova-plugin-file-transfer": "^1.6.3",
        "cordova-plugin-inappbrowser": "^1.7.1",
        "cordova-plugin-nativestorage": "^2.2.2",
        "cordova-plugin-network-information": "^1.3.3",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.2",
        "cordova-plugin-vibration": "^2.1.5",
        "cordova-plugin-whitelist": "^1.3.1",
        "cordova-plugin-zip": "^3.1.0",
        "de.appplant.cordova.plugin.local-notification": "^0.8.5",
        "ionic-angular": "3.7.0",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "rxjs": "5.4.3",
        "sw-toolbox": "3.6.0",
        "ts-md5": "^1.2.2",
        "zone.js": "0.8.17"
    },
    "devDependencies": {
        "@ionic/app-scripts": "3.0.0",
        "typescript": "2.3.4"
    },
    "description": "An Ionic project",
    "cordova": {
        "plugins": {
            "cordova-plugin-app-version": {},
            "cordova-plugin-background-mode": {},
            "cordova-clipboard": {},
            "cordova-plugin-device": {},
            "cordova-plugin-file": {},
            "cordova-plugin-file-opener2": {},
            "cordova-plugin-inappbrowser": {},
            "ionic-plugin-keyboard": {},
            "de.appplant.cordova.plugin.local-notification": {},
            "cordova-plugin-nativestorage": {},
            "cordova-plugin-network-information": {},
            "cordova-plugin-file-transfer": {},
            "cordova-plugin-vibration": {},
            "cordova-plugin-zip": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-statusbar": {},
            "cordova-plugin-whitelist": {}
        },
        "platforms": [
            "ios"
        ]
    }
}

#6

Update these to the same version as the others.


#7

Sujan12, I downloaded today latest Ionic with this package.json … maybe not only I will have such conflicts …


#8

Yes, but then you installed additional Ionic Native packages without making sure they match the version of the @ionic-native/core which they require.


#9

Sujan12, I need update packages with “@ionic-native/core”: “^4.3.3” ?


#10

Current Ionic Native is 4.3.0: https://github.com/ionic-team/ionic-native/releases


#11

Sujan12, thanks …


#12

Thanks for the clarification,I’m new to this - I updated my package.json from
"@ionic-native/core": “^3.21.1”,

to

@ionic-native/core”: “^4.3.0”,

then I ran npm-i and I got this error,

npm WARN @ionic-native/status-bar@3.12.1 requires a peer of @ionic-native/core@^3.6.0 but none was installed.

So, I update the version of this plugin to the same one as the ionic-native/core in my package.json,

"@ionic-native/status-bar": "^4.3.0",

And then ran npm-i, this is the result -

├── @ionic-native/splash-screen@4.3.0
└── @ionic-native/status-bar@4.3.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})

I feel like I am misunderstanding this process, where am I going wrong?


#13

Why? The last result is all good. These mention problems with optional dependencies and so can be ignored.


#14

What command did you use to upgrade? @anton_klochko


#15

same here.how did you solve it?