ng添加 @angular/fire eresolve无法解析依赖树

发布于 2025-02-04 11:20:36 字数 2524 浏览 3 评论 0原文

这是遵循我使用的命令的版本。您能帮我解决这个问题吗?谢谢 - - - - - - - - - - - - - - - - - - - - - - - - ------ Angular CLI:14.0.0节点:16.15.1软件包管理器:NPM 8.11.0 OS:Win32 X64 Angular:14.0.0 ...动画,CLI,常见,编译器,编译器-CLI,CORE,表单...平台 - 浏览器,平台 - 浏览器 - 动力学,路由器 软件包版本--------------------------------------------------------------------------- ------------- @Angular-devkit/Architect 0.1400.0 @angular-devkit/build-angular 14.0.0 @angular-devkit/core
14.0.0 @angular-devkit/示例学14.0.0 @angular/fire 0.0.0 @示意图/angular 14.0.0 rxjs 7.5.5 typescript 4.7.7.3 --------------------------------------------------- ----------------------------------------------------------------------------- --- ng添加 @angular/fire跳过安装:已找到已安装的软件包“ @angular/fire”,但不支持原理图。 ----------------------------------------------------------------------------- --------------------------------------------------------------------- ng添加 @angular/ [email  procected] 。添加软件包可能不会成功。 包 @angular/ [email  procected] 将安装和执行。您想继续吗?是NPM WARN配置全局- 全局- 本地已弃用。使用- 位置=全局而不是。 npm err!代码eresolve npm err! ERESOLVE无法解析依赖性树NPM err! npm err!解决方案时:找到: @angular/ node_modules/@angular/common npm err! @angular/common@“^14.0.0” root Project npm err! npm err!无法解决依赖性:npm err! peer @angular/common @“ ^12.0.0 || ^13.0.0”来自 @angular/ [email 受保护] npm err! node_modules/@angular/fire npm err! @angular/fire@“ 7.3.0”来自root Project npm err! npm err!修复上游依赖性冲突,或重试NPM ERR!此命令带有-force或-legacy-peer-deps npm err!接受不正确(并可能破坏)依赖性解决方案。 npm err! npm err!请参阅C:\ user \ user \ user \ appdata \ local \ npm-cache \ eresolve-report.txt,以获取完整报告。 npm err!可以在:NPM ERR中找到此运行的完整日志! C:\ USER \ USER \ user \ AppData \ local \ npm-cache_logs \ 2022-06-04T17_59_45_994Z-DEBUG-0.LOG×软件包安装失败,请参见上文。 ----------------------------------------------------------------------------- ----------------------------------------------

This is the versions follow the commands that I used. Can you help me resolve the issue? Thank you ------------------------------------------------------ Angular CLI: 14.0.0 Node: 16.15.1 Package Manager: npm 8.11.0 OS: win32 x64
Angular: 14.0.0 ... animations, cli, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router
Package Version --------------------------------------------------------- @angular-devkit/architect 0.1400.0 @angular-devkit/build-angular 14.0.0 @angular-devkit/core
14.0.0 @angular-devkit/schematics 14.0.0 @angular/fire 0.0.0 @schematics/angular 14.0.0 rxjs 7.5.5 typescript 4.7.3 ---------------------------------------------------------------------
ng add @angular/fire Skipping installation: Package already installed Package "@angular/fire" was found but does not support schematics. ----------------------------------------------------------------------------------------------- ng add @angular/[email protected] i Using package manager: npm ‼️ Package has unmet peer dependencies. Adding the package may not succeed.
The package @angular/[email protected] will be installed and executed. Would you like to proceed? Yes npm WARN config global --global, --local are deprecated. Use --location=global instead. npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: @angular/[email protected] npm ERR! node_modules/@angular/common npm ERR! @angular/common@"^14.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@"^12.0.0 || ^13.0.0" from @angular/[email protected] npm ERR! node_modules/@angular/fire npm ERR! @angular/fire@"7.3.0" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See C:\Users\User\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2022-06-04T17_59_45_994Z-debug-0.log × Packages installation failed, see above. -------------------------------------------------------------------------------

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

塔塔猫 2025-02-11 11:20:36

几天前,我遇到了同样的问题。根据这个GitHub问题: https://github.com/github.com/angular/angular/angular/angularfire/3105 < /a>

您可以使用以下命令(假设您已经通过NPM安装了Firebase)

firebase login
npm i -D firebase-tools
ng add @angular/fire@latest

和BTW:请让您的问题可读...

I've encountered the same problem a few days ago. According to this Github issue: https://github.com/angular/angularfire/issues/3105

You can solve it by using the following commands (assuming that you already installed firebase via NPM)

firebase login
npm i -D firebase-tools
ng add @angular/fire@latest

and BTW: please make your question readable...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文