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

Unexpected Node.js v6.11.5 warning after functions update #292

Closed
shrestaz opened this issue Jul 27, 2018 · 12 comments · Fixed by googlearchive/cloud-functions-emulator#261

Comments

@shrestaz
Copy link

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.

@laurenzlong
Copy link
Contributor

Closing because the message has been fixed.

@bnfrnz
Copy link

bnfrnz commented Sep 26, 2018

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",

@aminelaadhari
Copy link

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

@kevinajian
Copy link
Contributor

Hi @bnfrnz and @aminelaadhari ,

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

@bnfrnz
Copy link

bnfrnz commented Nov 8, 2018

I'm on firebase-tools@6.0.1 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.

@aminelaadhari
Copy link

@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:

├─┬ firebase-tools@6.0.1
│ ├─┬ @google-cloud/functions-emulator@1.0.0-beta.5
│ │ ├─┬ @google-cloud/storage@1.7.0
➜ node --version
v8.11.3

@aminelaadhari
Copy link

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

@kevinajian
Copy link
Contributor

@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.

@aminelaadhari
Copy link

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

@bnfrnz
Copy link

bnfrnz commented Nov 20, 2018

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.

@laurentpayot
Copy link

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 node@8.11.1 -- firebase serve

@aminelaadhari
Copy link

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

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

Successfully merging a pull request may close this issue.

6 participants