简体   繁体   English

'firebase init' 给了我一个离子项目的一般错误

[英]'firebase init' gives me a generic error on a ionic project

I'm following a course of ionic and I need to store a picture on firebase database, at that point we should install firebase-tools, which I do by executing as admin:我正在学习 ionic 课程,我需要在 firebase 数据库上存储一张图片,此时我们应该安装 firebase-tools,我以管理员身份执行:

npm install -g firebase-tools

But then the course says you should execute:但是随后课程说你应该执行:

firebase init

and then I receive the following error:然后我收到以下错误:

Error: An unexpected error has occurred.错误:发生意外错误。

This generic error with nothing else.这个一般错误没有别的。

Any ideas of how to solve this?关于如何解决这个问题的任何想法?

If you execute:如果你执行:

firebase init --debug

This gives you more info about the error.这为您提供了有关错误的更多信息。

It might be something about credentials or login information which can be solved by executing:它可能与凭据或登录信息有关,可以通过执行以下命令来解决:

firebase login

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 Angular Ionic 项目中的“@firebase/app”导入 { Firebase } 时出错 - Error with import { Firebase } from '@firebase/app' in Angular Ionic project firebase init throws Error: failed to get Firebase 项目名称错误 - firebase init throws Error: failed to get Firebase project with wrong project name 即使我没有更改示例项目中的任何内容,使用 Google Actions 控制台也会出现错误 - Using the Google Actions console gives me an error, even if I didn't change anything in the sample project ionic - Firebase 身份验证:此域未授权用于 Firebase 项目的 OAuth 操作 - ionic - Firebase auth: This domain is not authorized for OAuth oprations for your Firebase project firebase web app quickstart-js 函数示例项目在调用函数时出错 - firebase web app quickstart-js functions sample project gives error when calling functions 如何使用 ionic typescript 解决 firebase 未捕获错误? - how to resolve a firebase Uncaught Error with ionic typescript? 在 Firebase 中更新 dislayName 会出现语法错误 - Updating dislayName in Firebase gives a syntax error 导入 Azure rm 给我一个错误 - Importing Azure Rm gives me an error 创建用户登录/注册错误(Angular、Ionic 和 Firebase) - Create user Login / Registration Error (Angular, Ionic and Firebase) Firebase 模拟器在尝试使用 Firestore 时出现 CORS 错误 - Firebase emulator gives CORS error when trying to use Firestore
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM