问题
I need to host website to google firebase hosting. I looked almost everywhere but steel have the problem. I have installed npm install --global firebase also npm install -g firebase-tools but when I want to use firebase command it says : "command not found"
firebase-tools "-bash: firebase: command not found"
Firebase Hosting set up issue
https://github.com/firebase/firebase-tools/issues/46
this posts didn't helped
this is after sudo npm install --global firebase-tools
回答1:
alias firebase="`npm config get prefix`/bin/firebase"
回答2:
I forgot to install Firebase Tools after a long time away from it on new computer... Use npm i firebase --save
to set your project up and npm install -g firebase-tools
to install the tools for e.g. serving your app locally, etc.
来源:https://stackoverflow.com/questions/38912491/bash-firebase-command-not-found