AngularFire:npm 错误! ERESOLVE 无法解析依赖树

AngularFire: npm ERR! ERESOLVE unable to resolve dependency tree

我正在关注 documentation to get started AngularFire 和 Angular Universal。但是在我 运行 npm install --save-dev @nguniversal/express-engine @nguniversal/module-map-ngfactory-loader express webpack-cli ts-loader ws xhr2 之后我得到以下错误:

npm ERR! ERESOLVE unable to resolve dependency tree

npm 错误!无法解决依赖关系: 错误!来自@nguniversal/module-map-ngfactory-loader@8.2.6 的对等@angular/common@"^8.2.0" 错误! node_modules/@nguniversal/module-map-ngfactory-loader 错误! dev @nguniversal/module-map-ngfactory-loader@"*" 来自根项目

我做错了什么?或者这是一个错误?有什么解决方法吗?

截至目前,angular fire 的文档不是最新的。此外,版本非常挑剔。我在 this tutorial.

之后取得了成功

您可以执行相同的步骤,但使用 angular11。此外,甚至不要尝试部署为云功能。