Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

MMM-PIR doesn't work with NODE_MODULE_VERSION 73 #22

Open
ghost opened this issue Aug 22, 2020 · 3 comments
Open

MMM-PIR doesn't work with NODE_MODULE_VERSION 73 #22

ghost opened this issue Aug 22, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 22, 2020

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

@AndBuettner
Copy link

same here

1 similar comment
@majurgens
Copy link

same here

@davidoesch
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants