I'm trying to set up Firebase cloud functions, but when I input firebase init
into terminal, it says:
You're about to initialize a Firebase project in this directory: /Users/username`.
How do I save the folder in my projects directory? I tried...
cd ~/Desktop/MyProject/
firebase init
But it didn't work. And Firebase documentation isn't very clear about this. All they say is this...
To initialize your project:
- Run firebase login to log in via the browser and authenticate the firebase tool.
- Go to your Firebase project directory.
- Run firebase init functions.
Any ideas? I feel like I'm missing something simple. Thanks.
I had the same problem. All you have to do is:
1) locate the firebase.json file in your /Users/username directory
2) delete that firebase.json file
3) Now run the firebase init command in your new project directory
This worked for me. Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With