Open ghost opened 4 years ago
same here
same here
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.
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, using
npm rebuildor
npm install).
Thanks you