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

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

    After installing:
    $ npm install -g firebase-tools
    $ firebase init
    -bash: firebase: command not found
    "If you are getting the above output then follow the below steps:"

    For Windows Users: type this cmd :
    $ npm get prefix
    C:\Users\Jeet\AppData\Roaming\npm [this is the location]

    Now you have to set in enviorenment variable -> (windows+r) -> sysdm.cpl -> Advanced(tab) -> Environment Variables -> under the System Variables -> click on path -> edit -> C:\Users\Jeet\AppData\Roaming\npm [paste] the above location -> apply - ok - ok.

    Restart your bash terminal
    Thanks!!!

提交回复
热议问题