Why does firebase warn "* You are currently outside your home directory" during an init?

时间:2017-04-09 23:22:55

标签: firebase firebase-realtime-database

I am trying to deploy my first firebase app. I am getting the message "* You are currently outside your home directory" I googled it and found this reply

"commented on Dec 6, 2016 Just to make sure you're aware. If someone is experiencing the same problem with with the command firebase init Make the files .firebaserc and firebase.json manually and the deploy should work normally."

I do not know where to create them or what the should contain.

I have also gone to https://www.npmjs.com/package/firebase-tools to try to fix this problem.

If any one can help with this problem I would appreciate it.

4 个答案:

答案 0 :(得分:4)

If anyone else worried about this just keep going. I continued with the deployment and it deployed OK.

答案 1 :(得分:0)

初始化Firebase项目 使用CLI执行的许多常见任务(例如部署到Firebase项目)都需要一个项目目录。您可以使用firebase init命令建立项目目录。项目目录为 usually the same directory as your source control root ,运行 firebase初始化后,该目录包含firebase.json 配置文件。

要初始化新的Firebase项目,请从您应用的目录中运行以下命令:

答案 2 :(得分:0)

我在我的项目目录中使用了 firebase init project 来让它工作

答案 3 :(得分:0)

  1. 下载 firebase CLI 二进制文件(如果您还没有下载它。如果您使用 Windows,这是一个 .exe 文件)。

  2. 将下载的文件复制到您项目的根文件夹(包含您项目的所有文件和文件夹的文件夹)。

  3. 运行 firebase-tools-instant-win_2.exe(firebase CLI 二进制文件)。

  4. 将打开一个命令窗口。

  5. 在那里执行所有命令。