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

Firebase deploy error #390

Closed
itsTeknas opened this issue Jul 8, 2017 · 5 comments
Closed

Firebase deploy error #390

itsTeknas opened this issue Jul 8, 2017 · 5 comments

Comments

@itsTeknas
Copy link

itsTeknas commented Jul 8, 2017

I'm getting the following error after hitting firebase deploy --only functions

i  deploying functions
i  functions: ensuring necessary APIs are enabled...
i  runtimeconfig: ensuring necessary APIs are enabled...
✔  runtimeconfig: all necessary APIs are enabled
✔  functions: all necessary APIs are enabled
i  functions: preparing functions directory for uploading...

Error: Error occurred while parsing your function triggers.

Error: The module '/private/var/folders/n3/h9nbc_ys2732s35_9jlgh98c0000gn/T/fbfn_6601274o3l5DKN66/node_modules/grpc/src/node/extension_binary/grpc_node.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 51. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (module.js:598:18)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/private/var/folders/n3/h9nbc_ys2732s35_9jlgh98c0000gn/T/fbfn_6601274o3l5DKN66/node_modules/grpc/src/node/src/grpc_extension.js:38:15)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
@itsTeknas
Copy link
Author

npm -v
5.1.0
node -v
v8.1.3

@itsTeknas
Copy link
Author

itsTeknas commented Jul 8, 2017

Tried to cd into /private/var/folders/n3/h9nbc_ys2732s35_9jlgh98c0000gn/T/fbfn_6601274o3l5DKN66/node_modules/grpc/

and run npm install --build-from-source

Still nothing

@itsTeknas
Copy link
Author

I tried it with stable release also, but still the same issue.
I think something might be off with the grpc module's release which firebase-tools uses as a dependency.

@itsTeknas
Copy link
Author

Solved it. The firebase-tools seem to need node V 7.10.0 as of now.
Installed it via nvm.

@dreadjr
Copy link

dreadjr commented Feb 13, 2020

For reference, I received a similar error for a native module.

The module ''
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).

The reason was due to my installation method of firebase-tools
I used curl -sL firebase.tools | bash.
This was built with a different node version than my current.
Once I removed the firebase-tools and did npm install -g firebase-tools, the issue was resolved.

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

3 participants