Comments (7)
I may have found a solution. Looked up options to try and use an older version of node and came across instructions to run
sudo npm install --save-dev electron-rebuild
./node_modules/.bin/electron-rebuild
This got rid of the error message and now I'm working through getting this up.
Edit: This got the module working. The mirror is up and running and the display shuts off after my delay timer now! This issue can be closed.
from mmm-pir-sensor.
Same issue, but didn't get rid of the error by the description above
from mmm-pir-sensor.
same issue for me. @jwu910 solution didn't work for me either.
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 51. This version of Node.js requires
NODE_MODULE_VERSION 53. Please try re-compiling or re-installing
from mmm-pir-sensor.
@haelbichalex @Wippo0 I looked a lot in to epoll and tried uninstalling and reinstalling it.
I think i tired npm uninstall epoll, as well as npm uninstall electron and went forward again with the rebuild with the --save tag
from mmm-pir-sensor.
Any additional hints? Have re-installed my RPi2B from scratch and followed the most basic instructions for getting MM with MMM-Button working - and still ran into the issue described here again.
Edit - adding some version info
OS: Raspian Jessie 2017-04-10 (+apt-get upgrade
)
node: version 6.11.0
npm: 3.10.10
epoll (installed by MMM-Button npm install
): appears to be 0.1.21
Edit 2: apologies. Linked over from MMM-Button and didn't realize I was on a separate project when commenting. The underlying issue seems to be the same though.
The only way I found to get around it is to recompile(?) electron, and use a newer version?
In ~/MagicMirror:
$ npm install --save-dev electron-rebuild
$ npm rebuild --runtime=electron --target=1.6.11 --disturl=https://atom.io/download/atom-shell --build-from-source
Oddly, I also had to remove epoll from the MMM-Button directory and make sure (I think?) I installed it (npm install epoll
) while in ~/MagicMirror. I think maybe the electron upgrade has caused other issues, but it seems to get past this NODE_MODULE_VERSION
problem?
from mmm-pir-sensor.
I've run into the same issue today with MagicMirror 2.7.0-develop
, and I could successfully resolve it with these steps:
cd modules/MMM-PIR-Sensor
rm package-lock.json
rm -r ./node_modules
npm i
Hope this helps!
from mmm-pir-sensor.
For me none of the solutions worked. However I solved it now
- Navigate to the MMM-PIR-Sensor folder
- Run
npm install --save-dev electron-rebuild
- Remove the node-modules folder, as well as the packages-lock.json file.
- Run npm install
- Run ./node_modules/.bin/electron-rebuild to rebuild everything
Now it is working. Hope this helps ;)
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.