为什么我不能在角度2中安装firebase?

时间:2017-02-06 06:17:57

标签: angular firebase

我尝试使用以下命令在Angular 2中安装Firebase: npm install angularfire2 firebase --savenpm install git+https://github.com/angular/angularfire2.git

但是,不工作。我收到错误:

├── angularfire2@2.0.0-beta.7 
├── UNMET PEER DEPENDENCY bootstrap@~3.3.x
├── firebase@3.6.8 
└── UNMET PEER DEPENDENCY rxjs@5.0.0-beta.12

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.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN @angular/core@2.1.2 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/http@2.1.2 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN @angular/router@3.1.2 requires a peer of rxjs@5.0.0-beta.12 but none was installed.
npm WARN angular2-jwt@0.1.25 requires a peer of rxjs@5.0.0-beta.12 but none was installed.

我的angular-cli,npm,node和OS版本是:

angular-cli: 1.0.0-beta.19-3
npm: 3.10.8
node: 7.0.0
os: linux x64

有什么问题?我是否需要升级angular-cli版本?

1 个答案:

答案 0 :(得分:0)

看起来你需要安装/更新bootstrap和rxjs。

UNMET PEER DEPENDENCY bootstrap@~3.3.x

UNMET PEER DEPENDENCY rxjs@5.0.0-beta.12