Read the statement by Michael Teeuw here.
Installing MMM-PIR-Sensor
-
Tried to install MMM_PIR-Sensor and this is what I got:
So I updated node-abi and it didn’t change anything.node_modules/.bin/electron-rebuild -e …/…/node_modules/electron
⠋ Searching dependency tree
An unhandled error occurred inside electron-rebuild
Could not detect abi for version 17.2.0 and runtime electron. Updating “node-abi” might help solve this issue if it is a new release of electronError: Could not detect abi for version 17.2.0 and runtime electron. Updating “node-abi” might help solve this issue if it is a new release of electron
at Object.getAbi (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-abi/index.js:36:9)
at new Rebuilder (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:126:48)
at rebuildWithOptions (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:404:23)
at Object.doRebuild [as rebuild] (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:427:16)
at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/cli.js:124:33
at Generator.next ()
at fulfilled (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/cli.js:6:58)
npm ERR! code 255
npm ERR! path /home/pi/MagicMirror/modules/MMM-PIR-Sensor
npm ERR! command failed
npm ERR! command sh -c node_modules/.bin/electron-rebuild -e …/…/node_modules/electronnpm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2022-06-07T18_39_56_149Z-debug-0.log
pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $ npm update node-abiAny suggestions?
Dennis -
@N6NG really old code, archived. maybe this will help
https://forum.magicmirror.builders/topic/16681/mmm-moduletogglebutton-install-error/2?_=1654646189462
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login