Firebase "Run firebase use default to activate project APP_NAME"

You may need to run commands firebase login and firebase init again before doing firebase deploy it solved problem in my case. I also needed to update npm and node.


If you run firebase use it should show you an interactive prompt to help you set the active project.

When this is run, it creates a mapping between the directory it was run in and which project / alias you selected, so if you moved the directory the firebase.json file is situated in the previous link may have been severed.


At first should firebase use to make default alias.

After firebase use default to use default.

Then firebase deploy yahoo.. you can deploy


When you select a project during firebase init, an alias called default is created for you. To create a new alias, run:

firebase use --add

Then Firebase CLI will ask you

Which project do you want to add? (Use arrow keys)

This command allows you to select a Firebase project and give it a named alias. Alias definitions are written to a .firebaserc file inside your project directory.

Tags:

Firebase