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

Can't update to firebase-tools v2.0.0 #129

Closed
chetstone opened this issue Apr 11, 2016 · 3 comments
Closed

Can't update to firebase-tools v2.0.0 #129

chetstone opened this issue Apr 11, 2016 · 3 comments

Comments

@chetstone
Copy link

When I run firebase deploy it tells me to upgrade to v2 by running: npm update -g firebase-tools. When I do that it doesn't really update:

$ firebase --version

Firebase Command Line Tools
Version 1.1.5
https://www.firebase.com

I've also tried npm uninstall -g firebase-tools; npm install -g [email protected]
and other combinations of invocations. No matter what I do I still end up with v 1.1.5

I'm using npm version 3.8.2. Any suggestions?

@mbleigh
Copy link
Contributor

mbleigh commented Apr 11, 2016

Can you try running:

which firebase
which npm
which node
npm install -g firebase-tools@^2.2.1
firebase --version

And paste the entire output of all of those commands? It seems likely that the firebase command is being picked up from a $PATH that isn't where your NPM is installing things.

@chetstone
Copy link
Author

Thanks. It seems the shell is not using the version it says it is.. After doing that sequence of commands which seem to be installing the new version (full report below) I get:

$ firebase --version

Firebase Command Line Tools
Version 1.1.5
https://www.firebase.com

$ which firebase
/Users/chet/.nvm/versions/node/v4.3.1/bin/firebase
$ /Users/chet/.nvm/versions/node/v4.3.1/bin/firebase --version
2.2.1

Really weird. When I invoke it with the full path it is the correct version. Never seen anything like that before.

It seems the shell is somehow "stuck" on the old version. Starting up a new shell fixes it.


(15:09:33)[kurukulle: firebase]$ which firebase
/Users/chet/.nvm/versions/node/v4.3.1/bin/firebase
(16:35:41)[kurukulle: firebase]$ which npm
/Users/chet/.nvm/versions/node/v4.3.1/bin/npm
(16:35:49)[kurukulle: firebase]$ which node
/Users/chet/.nvm/versions/node/v4.3.1/bin/node
(16:35:52)[kurukulle: firebase]$ npm install -g firebase-tools@^2.2.1
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
/Users/chet/.nvm/versions/node/v4.3.1/bin/firebase -> /Users/chet/.nvm/versions/node/v4.3.1/lib/node_modules/firebase-tools/bin/firebase

(16:36:49)[kurukulle: firebase]$ firebase --version

Firebase Command Line Tools
Version 1.1.5
https://www.firebase.com

$ which firebase
/Users/chet/.nvm/versions/node/v4.3.1/bin/firebase

@mbleigh
Copy link
Contributor

mbleigh commented Apr 11, 2016

👍 glad you got it sorted

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

No branches or pull requests

2 participants