Hey!
I'm new to Firebase, and tried to deploy my app.
but I always get this error : -bash: firebase: command not found
I tried installing with
npm install -g firebase-tools a
aswel as
npm install --global firebase-tools
and their corresponding sudo
command.
Any ideas on how to fix this?
Check this thread on stack overflow: http://stackoverflow.com/a/35037456/2087198
Closing for now as this seems like an install issue in your specific case. If you still have issues, please re-open and provide some information about what errors you are seeing.
Could you check up to install 'nodejs' in ubuntu?
check up command :
node -v
if u don't show node version in windows, follow commend!
sudo apt-get install nodejs-legacy
after, it will be okay!
Run code below with terminal,
alias firebase="`npm config get prefix`/bin/firebase"
@durul This saved my life after about 40 ridiculous minutes - Worked like a charm!
Another issue is you need to login to your computer as a Root/Administrator. I utilized this solution under my personal account and the code referenced above worked, however, it was pointed out to me that I was not under a root/administrator account.
Hey guys
i have been trying to run the firebase login but am getting these errors
'firebase' is not recognized as an internal or external command,
operable program or batch file.
please help!
@victoredede21 Maybe this can help?
@durul
Great! Thanks, man.
A mi me paso lo mismo, en Windows de recomendacion instalen git y usen la consola de git o enlacenla a su editor yo uso vs code para usar la consola de git el problema es que 1) tenes que loguearte con Google 2) importar los archivos que te da firebase en tu tu proyecto. 3) haber instalado npm, 4) npm install -g firebase-tools 5) PONER EN LA CONSOLA ls para que quede a mismo nivel, de las carpetas src y dist o public 6) firebase login 7) firebase init y listo ya estan en el proyecto.
@durul still saving lives <3
I tried everything you wrote here, yet i am still getting the same result //bash: C:UsersMikeAppDataRoamingnpm/bin/firebase: No such file or directory
You are using OS Win. You should put the firebase folder path in envariment variavel.
alias firebase="npm config get prefix/bin/firebase"
The line above should put in ~/.bashrc of Linux.
For Win, search on Google aboult "environment variable path".
Run code below with terminal,
alias firebase="`npm config get prefix`/bin/firebase"
YES! This worked for me.
somehow it doesn't work with spaces, so I fixed it with '
, like that:
alias firebase="'
npm config get prefix
/bin/firebase'"
Run code below with terminal,
alias firebase="`npm config get prefix`/bin/firebase"
This worked, but I seem to be getting command not found on other packages like eslint, this still
resolves that by running: alias eslint="npm config get prefix
/bin/eslint"
But i'm wondering what causes this.
I tried everything you wrote here, yet i am still getting the same result //bash: C:UsersMikeAppDataRoamingnpm/bin/firebase: No such file or directory
same problem here . do you have some idea about this matter? why doesn't work on windows
Below command works for me on terminal
curl -sL firebase.tools | upgrade=true bash
This command install firebase tool for me
If you are using linux :
use: alias firebase="npm config get prefix
/bin/firebase";
to solve it , It helped me.
curl -sL https://firebase.tools | bash
For windows try to install it without -g .//because it will store modules some where in C drive where you will never found it again.
try npm -i --save firebase-tools
you will found .bin in node_modules of current directory './node_modules/.bin'
try to copy full path of ./bin folder and run cmd and type : set path=copied_path
now type: firbase
now it will workes .you have to run (set path=full path of .bin folder) every time when you open terminal.
what can I do?
Solution
npm install -g firebase-tools
firebase login
https://firebase.google.com/docs/cli#mac-linux-npm
Most helpful comment
Run code below with terminal,