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

muhammara.node was compiled against a different Node.js version using #374

Open
izdaezt opened this issue Mar 20, 2024 · 8 comments
Open

Comments

@izdaezt
Copy link

izdaezt commented Mar 20, 2024

I am currently using Node.js version 20 and Electron version 29.
When I declare a Recipe using the command: const Recipe = require("muhammara").Recipe;
then I encounter the following error:
muhammara.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 121.

Please help me

@depperm
Copy link

depperm commented Mar 29, 2024

I also experienced this, with different NODE_MODULE_VERSION (57, 93). I'll have to check but I believe this only happened to docker build, I think this worked while running locally.

This happened to me when upgrading node 9(something) to 16.15.0. We initially had hummus and thought switching to muhammara would fix it.

Maybe relevant info:
node 16.15.0
npm 8.5.5
gcc 8.3.1

What I've tried to fix:

rm -rf node_modules
rm package-lock.json
npm cache clean -force
npm i
npm rebuild muhammara --update-binary

Nothing I've tried has worked

@nitzan-blink
Copy link

this has worked for me:

npm remove muhammara
npm install muhammara

@julianhille
Copy link
Owner

Make sure you install for your electron version and not for the node version or vice versa

@julianhille
Copy link
Owner

julianhille commented Apr 1, 2024

@depperm and for you, you need to make sure that you install "inside" of your docker container.
You can not install on the host and then move the node_modules into the container which may has a different node version.

Or a different os/arch Default libc etc

@julianhille
Copy link
Owner

I am currently using Node.js version 20 and Electron version 29. When I declare a Recipe using the command: const Recipe = require("muhammara").Recipe; then I encounter the following error: muhammara.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 93. This version of Node.js requires NODE_MODULE_VERSION 121.

Please help me

have a read: https://www.electronjs.org/docs/latest/tutorial/using-native-node-modules

@gilliamwells
Copy link

I too am experiencing issues with my local build on MacOS:
The module '/node_modules/muhammara/binding/muhammara.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 115. This version of Node.js requires NODE_MODULE_VERSION 93.

I tried everything mentioned above with no success.

Running Node 20.15.1
NPM 10.7.0

@julianhille
Copy link
Owner

I too am experiencing issues with my local build on MacOS: The module '/node_modules/muhammara/binding/muhammara.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 115. This version of Node.js requires NODE_MODULE_VERSION 93.

I tried everything mentioned above with no success.

Running Node 20.15.1 NPM 10.7.0

please mind opening a new ticket. As the result and debugging is very very tightly coupled to your circumstances.

@julianhille
Copy link
Owner

is this still an issue?

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

5 participants