我正在尝试设置 Firebase 云功能,但是当我输入 firebase init
时进入终端,它说:
You're about to initialize a Firebase project in this directory: /Users/username`.
如何将文件夹保存在我的项目目录中?我试过...
cd ~/Desktop/MyProject/
firebase init
但它没有用。 Firebase 文档对此不是很清楚。他们只说这...
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.
有任何想法吗?我觉得我错过了一些简单的东西。
谢谢。
最佳答案
我有同样的问题。您所要做的就是:
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
这对我有用。希望这可以帮助。
关于firebase - 为云函数设置 Firebase init 目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45131558/