How to uninstall Firebase CLI (firebase-tools)
Asked Answered
M

4

28

I install Firebase CLI (firebase-tools) https://github.com/firebase/firebase-tools by this code:

curl -sL firebase.tools | bash

How to uninstall it totally?

Markitamarkka answered 18/12, 2019 at 7:1 Comment(1)
You might want to post an issue on the GitHub that you linked to so they can update the documentation.Fortuna
G
36

You can type which firebase on the command line and check the location. Then rm <location>

on mac the location is /usr/local/bin/firebase

Gavrielle answered 19/12, 2019 at 18:25 Comment(5)
Thanks. I can find it. It's 109.3 MB. Can this way remove firebase totally?Markitamarkka
To actually delete: sudo rm -rf /usr/local/bin/firebaseInglis
see below for a better method for those who installed with npm install -g firebase-tools. Short answer: npm uninstall -g firebase-toolsCogitable
npm uninstall -g firebase-tools does not work in all cases. Just do that then run firebase then you'll see it wasn't uninstalled. The @Gavrielle solution is the one which actually works.Guthrun
if you rm an executable, dont forget to run hash -r to rebuild the index of executables, otherwise you might get -bash: /usr/local/bin/firebase: No such file or directoryMutineer
U
30

If you install firebase like
curl -sL https://firebase.tools | bash

Just use this to uninstall.
curl -sL firebase.tools | uninstall=true bash

Unders answered 31/5, 2022 at 2:38 Comment(1)
I'm gonna vote for this because it's probably the most future proofCozza
S
25

Run:

npm uninstall -g firebase-tools
Selfwinding answered 15/5, 2020 at 17:48 Comment(2)
npm uninstall -g firebase-tools does not work in all cases. Just do that then run firebase then you'll see it wasn't uninstalled. The @Gavrielle solution is the one which actually works.Guthrun
This is not related to the method of installation that the original poster has specified.Lighthearted
G
12

Just for people who installed firebase via

npm install -g firebase-tools

typing which firebase and rm <location> as in the first answer will not uninstall all components.

You should uninstall via

npm uninstall -g firebase-tools

as recommended in the second answer.

Griffis answered 28/9, 2020 at 14:47 Comment(1)
npm uninstall -g firebase-tools does not work in all cases. Just do that then run firebase then you'll see it wasn't uninstalled. The @Gavrielle solution is the one which actually works.Guthrun

© 2022 - 2025 — McMap. All rights reserved.