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.
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
curl -sL firebase.tools | upgrade=true bash
run this commmand in your terminal to init firebase to your mac machine
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.