Reputation: 15
So I was following a tutorial on a todo app with react and firebase. And when it was time to deploy the app,
firebase init
was to be written on the terminal. I tried this on both the vscode terminal and on my mac but it says firebase not found. I had even installed firebase.
Upvotes: 1
Views: 6345
Reputation: 196
curl -sL firebase.tools | upgrade=true bash
run this commmand in your terminal to init firebase to your mac machine
Upvotes: 1
Reputation: 187
Upvotes: 0
Reputation: 1548
I feel you installed firebase locally in your project as a dependency (which is great!)
However, to deploy the app, you need to install firebase CLI
as well.
Here is a link on how to install firebase-cli
first - https://firebase.google.com/docs/cli#install-cli-mac-linux
And then here is an article on how to deploy with firebase - https://firebase.google.com/docs/hosting/quickstart
Upvotes: 5