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