无法在Ionic 2 @ RC1上安装angularfire2

时间:2016-11-01 04:12:25

标签: ionic-framework ionic2 angularfire2

我正在努力将Ionic 2应用程序与firebase集成。试图在Ionic 2 RC1版本上安装angularfire2。我收到这个错误。我该如何解决这个依赖问题?

 $ npm install angularfire2 --save
    ├── UNMET PEER DEPENDENCY @types/request@0.0.30
    └── angularfire2@2.0.0-beta.5 

$ ionic info
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 0.0.36
ios-deploy version: 1.9.0 
ios-sim version: 5.0.9 
OS: Mac OS X Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.1 Build version 8B62

1 个答案:

答案 0 :(得分:1)

通过安装依赖项

修复了问题
npm install @types/request@0.0.30 --save

npm install @types/jasmine@^2.5.36 --save

npm install firebase angularfire2 --save

收到一些警告,但已安装软件包

npm WARN @ngtools/webpack@1.1.4 requires a peer of @angular/compiler-cli@^2.1.0 but none was installed.