Link to home
Start Free TrialLog in
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>






Avatar of David H.H.Lee
David H.H.Lee
Flag of Malaysia image

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
Avatar of chalie001
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>



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.
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial