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

Starting emulators with --inspect-functions flag does not product desired result #4885

Closed
brad426 opened this issue Aug 16, 2022 · 9 comments
Assignees

Comments

@brad426
Copy link

brad426 commented Aug 16, 2022

Environment info

firebase-tools: 11.4.0

node: v16.16.0

Platform: macOS 12.5 (Apple Silicon)

Test case

Create a fresh firebase project

firebase init
emulators:start --inspect-functions

Steps to reproduce

firebase init
emulators:start --inspect-functions

Shows warning:

To enable function inspection, please run "/usr/local/bin/firebase is:npm i node@/usr/local/bin/firebase --save-dev" in your functions directory

cd functions
/usr/local/bin/firebase is:npm i node@/usr/local/bin/firebase --save-dev

Output:

npm ERR! code ENOLOCAL
npm ERR! Could not install "../../../../../../usr/local/bin/firebase" as it is not a directory and is not a file with a name ending in .tgz, .tar.gz or .tar

firebase-debug.log

@brad426 brad426 added the bug label Aug 16, 2022
@google-oss-bot
Copy link
Contributor

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@colerogers colerogers self-assigned this Aug 22, 2022
@eldadj
Copy link

eldadj commented Aug 25, 2022

Run /usr/local/bin/firebase is:npm i node --save-dev

@colerogers
Copy link
Contributor

Hi @brad426 what version of node are you using?

@brad426
Copy link
Author

brad426 commented Aug 26, 2022

Hi @brad426 what version of node are you using?

16.6.0

@brad426
Copy link
Author

brad426 commented Aug 26, 2022

after upgrading to firebase cli version 11.7.0 I can now run firebase emulators:start --inspect-functions without seeing the warning:

To enable function inspection, please run "/usr/local/bin/firebase is:npm i node@/usr/local/bin/firebase --save-dev" in your functions directory

Everything seems to be working perfectly now

@brad426 brad426 closed this as completed Aug 26, 2022
@Tianle-Leviathan
Copy link

I am running into the same issue and the debug mode is not working properly. No process is listening on 9229 when running emulator.
I am running firebase emulator on ubuntu 20.04. Node version is v16.17.0

@YahavGB
Copy link

YahavGB commented Sep 26, 2022

Same here,

❯ firebase --version
11.9.0
❯ node -v
v18.9.0

@ReniDelonzek
Copy link

ReniDelonzek commented Nov 19, 2022

O mesmo aqui
firebase --version 11.16.0

Macos 12.6

@ReniDelonzek
Copy link

In my case running /usr/local/bin/firebase is:npm i node@16 --save-dev solved the problem

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

7 participants