Avatar of chalie001
chalie001
 asked on

issue deploying in firebase

hi am having the following issue when deploying in fire base
C:\Angular3\deployment\deployment-finished>firebase init

     ######## #### ########  ######## ########     ###     ######  ########
     ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##
     ######    ##  ########  ######   ########  #########  ######  ######
     ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
     ##       #### ##     ## ######## ########  ##     ##  ######  ########

You're about to initialize a Firebase project in this directory:

  C:\Angular3\deployment\deployment-finished

Before we get started, keep in mind:

  * You are currently outside your home directory
  * You are initializing in an existing Firebase project directory

? Are you ready to proceed? Yes
? Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confi
rm your choices. Hosting: Configure and deploy Firebase Hosting sites

=== Project Setup

First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.

i  .firebaserc already has a default project, using ng-course-recipe-book-65f10.

Error: Failed to get Firebase project ng-course-recipe-book-65f10. Please make sure the project exists and your account has permission to access it.

C:\Angular3\deployment\deployment-finished>






Node.jsJavaScriptAWSAngularWeb Servers

Avatar of undefined
Last Comment
Julian Hansen

8/22/2022 - Mon
David H.H.Lee

You can check the detailed error log from firebase-debug.log.

Try reauthorize your firebase project and see whether the error resolve.
>>

firebase logout

firebase login
chalie001

ASKER
where is firebase-debug.log
firebase logout
+  Logged out from myemail2@gmail.com

C:\Angular3\deployment\deployment-finished>firebase login
i  Firebase optionally collects CLI usage and error reporting information to help improve our products. Data is collected in accordance with Google's privacy policy (https://policies.google.com/privacy) and is not used to identify you.

? Allow Firebase to collect CLI usage and error reporting information? No

Visit this URL on this device to log in:
https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&response_type=code&state=357809401&redirect_uri=http%3A%2F%2Flocalhost%3A9005

Waiting for authentication...

+  Success! Logged in as myemail@gmail.com

C:\Angular3\deployment\deployment-finished>firebase-debug.log
'firebase-debug.log' is not recognized as an internal or external command,
operable program or batch file.

C:\Angular3\deployment\deployment-finished>firebase init

     ######## #### ########  ######## ########     ###     ######  ########
     ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##
     ######    ##  ########  ######   ########  #########  ######  ######
     ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
     ##       #### ##     ## ######## ########  ##     ##  ######  ########

You're about to initialize a Firebase project in this directory:

  C:\Angular3\deployment\deployment-finished

Before we get started, keep in mind:

  * You are currently outside your home directory
  * You are initializing in an existing Firebase project directory

? Are you ready to proceed? Yes
? Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confi
rm your choices. Hosting: Configure and deploy Firebase Hosting sites

=== Project Setup

First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.

i  .firebaserc already has a default project, using ng-course-recipe-book-65f10.

Error: Failed to get Firebase project ng-course-recipe-book-65f10. Please make sure the project exists and your account has permission to access it.

C:\Angular3\deployment\deployment-finished>



David H.H.Lee

Hi chalie001,

I saw your logout and logged in user show different user account as mentioned. Can you logout all your existing google account and re-authorize login with correct firebase account again?

>> Logout status
+  Logged out from myemail2@gmail.com 

But Login status show a different user account?
>>
+  Success! Logged in as myemail@gmail.com 

Check if the error still persist there.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
Julian Hansen

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.