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

Conflicting NODE_MODULE_VERSION's #70

Closed
YotaHub opened this issue Jan 1, 2019 · 2 comments
Closed

Conflicting NODE_MODULE_VERSION's #70

YotaHub opened this issue Jan 1, 2019 · 2 comments

Comments

@YotaHub
Copy link

YotaHub commented Jan 1, 2019

So I'm currently working on a project using Electron and Hummus-Recipe to edit existing pdf's.
As soon as I run the Electron-App with hummus-recipe the developer console shows me the following:

Uncaught Error: The module '\\?\D:\WebDev\Electron\electron_pdf-generator\node_modules\hummus\binding\hummus.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:722)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31)
    at Module.load (internal/modules/cjs/loader.js:602)
    at tryModuleLoad (internal/modules/cjs/loader.js:541)
    at Function.Module._load (internal/modules/cjs/loader.js:533)
    at Module.require (internal/modules/cjs/loader.js:640)
    at require (internal/modules/cjs/helpers.js:20)
    at Object.<anonymous> (D:\WebDev\Electron\electron_pdf-generator\node_modules\hummus\hummus.js:5)
    at Object.<anonymous> (D:\WebDev\Electron\electron_pdf-generator\node_modules\hummus\hummus.js:31)

I searched to try and find cases with similar problems and it was either to rebuild the module with

npm rebuild

or reinstalling the whole module (as already mentioned in the console log above).

Nothing seems to work for me here.
Maybe someone here can help me fix this problem.

@YotaHub YotaHub changed the title Electron 4.0 and Hummus-Recipe Conflicting NODE_MODULE_VERSION's Jan 1, 2019
@dfilkovi
Copy link

dfilkovi commented Feb 13, 2019

This is because you are rebuilding using your node version and not the electron version.
To solve this install electron rebuilder:
npm install --save-dev electron-rebuild
and then run:
./node_modules/.bin/electron-rebuild

@YotaHub
Copy link
Author

YotaHub commented Apr 27, 2019

This is because you are rebuilding using your node version and not the electron version.
To solve this install electron rebuilder:
npm install --save-dev electron-rebuild
and then run:
./node_modules/.bin/electron-rebuild

Yep. This seemed to solve it for me.
Thank you!

@YotaHub YotaHub closed this as completed Apr 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants