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

前端 未结 21 1738
野趣味
野趣味 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条回答
  •  -上瘾入骨i
    2020-11-29 01:45

    Using Windows 10, Bash
    This worked for me:

    1. npm get prefix // to find Path which for me it was C:\Users\User\AppData\Roaming\npm
    2. search "Environment Variables" which located in "System Properties".
    3. Under "System Variables", find the PATH variable, select it, and click "Edit". Click "New" and add the path found with the "npm get prefix" command earlier (which was for me C:\Users\User\AppData\Roaming\npm) Then click "Ok"
    4. Restart Bash

    firebase --version //to check firebase version

提交回复
热议问题