sebhildebrandt / osx-temperature-sensor

OSX temperature sensor
MIT License
19 stars 7 forks source link

need update node module version #14

Open heyadeivan opened 6 days ago

heyadeivan commented 6 days ago

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 commented 5 days ago

@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 commented 5 days ago

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.