Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase command not found #113

Closed
Andoion opened this issue Dec 13, 2015 · 29 comments
Closed

Firebase command not found #113

Andoion opened this issue Dec 13, 2015 · 29 comments

Comments

@Andoion
Copy link

Andoion commented Dec 13, 2015

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 sudocommand.

Any ideas on how to fix this?

@brunomperes
Copy link

Check this thread on stack overflow: http://stackoverflow.com/a/35037456/2087198

@jwngr
Copy link

jwngr commented Feb 4, 2016

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.

@jwngr jwngr closed this as completed Feb 4, 2016
@Cheolhun-Hwang
Copy link

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!

@durul
Copy link

durul commented May 15, 2017

Run code below with terminal,

alias firebase="`npm config get prefix`/bin/firebase"

@hoobear15
Copy link

@durul This saved my life after about 40 ridiculous minutes - Worked like a charm!

@scarletngold
Copy link

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.

@scarletngold
Copy link

@victoredede21
Copy link

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!

@majraL
Copy link

majraL commented Sep 21, 2018

@victoredede21 Maybe this can help?

@mrgenesis
Copy link

@durul

Great! Thanks, man.

@saulwolfdev
Copy link

saulwolfdev commented Apr 30, 2019

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.

@murillomfs
Copy link

@durul still saving lives <3

@davidik-gyarab
Copy link

I tried everything you wrote here, yet i am still getting the same result //bash: C:UsersMikeAppDataRoamingnpm/bin/firebase: No such file or directory

@mrgenesis
Copy link

mrgenesis commented Nov 20, 2019

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".

@hakanfilip
Copy link

Run code below with terminal,

alias firebase="`npm config get prefix`/bin/firebase"

YES! This worked for me.

@andrew-skrypnyk
Copy link

somehow it doesn't work with spaces, so I fixed it with ', like that:

alias firebase="'npm config get prefix/bin/firebase'"

@danielkol10
Copy link

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.

@splatterDevxz
Copy link

splatterDevxz commented Feb 21, 2020

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

@avijitnagare
Copy link

avijitnagare commented May 23, 2020

Below command works for me on terminal

curl -sL firebase.tools | upgrade=true bash

This command install firebase tool for me

@ghost
Copy link

ghost commented May 31, 2020

If you are using linux :
use: alias firebase="npm config get prefix/bin/firebase";
to solve it , It helped me.

@BATUCHKA
Copy link

BATUCHKA commented Jun 9, 2020

curl -sL https://firebase.tools | bash

@Oscuro1111
Copy link

Oscuro1111 commented Jul 10, 2020

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.

@RairaiToTheRescue
Copy link

er

what can I do?

@gustawdaniel
Copy link

Solution

npm install -g firebase-tools
firebase login

https://firebase.google.com/docs/cli#mac-linux-npm

@elron
Copy link

elron commented Aug 9, 2021

Run code below with terminal,

alias firebase="`npm config get prefix`/bin/firebase"

This worked but I need to run it everything I open up the bash. Is there a way to make this change permanent?

@kxshnawti
Copy link

Run code below with terminal,

alias firebase="`npm config get prefix`/bin/firebase"

Termux too??

@MartinSalamon5
Copy link

Thank you, worked like a charm!

@Quyduis
Copy link

Quyduis commented Jan 26, 2023

Run code below with terminal,

alias firebase="`npm config get prefix`/bin/firebase"

God bless you <3 <3

@uttampun44
Copy link

uttampun44 commented Mar 11, 2023

Follow this this step

  1. curl -sL https://firebase.tools | bash
  2. install firebase tools in linux
    when you install it
    then run the firebase login
    Screenshot from 2023-03-11 10-43-56
    Screenshot from 2023-03-11 10-44-06
    Screenshot from 2023-03-11 10-45-07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests