user1012500
user1012500

Reputation: 1637

Why is my Firebase CLI version different than what I just installed with npm?

I'm updating firebase tools using

npm i -g firebase-tools 

and it outputs

However, when I run firebase --version or firebase tools --version I'm getting:

7.15.1

When I do 'which firebase' I'm only getting the following path:

/usr/local/bin/firebas

Why would there be a discrepancy with the versions ?

Upvotes: 1

Views: 761

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317467

Probably because npm in your path is updating a different firestore that you see in /usr/local/bin. Run which npm to see which one you're running. I would guess that it's not in /usr/local/bin. You should probably put that path to npm in your path before /usr/local/bin, and also remove the firebase in /usr/local/bin to use only the one that's updated by your npm. (And maybe also do some thinking about how you got a firebase in /usr/local/bin in the first place, in order to prevent that from happening again.)

Upvotes: 3

Related Questions