Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Firebase CLI tool download fails

I am experiencing issues with downloading the Firebase CLI tool. The download process is failing, preventing me from using the Firebase CLI.

Details:

  • When attempting to download the Firebase CLI tool, the process fails.
  • I'm using the following command to download: curl -sL firebase.tools | bash
  • This command results in an error.

This is occurring both locally and in the Azure pipeline

locally curl -sL firebase.tools | upgrade=true bash

 

-- Checking for existing firebase-tools on PATH...
-- Your machine has firebase-tools@13.8.2, attempting upgrade...
-- Checking your machine type...
-- Downloading binary from https://firebase.tools/bin/macos/latest
######################################################################## 100.0%#=#=#
-- Setting permissions on binary...
/usr/local/bin/firebase: line 1: Not: command not found
Something went wrong, firebase has not been installed.
Please file a bug with your system information on Github.
https://github.com/firebase/firebase-tools/
-- All done!

 

from azure pipeline curl -sL firebase.tools | bash

 

Downloading Firebase Tools ...
-- Checking for existing firebase-tools on PATH...
-- Checking your machine type...
-- Downloading binary from https://firebase.tools/bin/macos/latest

######################################################################## 100.0%
#=#=#                                                                          
######################################################################## 100.0%
-- Setting permissions on binary...
/usr/local/bin/firebase: line 1: Not: command not found
Something went wrong, firebase has not been installed.
Please file a bug with your system information on Github.
https://github.com/firebase/firebase-tools/
-- All done!

 

Additional Information:

  • Local Operating System(s): Mac Os 14.6.1
  • Azure Pipeline Agent OS: macos-14

Expected Behavior: The Firebase CLI tool should download and install successfully, allowing us to use Firebase commands both locally and in our CI/CD pipeline.

Actual Behavior: The download fails consistently, both on local machines and in the Azure pipeline. We're unable to install or use the Firebase CLI tool in either environment.

0 1 866
1 REPLY 1

Hi @francescosaf,

Welcome to Google Cloud Community!

The error you encountered may indicate that the downloaded binary was corrupted or not installed correctly. There's a GitHub issue filed around September 12th, 2024, which led to the confirmation that there was a bug. This was resolved just a few days ago. Please try the installation again to see if the issue has been resolved.

If you continue to experience problems, consider the following alternatives:

  • Run this command as suggested by @altmas5 in the GitHub issue:
curl -sL https://firebase.tools | sed s/latest/v13.16.0/ | bash

I hope the above information is helpful.