Code Monkey home page Code Monkey logo

Comments (5)

amfc avatar amfc commented on August 16, 2024 2

I think this also applies to nodejs:

I just just upgraded (npm i -g firebase-tools) and started receiving:

functions: Your requested "node" version "20" doesn't match your global version "18". Using node@18 from host.

even though I have node version 18 in package.json

by setting functions: { runtime: "nodejs18" } in firebase.json it stopped giving the warning.

from firebase-tools.

aalej avatar aalej commented on August 16, 2024 2

Hey @vitoras, thanks for the thorough report as well as for sharing your observations, and thanks @amfc for the additional information. I was able to reproduce the issue. It looks like both Node.js and Python runtimes are affected here.

As a workaround for those who also encounter this issue, please specify the runtime in your firebase.json file. Here's references for setting the Node.js version and Python version. I’ll raise this to our engineering team so that we can determine what the appropriate action here would be. I’ll also mark this as reproducible.

from firebase-tools.

inlined avatar inlined commented on August 16, 2024 1

Today's release of the CLI fixes the issue.

from firebase-tools.

vitoras avatar vitoras commented on August 16, 2024

I think this also applies to nodejs:

I just just upgraded (npm i -g firebase-tools) and started receiving:

functions: Your requested "node" version "20" doesn't match your global version "18". Using node@18 from host.

even though I have node version 18 in package.json

by setting functions: { runtime: "nodejs18" } in firebase.json it stopped giving the warning.

Yeah, this idea was raised in this issue, but maybe they overlooked that impact.

from firebase-tools.

vitoras avatar vitoras commented on August 16, 2024

Today's release of the CLI fixes the issue.

Thanks a lot, now the emulators are working as before!

from firebase-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.