-1

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:

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?

jeprubio
  • 17,312
  • 5
  • 45
  • 56
Buddy Christ
  • 1,364
  • 8
  • 22

1 Answers1

2

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
jeprubio
  • 17,312
  • 5
  • 45
  • 56
  • You are right, the error was: `Error: Could not load the default credentials.` and with that `firebase login` command it works. Thank you! – Buddy Christ Apr 14 '20 at 12:05