尝试安装@nuxtjs/Firebase时出现NPM错误 [英] NPM error when I am trying to install @nuxtjs/firebase

查看:32
本文介绍了尝试安装@nuxtjs/Firebase时出现NPM错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到这个错误,我不理解,而且我真的不知道如何修复……我正在使用Nuxt.js,并且我想同时使用Firebase,但是当我尝试使用Firebase.nuxtjs.org并安装@nuxtjs/Firebase时,我收到此错误-

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: **************@1.0.0
npm ERR! Found: firebase@9.0.1
npm ERR! node_modules/firebase
npm ERR!   firebase@"^9.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer firebase@"^8.3.1" from @nuxtjs/firebase@7.6.1
npm ERR! node_modules/@nuxtjs/firebase
npm ERR!   @nuxtjs/firebase@"*" 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.

我希望你们都能帮我。提前感谢您!

推荐答案

在@nuxtjs/Firebase库(https://github.com/nuxt-community/firebase-module)的自述文件中提到,当前不支持FireBase版本9。使用Firebase@8.10.0和@nuxtjs/Firebase@7.6.1应该可以。

您可以在此处跟踪nuxt下何时支持FireBase 9的进度:https://github.com/nuxt-community/firebase-module/issues/573

这篇关于尝试安装@nuxtjs/Firebase时出现NPM错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆