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

NODE_MODULE_VERSION mismatches #243

Closed
maxwondercorn opened this issue Apr 26, 2017 · 1 comment
Closed

NODE_MODULE_VERSION mismatches #243

maxwondercorn opened this issue Apr 26, 2017 · 1 comment

Comments

@maxwondercorn
Copy link

I missing something basic. I'm trying to use leveldown as part of the linvodb3 databae and I am getting a compiled against a different node.js version error. Leveldown was built against NODE_MODULE_VERSION 48, while I'm on version 53.

This Linvodb3/leveldown works on an Electron only app as installed without issues (i.e. no recompiling) so it doesn't seem to an issue with node (v6.94). I've tried npm rebuild, node-gyp, etc but none seem to fix the issue.

@maxwondercorn
Copy link
Author

maxwondercorn commented Apr 27, 2017

I figured it out and had to rebuild electron to make leveldown work with the current electron version. Found this info about what the problem was searching with different keywords.

A better solution for rebuilding electron is using electron-rebuild as documented here. Running

./node_modules/.bin/electron-rebuild

rebuilds any native modules you have installed. I consider this issue closed

@pichfl pichfl closed this as completed May 23, 2017
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

2 participants