-
Notifications
You must be signed in to change notification settings - Fork 928
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
Cannot start emulator #552
Comments
Sounds like the emulator may have failed to install when you installed |
Ping? Would love to hear back from you or we'll close for inactivity |
I did the same thing, I installed and reinstalled the modules to no avail. ➜ firebase serve --only functions === Serving from ''... ⚠ functions: Cannot start emulator. Error: Cannot find module '@google-cloud/functions-emulator/src/config'
=== Serving from ''... ⚠ functions: Cannot start emulator. Error: Cannot find module '@google-cloud/functions-emulator/src/config' |
Same here. Been this way for a few days. Even after the update today. |
@danielsada and @raelmiu Can you try: npm uninstall -g firebase-tools && npm i -g firebase-tools |
Did it, some of the notable warnings: `> @google-cloud/[email protected] postinstall /home//.npm-global/lib/node_modules/firebase-tools/node_modules/@google-cloud/functions-emulator
Then finally, the same error |
I'm getting the same error. Have tried uninstalling and reinstalling. |
Same here. Installed node 6.11, reinstalled tools, still doesn't work. |
Can replicate in v3.17.2 |
Hi everyone, can you try v3.17.3? @Mir-Ansar yours looks to be a permission error, here's info on how to fix: https://docs.npmjs.com/getting-started/fixing-npm-permissions |
I tried .3 and .2 and I get the same error :(
|
Is there any solution for this? |
Sorry I can't reproduce the issue, it sounds like it is similar to googlearchive/cloud-functions-emulator#170 (comment). So you may want to +1 that issue. Other things you can try are:
|
I have the same exact issue, tried most given solutions, nothing worked. Anyone got a solution in the meantime? |
I'm getting the same error |
I am not sure what exactly is causing this problem. But here is the working solution for this problem. StackOverflow - Firebase: Cannot start emulator |
|
@RyanNewsom didn't solve it for me. Still broken. |
Any working solution? My emulator was working but now it isn't |
I have a couple similar projects, one working, one not working per above comments, as well as a firebase deployment that was working - now inexplicably not working. With the number of people suffering from this same fate both here and on stackOverflow over a period of many months, it would seem that a less brittle system might be in order. |
reason for this problem is in most cases a wrong python version when installing firebase. make sure you are using a shell with python 2 and then re-run: |
The latest firebase-tools (v3.17.5) removes grpc as a dependency, which should resolve these issues. Please upgrade by running |
Fixed it for me. |
got the same issue when you have different node version than the node engine in below is yarn, feel free to use npm # install current working directory dependencies
yarn --ignore-engines
# install firebase-tools if u didn't
yarn global add firebase-tools
# install functions-emulator
yarn global add @google-cloud/functions-emulator --ignore-engines |
Tried @ddo methods but didn't work. |
Worked, after I:
|
sdfsdfadf |
i also had recently upgraded to using node 8 and had issues with
|
problem resolved, I just simply stop using firebase. That's it.
…On Wed, Nov 14, 2018 at 1:03 AM rilian ***@***.***> wrote:
i also had recently upgraded to using node 8 and had issues with firebase
serve --only functions and firebase-tools not willing to fully install
@***@***.***: The engine "node" is
incompatible with this module. Expected version "~6". Got "8.1.0", but
--ignore-engines is really helpful - now it runs fine, though gives a
warning
[Jest Dev server] $ firebase serve --only functions -p 5000 -o 0.0.0.0
[Jest Dev server]
[Jest Dev server] === Serving from '/Users/xxx/project-name'...
[Jest Dev server]
[Jest Dev server] i functions: Preparing to emulate functions.
[Jest Dev server] Warning: You're using Node.js v8.1.0 but Google Cloud Functions only supports v6.11.5.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#552 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Acq9nGZycDnglAuFYQiMNNVaQX9XEyTRks5uuwl-gaJpZM4Qx6cx>
.
|
save me: |
I just had this issue after upgrading firebase-admin and some other firebase packages, too. I am running functions on node 8. I was able to fix the issue by ensuring that I installed firebase with |
If you are primarily using yarn in your project, use npm instead of yarn when installing firebase-tools.
|
Worked for me: I was running into this problem inside docker on mac. Nothing fixed it. Ended up installing it on mac, then copying it in docker's |
Also having the above issue after migration to node 8 functions. Using,
|
@Dygerati same for me. |
This is what I get, anyone solved this issue?
|
|
Okay so the the google cloud-functions-emulator "only supports Node v6.x.x. It does not support Node v8.x.x" The firebase docs on choosing node versions says you can use node 8 hmmm... so i can use node8, but i cannot test it locally using cloud functions shell (if i use node8 specific syntax)? Firebase Team/Google Team, it would be helpful if you would put in the docs that the cloud functions emulator will not work with node 8 "you can set your runtime to node 8, but if you test with google cloud-functions-emulator it will be using node6.x.x and any node8 specific syntax will not work " a similar warning here would help also in the email you sent out (25 Feb 2019) |
I got here with the exact same question as @julianorinyol - is there a plan for getting the emulator to the point where it is compatible with Node 8 syntax? |
using on node 8 (with yarn) this is what worked for me: |
* hosting channel open command * period. * Update hosting-channel-open.ts * Update hosting-channel-open.ts * Update hosting-channel-open.ts * Update hosting-channel-open.ts
when i try to run firebase serve --only functions
it gives following error and runs only hosting
functions: Cannot start emulator. Error: Cannot find module '@google-cloud/functions-emulator/src/config'
The text was updated successfully, but these errors were encountered: