Comments (3)
I believe this could be solved by adding a post-install script to rebuild electron, as described in this thread
So to sum up: go to the modules/MMM-PIR-Sensor, then npm install electron-rebuild
then npm install
from mmm-pir-sensor.
Hi,
Same issue here. I did a reinstall of the module and the instructions above
output of npm install electron-rebuild:
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm notice created a lockfile as package-lock.json. You should commit this file.
+ [email protected]
removed 1 package, updated 1 package and audited 164 packages in 19.9s
found 0 vulnerabilities
output of npm install:
> [email protected] install /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll
> node-gyp rebuild
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: Cannot find module '../dotjs/validate'
gyp ERR! stack at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
gyp ERR! stack at Function.Module._load (internal/modules/cjs/loader.js:562:25)
gyp ERR! stack at Module.require (internal/modules/cjs/loader.js:692:17)
gyp ERR! stack at require (internal/modules/cjs/helpers.js:25:18)
gyp ERR! stack at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/har-validator/node_modules/ajv/lib/compile/index.js:8:25)
gyp ERR! stack at Module._compile (internal/modules/cjs/loader.js:778:30)
gyp ERR! stack at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
gyp ERR! stack at Module.load (internal/modules/cjs/loader.js:653:32)
gyp ERR! stack at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
gyp ERR! stack at Function.Module._load (internal/modules/cjs/loader.js:585:3)
gyp ERR! System Linux 5.10.17-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll
gyp ERR! node -v v10.24.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! <https://github.com/nodejs/node-gyp/issues>
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2021-04-20T12_19_49_643Z-debug.log
from mmm-pir-sensor.
For me a simple
npm install
npm rebuild
Fixed the problem. (not changing anything else, well maybe I also deleted the package-lock.js
)
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
- 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.