functions: Cannot start emulator
See original GitHub issueHi there, Refer to issue #200 I try reinstall grpc but still getting same error
After install grpc it show success but grpc_node.node is installed via remote, like this
[grpc] Success: "/usr/local/lib/node_modules/grpc/src/node/extension_binary/node-v48-darwin-x64/grpc_node.node" is installed via remote
When run firebase deploy --only functions
it it showing
functions: Cannot start emulator. Error: Cannot find module '/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary/grpc_node.node'
I checked in directory was nothing inside
/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary
Please give some advice, thank you in advance.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:19
- Comments:35 (9 by maintainers)
Top Results From Across the Web
google cloud functions - Firebase: Cannot start emulator
Uninstall any previously attempted installed of the functions emulator. · Delete all files in ~/. · Use nvm to install a specific version...
Read more >Cannot start emulator · Issue #552 · firebase/firebase-tools
when i try to run firebase serve --only functions it gives following error and runs only hosting functions: Cannot start emulator.
Read more >Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >Port 8080 is not open on localhost, could not start Firestore ...
This error is because of the failed quitting from firebase emulator. You already have the process of previous firebase emulator.
Read more >Run functions locally | Cloud Functions for Firebase - Google
The Firebase CLI includes a Cloud Functions emulator which can emulate the ... To run the Cloud Functions emulator, use the emulators:start command:....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the same issue when I ran on my Mac OS X High Sierra (not clear if this happens on Windows or Linux platforms)
sudo npm install -g firebase-tools
Error/Warning:
Here is what I did to avoid this:
sudo mkdir -p /usr/local/lib/node_modules/firebase-tools/node_modules/grpc/.node-gyp/8.9.1/
This creates an empty directory with the path specified then rerun the following:
sudo npm install -g firebase-tools
I hope this helps.
MyThinkPond | vguhesan
Similar issue - I’ve found various other threads on here related to this, but none of them seem to work. For me, somehow not only am I getting the above error: Cannot start emulator. Error: Cannot find module ‘/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary/grpc_node.node’
But for me when I use “sudo npm install -g grpc” I get the following error:
node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.7.0/node-v57-darwin-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for grpc@1.7.0 and node@8.9.0 (node-v57 ABI) (falling back to source compile with node-gyp) gyp WARN EACCES user “root” does not have permission to access the dev dir “/Users/michaelrhanscom/.node-gyp/8.9.0” gyp WARN EACCES attempting to reinstall using temporary dev dir “/usr/local/lib/node_modules/grpc/.node-gyp”
Where the last 2 gyp warnings continue to populate on the screen over and over until I terminate the process. I tried to use “sudo npm install -g grpc --allow-root --unsafe” which seemed to work, but when I go back through the various folders, I still get down to '/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node" and then beyond that the folder for “extension_binary” doesn’t even exist. Additionally, for the path within the above error, within the node_modules/grpc, the folder .node_gyp also doesn’t exist. Help?