I am running the command firebase deploy and I see the following error:
Invalid CLI version provided. - Please update to at least v2.0.0 by running npm update -g firebase-tools
Running the command firebase -v I see I have the following version info:
Firebase Command Line Tools
Version 1.2.0
https://www.firebase.com
Now, running the command npm update -g firebase-tools does nada from what I can tell.
I have tried to remove and reinstall firebase-tools via the following commands:
npm remove -g firebase-tools
npm install -g firebase-tools
When I run firebase -v I continue to see version 1.2.0 and my firebase deploy continues to not work. How do I upgrade firebase-tools to version 2?
For background info the Node version on the server is v4.3.1 and the OS is Ubuntu 14.04.4 LTS.
Thanks in advance for any assistance.
npm update -g firebase-tools? See firebase.com/docs/hosting/command-line-tool.html. If that doesn't work, it seems like you may have installed node/npm as root. In that case, trysudo npm update -g firebase-tools. - Frank van Puffelenwhich firebaseto see where the firebase tool is installed and that might help you track down where the problem updating lies. - jonnydeefirebase-cliremoving it seems to fix it - Hugo Gresse