我目前正在尝试在我的ubuntu上用e安装firebase和angularfire2,这给我带来了麻烦(角度/常见,角度/核心,角度/平台浏览器,角度/平台浏览器动态,角/编译器)
我继续安装一个成功输出,然后得到一个警告说没有安装包(你可以在代码中看到,这里有一个角度/编译器的例子)
非常感谢您的时间/帮助
~/Documents/PiPle $ sudo npm install @angular/compiler@5.0.0 -g --save
/usr/local/lib
└─┬ @angular/compiler@5.0.0
└── tslib@1.9.0
~/Documents/PiPle $ npm cache clean
~/Documents/PiPle $ sudo npm install @angular/platform-browser@5.0.0 @angular/platform-browser-dynamic@5.0.0 -g --save
/usr/local/lib
├── @angular/platform-browser@5.0.0
└── @angular/platform-browser-dynamic@5.0.0
npm WARN @angular/platform-browser@5.0.0 requires a peer of @angular/core@5.0.0 but none was installed.
npm WARN @angular/platform-browser@5.0.0 requires a peer of @angular/common@5.0.0 but none was installed.
npm WARN @angular/platform-browser-dynamic@5.0.0 requires a peer of @angular/core@5.0.0 but none was installed.
npm WARN @angular/platform-browser-dynamic@5.0.0 requires a peer of @angular/common@5.0.0 but none was installed.
npm WARN @angular/platform-browser-dynamic@5.0.0 requires a peer of @angular/compiler@5.0.0 but none was installed.
答案 0 :(得分:0)
根据我的解释,您需要安装所有必需的角度包,而不仅仅是platform-browser
和compiler
。
也可以运行此命令:
$ sudo npm install @angular/core@5.0.0 @angular/common@5.0.0 -g --save
不确定为什么它抱怨compiler
,因为看起来它应该安装它。它应该在您运行应用程序后运行良好,因为它只是一个警告。