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

前端 未结 21 1807
野趣味
野趣味 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

    Adding to Durul Dalkanat's answer,

    Assuming you have executed npm install firebase-tools -g

    1. Firstly get the output of the command of npm get prefix.
    2. Open .bashrc file which is in the home directory and add alias /bin/firebase at the end of the file.
    3. Run source .bashrc in the home directory.

    Enjoy!

    The alias of firebase will be the actual firebase path in the main system and this solution should work flawlessly.

提交回复
热议问题