Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 281
Jie Hart Avatar asked Apr 09 '17 23:04

Jie Hart


People also ask

What does firebase init do?

This initializes Firebase and sets up a new Firebase project in the directory. It can be used to initialize specific features when called with them. It creates a configuration file, firebase. json , in the current directory.

How do I change the default project in firebase init?

Show activity on this post. Then in the list of projects, select your project. And then finally for the alias name enter default (or whatever you entered before). For a full list of the commands, have a look at the reference documentation of the Firebase CLI.


2 Answers

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

like image 136
Jie Hart Avatar answered Sep 20 '22 22:09

Jie Hart


  1. download firebase CLI binary (in case you didn't download it yet. this is an .exe file if you use windows).

  2. copy the downloaded file into your project's root folder (Folder which contains all the files and folders of your projects).

  3. run the firebase-tools-instant-win_2.exe (firebase CLI binary).

  4. a command window will open.

  5. execute all your command in there.

like image 37
Md. Syamul Bashar Avatar answered Sep 19 '22 22:09

Md. Syamul Bashar