question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

functions: Cannot start emulator

See original GitHub issue

Hi 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:closed
  • Created 6 years ago
  • Reactions:19
  • Comments:35 (9 by maintainers)

github_iconTop GitHub Comments

10reactions
vguhesancommented, Nov 24, 2017

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:

gyp WARN EACCES user “root” does not have permission to access the dev dir “/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/.node-gyp/8.9.1” gyp WARN EACCES attempting to reinstall using temporary dev dir “/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/.node-gyp”

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

5reactions
ioemcmmprojectcommented, Nov 2, 2017

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found