Comments (13)
I tried both suggestions from PtrBld and semox twice to see if it would fix it and unfortunately It didn't, is there anything else to try? running latest version of magic mirror
from mmm-pir-sensor.
Hi try this like stated in #9
Execute the following commands in /pi/magicmirror/ (your magicmirror installation folder):
npm uninstall electron
npm rebuild
npm install electron
from mmm-pir-sensor.
This does not work on my side. Is there any workaround?
from mmm-pir-sensor.
This did the trick for me:
cd ~/MagicMirror
git pull
rm -rf node_modules/
npm cache clean
npm install
for f in $(find /home/pi/MagicMirror/modules -maxdepth 1 -name "MMM-*" -type d); do cd $f; git pull && npm install; done
from mmm-pir-sensor.
Also having the same problem.
I also tried
npm rebuild --runtime=electron --target=1.7.6 --disturl=https://atom.io/download/atom-shell --abi=54
which didn't work either. Why does the module rebuild electron on post-install?
from mmm-pir-sensor.
Hi everybody !
Also having the same problem. I'm a newbie regarding rasperry pi & magic mirror modules. I did the magic mirror setup some time ago and everything worked well. I let it aside for some time and reopened it only this week-end. I did the update as suggested by the notification on the mirror and now got this error when launching :
App threw an error during load
Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/e poll/build/Release/epoll.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 53. This version of Node.js requires
NODE_MODULE_VERSION 54. Please try re-compiling or re-installing
the module (for instance, using npm rebuild
ornpm install
).
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173: 20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20 )
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bin dings/bindings.js:76:44)
at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_m odules/epoll/epoll.js:1:192)
Whoops! There was an uncaught exception...
Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/e poll/build/Release/epoll.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 53. This version of Node.js requires
NODE_MODULE_VERSION 54. Please try re-compiling or re-installing
the module (for instance, using npm rebuild
ornpm install
).
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173: 20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20 )
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bin dings/bindings.js:76:44)
at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_m odules/epoll/epoll.js:1:192)
I tried the PtrBld fix but with no effects, I haven't tried semox fix yet
from mmm-pir-sensor.
Same here.
Tried any proposed solution here with no effects.
I think this module is broken for current version of MM.
from mmm-pir-sensor.
Hi,
could someone try:
'cd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules
npm rebuild'
from mmm-pir-sensor.
@semox that worked, I tried that and get no errors when running magic mirror. My problem now is that my sensor doesn't appear to be working. Thanks!
from mmm-pir-sensor.
I was able to get my sensor working, but when the screen wakes up for the first time all I see is a blinking cursor on the top left of the screen. I don't get any errors on the terminal, and if I unplug the PIR sensor magic mirror works as expected, I am using pin 4 BCM. Maybe somebody else can see if this is happening to them as well.
from mmm-pir-sensor.
Hi everybody,
I tried @semox new solution :
'cd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules
npm rebuild'
but unfortunately I still got the same problem :
WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 54. Please try re-compiling or re-installing
the module (for instance, usingnpm rebuild
ornpm install
).
from mmm-pir-sensor.
Same problem here (I tried all the fixes above) !
WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 54. Please try re-compiling or re-installing
the module (for instance, using npm rebuild ornpm install).
from mmm-pir-sensor.
seems like it was a temporary fix, and never got the PIR sensor to work, I booted my magic mirror today and got the same error. commented out the section in the config file and the magic mirror booted fine.
WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 54. This version of Node.js requires NODE_MODULE_VERSION 57. Please try re-compiling or re-installing the module (for instance, using
npm rebuildor
npm install).
from mmm-pir-sensor.
Related Issues (20)
- MM will not start after update 11/08/20 HOT 4
- MM locked after turn On HOT 6
- PIR not working on Magic Mirror HOT 5
- The detecting movement
- Can this module deactivate other running modules ?
- blue screen once a while HOT 1
- Request - Start skript by
- sensorPIN: 17 does not work HOT 1
- MagicMirror v2.15.0 breaks this module HOT 3
- MMM-PIR-Sensor activates automatically without inputs after 60 seconds
- bug in clearing timeout
- Works fine after 5-15 minuts
- Is there a way to avoid Dell monitor continue to display Power Saving message when PIR sensor turns off screen
- Execute 'sudo chmod u+s /opt/vc/bin/tvservice' does not work in Bullseye HOT 6
- Updating PIR for 2.17 error HOT 1
- Module only works once - doesn't go back to power saving HOT 2
- Works with 7" Raspberry Pi branded touch display
- Error: Could not detect abi for version 16.0.6 HOT 2
- postinstall issue [LIBERTY LIBERY LIBERTY] HOT 2
- install problems HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmm-pir-sensor.