I have some firebase apps using SDK v3 and some still on SDK v2. I have to keep switching between the two versions of firebase-tools in order to deploy the apps to firebase hosting. Is there a way to run both versions of the CLI at the same time?
I've switched to using the 3.x version of Firebase tools as my global version: npm install firebase-tools -g
.
Then for my legacy projects, I now keep the firebase-tools version in the local directory, so npm install [email protected]
. You might have to run it with node_modules/firebase-tools/bin/firebase
in that case, since the global version takes precedence.