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

need update node module version #14

Open
heyadeivan opened this issue Nov 12, 2024 · 2 comments
Open

need update node module version #14

heyadeivan opened this issue Nov 12, 2024 · 2 comments

Comments

@heyadeivan
Copy link

I am using electronjs and getting an error message like this

was compiled against a different Node.js version using
NODE_MODULE_VERSION 131. This version of Node.js requires
NODE_MODULE_VERSION 130. Please try re-compiling or re-installing

@pcafstockf
Copy link
Contributor

@heyadeivan This project only contains source code.
It is compiled locally ( using node-gyp ) on your machine at the time you install this package.

My guess would be you performed an npm install with a version of Node.js that is different from the version of node embedded in your Electron executable.
You will need to either upgrade your version of Electron, or install this extension using a version of Node.js that matches your Electron.

This link which lists Electron versions with their corresponding Node.js version may be helpful.
https://www.electronjs.org/docs/latest/tutorial/electron-timelines

@heyadeivan
Copy link
Author

Thank you @pcafstockf , I matched the Electron and Node.js versions, but when I tried to rebuild, I got a C++20 error. It might be a gyp bug in version 32. I downgraded Electron to version 31, rebuild it again, and it was successful.

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