离子未满足的同伴依赖环路
我正在尝试将@ionic-native/dialogs
到我的应用程序中。 我通过在应用程序目录中运行npm install --save @ionic-native/dialogs
来实现这一点,并且出现以下错误:
+-- 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.
我试图按照这里的指示, 在这里无济于事。
我也试图单独安装每个peer dependency,但是当我运行npm install @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新手,所以更具体的指导将会有所帮助。
每个请求这里是我的依赖列表和devDependencies
"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" },
奇怪的是,这些版本都是正确的
- 如何处理DeprecationWarning:未处理的承诺拒绝在量angular器中被弃用
- 当Angular不可用时,如何等待一个元素与量angular器可见?
- 组件文件夹中的index.js的好处
- Angular 2创build新项目和SQL
- router_1.provideRouter在尝试运行Angular2 / NodeJS应用程序时不是函数
- Docker容器与Angular2应用程序和NodeJs不响应
- 当使用angular version 2.4.9,typescript&webpack version 2.2.1时,属性'map'在types'Observable <Response>'上不存在
- Angular2应用程序的构build,但加载的CSS,JS文件夹时找不到文件
- 用ng服务器启动服务器时出现NPM错误