Node.js 未满足的对等依赖循环

Node.js 未满足的对等依赖循环,node.js,cordova,angular,npm,ionic2,Node.js,Cordova,Angular,Npm,Ionic2,我正在尝试向我的应用程序添加@ionic native/对话框。我是通过跑步来做到这一点的 npm安装--保存@ionic native/对话框 在应用程序目录中,我发现以下错误: +-- 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 PEE

我正在尝试向我的应用程序添加
@ionic native/对话框。我是通过跑步来做到这一点的

npm安装--保存@ionic native/对话框
在应用程序目录中,我发现以下错误:

+-- 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.
我已经试着按照指示去做了,但是没有用

我还试图单独安装每个对等依赖项,但当我运行

npm安装@angular/common@2.4.8

我得到

+-- 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
所有这些都需要对方吗?我还尝试在同一个命令中同时安装所有这些软件包,但出现了完全相同的错误

很多回复(比如)都说要搞乱他们的package.json文件,但从来没有提到他们到底在做什么。我是NPM的新手,所以更具体的指导会很有帮助

这里的每个请求都是我的依赖项列表和依赖项

  "dependencies": {
    "@angular/common": "2.4.8",
    "@angular/compiler": "2.4.8",
    "@angular/compiler-cli": "2.4.8",
    "@angular/core": "2.4.8",
    "@angular/forms": "2.4.8",
    "@angular/http": "2.4.8",
    "@angular/platform-browser": "2.4.8",
    "@angular/platform-browser-dynamic": "2.4.8",
    "@angular/platform-server": "2.4.8",
    "@ionic-native/dialogs": "^3.9.0",
    "@ionic/storage": "2.0.0",
    "angular2-text-mask": "^8.0.1",
    "ionic-angular": "2.2.0",
    "ionic-native": "2.4.1",
    "ionic2-input-mask": "^0.18.6",
    "ionicons": "3.0.0",
    "rxjs": "5.0.1",
    "sw-toolbox": "3.4.0",
    "zone.js": "0.7.2"
  },
  "devDependencies": {
    "@ionic/app-scripts": "1.1.4",
    "typescript": "2.0.9"
  },

奇怪的是,这些版本看起来都是正确的

,因此您已经尝试删除节点模块并执行
npm安装
。如果这不起作用,可能是您的package.json有问题。您能否显示它的
“依赖项”
“依赖项”
?可能某个版本列错了。我已将package.json添加到您的依赖项中似乎缺少的问题
@ionic native/core@^3.6.0
。。。虽然它是唯一丢失的thng(我不确定你是否真的需要申报)