Excited that Firebase\'s hosting is now out of beta. Trying to get going with with the firebase-tools package and I\'ve successfully installed it:
npm instal
After installing
$ npm install -g firebase-tools
Note the directory where it istalled What I did was locate the directory where firebase was installed. In my case C:\usr\local then I copied the three firebase files. I also went into the node_modules folder and copied the firebase tools folder. Then I went to my app directory in file manager and pasted the firebase files, then created a new node_modules folder and pasted the firebase-tools folder.
Now go to your cmd and run
$ firebase init
It should work
None of above solutions worked, since I was using nvm for node versions
so instead of npm i -g firebase-tools
Use sudo npm i -g firebase-tools
Done!
This is for updated mac mac Os Catalina(10.15.1+) & on zsh.
Works for me!