【问题标题】:Not able to install angularfire2 via npm无法通过 npm 安装 angularfire2
【发布时间】:2017-12-10 04:21:05
【问题描述】:

我正在尝试通过运行从 npm 安装 angularfire2,但我不断收到此错误

D:\angular\firebase\apartment>npm install angularfire2 firebase --save
apartment@0.0.0 D:\angular\firebase\apartment
+-- angularfire2@4.0.0-rc.1
`-- firebase@4.1.3

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.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN angularfire2@4.0.0-rc.1 requires a peer of @angular/common@^4.0.0 but none was installed.
npm WARN angularfire2@4.0.0-rc.1 requires a peer of @angular/compiler@^4.0.0 but none was installed.
npm WARN angularfire2@4.0.0-rc.1 requires a peer of @angular/core@^4.0.0 but none was installed.
npm WARN angularfire2@4.0.0-rc.1 requires a peer of @angular/platform-browser@^4.0.0 but none was installed.
npm WARN angularfire2@4.0.0-rc.1 requires a peer of @angular/platform-browser-dynamic@^4.0.0 but none was installed.

【问题讨论】:

  • 它们是警告,请放心忽略。

标签: node.js angular firebase npm angularfire


【解决方案1】:

最后 5 个 npm warn 是由于依赖关系。您没有安装 angularfire 所需的模块。

两种可能的解决方案是,将您的 npm 降级,即低于 3。 npm

【讨论】:

    猜你喜欢
    • 2016-06-14
    • 2011-09-01
    • 2013-10-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-12
    • 2017-03-28
    • 2012-04-05
    相关资源
    最近更新 更多