MMM-PIR icon indicating copy to clipboard operation
MMM-PIR copied to clipboard

MMM-PIR doesn't work with NODE_MODULE_VERSION 73

Open ghost opened this issue 4 years ago • 3 comments

Hello, Can you updated this module because I imposible to install it because the Node.js version is not up to date. I have NODE_MODULE_VERSION 73. and NODE_MODULE_VERSION 64. This version of Node.js requires. this my pm2 logs after [Electron] displayed on my screen : 0|mm | [2020-08-22 09:47:51.986] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR/node_modules/epoll/build/Release/epoll.node' 0|mm | was compiled against a different Node.js version using 0|mm | NODE_MODULE_VERSION 64. This version of Node.js requires 0|mm | NODE_MODULE_VERSION 73. Please try re-compiling or re-installing 0|mm | the module (for instance, usingnpm rebuildornpm install).

Thanks you

ghost avatar Aug 22 '20 08:08 ghost

same here

AndBuettner avatar Sep 07 '20 21:09 AndBuettner

same here

majurgens avatar Sep 26 '20 01:09 majurgens

I solved this problem using the command below:

./node_modules/.bin/electron-rebuild Steps:

If you have not installed electron-rebuild just install it with the command: npm i -D electron-rebuild Remove from the node-modules folder the serialport and @serialport folders. Remove the file packages-lock.json Run npm i to install non-installed modules And finally run ./node_modules/.bin/electron-rebuild It is very important to run ./node_modules/.bin/electron-rebuild directly after npm i.

Source: https://stackoverflow.com/a/52796884

davidoesch avatar Oct 09 '20 19:10 davidoesch