action-hosting-deploy icon indicating copy to clipboard operation
action-hosting-deploy copied to clipboard

[BUG] Firebase CLI v10.0.1 is incompatible with Node.js v10.24.1

Open christianloosli opened this issue 3 years ago • 2 comments

Action config

      - uses: FirebaseExtended/action-hosting-deploy@v0
        with:
          repoToken: '${{ secrets.GITHUB_TOKEN }}'
          firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEV }}'
          projectId: my-awesome-project
          channelID: live
          target: ${{ env.TARGET }}
        env:
          FIREBASE_CLI_PREVIEWS: hostingchannels

-->

Error message

Firebase CLI v10.0.1 is incompatible with Node.js v10.24.1 Please upgrade Node.js to version >= 12 The process '/opt/hostedtoolcache/node/10.24.1/x64/bin/npx' failed with exit code 1 Retrying deploy with the --debug flag for better error output

Expected behavior

Last deployment on December 15 still worked, no packages were updated.

Actual behavior

We are still using AngularJs and Angular as a hybrid app. We are currently working on the full migration but it will take a while. However, we urgently need to be able to deploy again.

christianloosli avatar Jan 06 '22 08:01 christianloosli

Have try using newer version of Node.js to deploy? Judging from the error message you have it seems to be that newer Firebase CLI only support version 12 and up. Node.js 10 had been EOL last year. Maybe try using Node.js v14 or v12?

DW225 avatar Jan 23 '22 15:01 DW225

Probably be a good idea to pass node version as a parameter

theonetheycallneo avatar May 23 '22 14:05 theonetheycallneo

If you're stuck needing an older version of firebase-tools because of a node version, you can specify firebaseToolsVersion now. That should get you unstuck!

bkendall avatar Oct 14 '22 20:10 bkendall