Firebase-functions: Unexpected Node.js v6.11.5 warning after functions update

Created on 27 Jul 2018  Â·  12Comments  Â·  Source: firebase/firebase-functions

Version info

firebase-functions:
2.0.2

firebase-tools:
4.0.0

firebase-admin:
5.12.1

Test case

Steps to reproduce

Upgrade firebase functions to version 2.0.2 to use the Node.js 8 runtime

Were you able to successfully deploy your functions?

Yes

Expected behavior

Work with no warnings.

Actual behavior

Warning: You're using Node.js v8.11.3 but Google Cloud Functions only supports v6.11.5.

Most helpful comment

As far as I'm concerned, this is just a leftover warning log that should be removed. Everything works perfectly fine, including async/await code.

All 12 comments

Closing because the message has been fixed.

Hi @laurenzlong,
This is not fixed. Or maybe it was fixed for deployment but I am still getting the warning every time I use the firebase serve command.

"firebase-functions": "^2.0.5",
"firebase-tools": "^4.2.1"
"node": "8.11.3",
"npm": "5.10.0",

@laurenzlong the firebase serve command still have the issue. Any idea how to solve it?

Hi @bnfrnz and @aminelaadhari ,

Can you make sure the firebase-tools version is up to date and try again?

I'm on [email protected] and, in case it matters at all, on Cloud SDK version 224.0.0.

firebase serve still throws the same warning:

i  functions: Preparing to emulate functions.
Warning: You're using Node.js v8.12.0 but Google Cloud Functions only supports v6.11.5.

@kevinajian I am using the last version. I did uninstall firebase-tools and reinstall it multiple times to be sure that I am using the correct version:

├─┬ [email protected]
│ ├─┬ @google-cloud/[email protected]
│ │ ├─┬ @google-cloud/[email protected]
➜ node --version
v8.11.3

@kevinajian @laurenzlong Hi Folks, any update on this?
It's annoying that we can't use the emulator for local debugging.
Thanks

@aminelaadhari Looking into it, it seems like it's only a log message. Does it break the emulator in some way?

I'll work on updating the warning separately, just want to make sure I'm addressing the right issue.

@kevinajian thanks. I think it's not just a log message because it crashes when I use async/await

As far as I'm concerned, this is just a leftover warning log that should be removed. Everything works perfectly fine, including async/await code.

Just like @bnfrnz everything works fine for me even with this legacy warning.

PS: you can run the server with whatever version of node, indenpendently of the one installed on your system, with this npm/npx trick:

npx -p [email protected] -- firebase serve

@laurentpayot thanks for the tip. thas solved the issue for me.
@kevinajian you can discard my message, thanks!

Was this page helpful?
0 / 5 - 0 ratings