firebase-tools “-bash: firebase: command not found”

前端 未结 21 1654
野趣味
野趣味 2020-11-29 01:15

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         


        
相关标签:
21条回答
  • 2020-11-29 01:54

    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

    0 讨论(0)
  • 2020-11-29 01:55

    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!

    0 讨论(0)
  • 2020-11-29 01:58

    This is for updated mac mac Os Catalina(10.15.1+) & on zsh.

    1. Go to Terminal (vim .zprofile)
    2. add this export PATH="/Users/Your Username/.npm-global/bin:$PATH"

    Works for me!

    0 讨论(0)
提交回复
热议问题