-bash: firebase: command not found

user6698888 picture user6698888 · Aug 12, 2016 · Viewed 8.2k times · Source

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

enter image description here

this is after sudo npm install --global firebase-tools

enter image description here

Answer

Benny Powers picture Benny Powers · Sep 29, 2016
alias firebase="`npm config get prefix`/bin/firebase"