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

engine node version 18 not supported #8

Open
falopez10 opened this issue Aug 17, 2023 · 1 comment
Open

engine node version 18 not supported #8

falopez10 opened this issue Aug 17, 2023 · 1 comment

Comments

@falopez10
Copy link

When adding the engines.node value as 18, github actions throws the following error:

Error: package.json in functions directory has an engines field which is unsupported. Valid choices are: {"node": "10"}, {"node":"12"}, and {"node":"14"}.

Deploys to runtimes below Node.js 10 are now disabled in the Firebase CLI. Existing Node.js 8 functions will stop executing on 2021-03-15. Update existing functions to Node.js 10 or greater as soon as possible.

Notices that this doesn't happen when I deploy on my local machine.

@Zambonilli
Copy link

The dockerfile is globally installing firebase-tools@10.7.0. firebase cli is weird in that it uses the node package to manage node versions instead of the globally installed version. Unfortunately, firebase-tools does not support node18 yet for some architectures like arm because the node package does not. Is your github action running on arm?

Alternatively, you can add the --ignore-engines flag to your arguments and it might get firebase-tools to not care about the version of node you are using.

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