I am create API with firebase via this tutorial here.
On I run:
firebase deploy
I get this error on the command line:
You can try this :
firebase deploy --only hosting
Full docs
The tutorial you're following is very old. Cloud Functions now requires an active billing account. You will need to add one, even if you don't expect to exceed the free allowance.
See also:
Consider contacting the author of that article to tell them that they should update their article to be more accurate.
If you just want to test or follow the tutorial, see this answer.
If you want to use at the real projects, follow these steps:
From Firebase FAQ:
From updates on August 17, 2020, Cloud Functions for Firebase will rely on some additional paid Google services, so You have to add billing, enable Container Registry API and Cloud Storage API to use it.
See more: Cloud Functions pricing
Edit: Following these steps automatically upgrades your Project plan to Blaze-Pay as you go. - Thanks to @Abhimanyu