Wednesday 17 May 2017

Ionic Unmet Peer Dependency Loop

I am attempting to add @ionic-native/dialogs to my application. I did this by running npm install --save @ionic-native/dialogs in the application directory and I got the following error:

+-- UNMET PEER DEPENDENCY @angular/common@2.4.8
+-- UNMET PEER DEPENDENCY @angular/compiler@2.4.8
+-- UNMET PEER DEPENDENCY @angular/core@2.4.8
+-- UNMET PEER DEPENDENCY @angular/forms@2.4.8
+-- UNMET PEER DEPENDENCY @ionic-native/core@^3.6.0
+-- @ionic-native/dialogs@3.9.0
+-- UNMET PEER DEPENDENCY rxjs@5.0.1
`-- UNMET PEER DEPENDENCY zone.js@0.7.2

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.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN @ionic-native/dialogs@3.9.0 requires a peer of @ionic-native/core@^3.6.0 but none was installed.
npm WARN ionic2-input-mask@0.18.6 requires a peer of @angular/common@2.0.0-rc.4 but none was installed.
npm WARN ionic2-input-mask@0.18.6 requires a peer of @angular/compiler@2.0.0-rc.4 but none was installed.
npm WARN ionic2-input-mask@0.18.6 requires a peer of @angular/core@2.0.0-rc.4 but none was installed.
npm WARN ionic2-input-mask@0.18.6 requires a peer of @angular/forms@0.2.0 but none was installed.
npm WARN ionic2-input-mask@0.18.6 requires a peer of rxjs@5.0.0-beta.6 but none was installed.
npm WARN ionic2-input-mask@0.18.6 requires a peer of zone.js@0.6.12 but none was installed.

I have attemplted to follow the instructions here, and here to no avail.

I also attempted to install each peer dependency individually, but when I ran npm install @angular/common@2.4.8

I got

+-- UNMET PEER DEPENDENCY @angular/common@2.4.8
+-- UNMET PEER DEPENDENCY @angular/compiler@2.4.8
+-- UNMET PEER DEPENDENCY @angular/core@2.4.8
+-- UNMET PEER DEPENDENCY @angular/forms@2.4.8
+-- UNMET PEER DEPENDENCY @ionic-native/core@^3.6.0
+-- UNMET PEER DEPENDENCY rxjs@5.0.1
`-- UNMET PEER DEPENDENCY zone.js@0.7.2

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.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN @ionic-native/dialogs@3.9.0 requires a peer of @ionic-native/core@^3.6.0 but none was installed.
npm WARN ionic2-input-mask@0.18.6 requires a peer of @angular/common@2.0.0-rc.4 but none was installed.
npm WARN ionic2-input-mask@0.18.6 requires a peer of @angular/compiler@2.0.0-rc.4 but none was installed.
npm WARN ionic2-input-mask@0.18.6 requires a peer of @angular/core@2.0.0-rc.4 but none was installed.
npm WARN ionic2-input-mask@0.18.6 requires a peer of @angular/forms@0.2.0 but none was installed.
npm WARN ionic2-input-mask@0.18.6 requires a peer of rxjs@5.0.0-beta.6 but none was installed.
npm WARN ionic2-input-mask@0.18.6 requires a peer of zone.js@0.6.12 but none was installed.
npm ERR! code 1

Do all of these somehow require each other? I also tried installing all of these packages at once in the same command, but with the exact same error.

Many of these responses (like this one) talk about messing around with their package.json file, but never mention exactly what they do. I'm new to NPM so more specific guidance would be helpful.



via Sam Borick

No comments:

Post a Comment