Read the statement by Michael Teeuw here.
electron-rebuild and MagicMirror v2.18 (and more)
-
@susl :
- Recommended version of npm: v6.14.15
- Recommended version of node: v14.x.x or v16.x.x
to verify, try this in a terminal (or ssh):
node -v npm -v
-
@bugsounet
node version: v17.3.0
npm version: 8.3.0So obviously not the correct version :-( Do you know how I can change the versions?
-
@susl you can use n to install or select different versions of node (and npm)
to install n
sudo npm install n -g
then to install or use a version of node
n 16to switch
n
the select from the list
-
@sdetweil
Thanks a lot. I works now! -
@bugsounet Thank you for this!! It works like a charm ;)
-
Wow, perfect ! Thank you so much !
-
Thanks for doing this - much appreciated!
-
@michael5r with pleasure ;l
-
Hi @bugsounet
Same problem after update to 2.19 :(During the update, i needed to force because a log say the package-lock.json has been modified. Maybe my error.
Trying to reproduce the procedure, but
pi@MagicMirror:~/MagicMirror/modules/MMM-PIR-Sensor $ ./node_modules/.bin/MagicMirror-rebuild ⠋ 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 electron Error: 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:39:9) at new Rebuilder (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/build/rebuild.js:100:48) at rebuildWithOptions (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/build/rebuild.js:249:23) at doRebuild (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/build/rebuild.js:272:16) at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/magicmirror-rebuild/build/cli.js:115:45 pi@MagicMirror:~/MagicMirror/modules/MMM-PIR-Sensor $
Did you know how to solve this ?
-
MMM-PIR-Sensor state is :
This repository has been archived by the owner. It is now read-only.
I will not doing a patch on every update for this @paviro module
Just use another maintened pir module