Read the statement by Michael Teeuw here.
MMM-Pir
-
I was trying to update MMM-Pir and having some trouble so I decided, I’d rename the directory and start with a fresh install. I cloned the directory and followed the instructions with “npm run setup”. Apparently my node version is too high.
npm error code EBADENGINE
npm error engine Unsupported engine
npm error engine Not compatible with your version of node/npm: MMM-Pir@2.0.0
npm error notsup Not compatible with your version of node/npm: MMM-Pir@2.0.0
npm error notsup Required: {“node”:“>=20.9.0 <21 || >=22”}
npm error notsup Actual: {“npm”:“10.8.3”,“node”:“v21.7.1”}Can I not use MMM-Pir now?
-
@gonzonia install node 20, MagicMirror has the same version restrictions, cause we found some problems w node 21
sudo npm install n -g sudo n 20sudo is required here because they both update the /usr folder
-
@sdetweil Thanks!
-
S sdetweil has marked this topic as solved on
-
@sdetweil I did that and I still get the same problem. How do I make sure it uses the correct version?
pi@MagicMirror:~/MagicMirror/modules/MMM-Pir $ sudo npm install n -g added 1 package in 5s pi@MagicMirror:~/MagicMirror/modules/MMM-Pir $ sudo n 20 copying : node/20.18.0 installed : v20.18.0 (with npm 10.8.2)npm error code EBADENGINE npm error engine Unsupported engine npm error engine Not compatible with your version of node/npm: MMM-Pir@2.0.0 npm error notsup Not compatible with your version of node/npm: MMM-Pir@2.0.0 npm error notsup Required: {"node":">=20.9.0 <21 || >=22"} npm error notsup Actual: {"npm":"10.9.0","node":"v21.7.1"} -
-
@sdetweil Okay.
I’ve runsudo npm install n -g sudo n 20 hash -rthen closed the terminal and reconnected.
Went back into the MMM-Pir directory and tried running the setup again.
Same problem -
@gonzonia node -v
returns what? -
pi@MagicMirror:~ $ node -v v21.7.1 -
@gonzonia weird… how did you upgrade to node 21?
apt or nvm? -
@sdetweil Honestly, I don’t remember. I think I installed nvm at one point to fix something else but I do run apt regularly to update everything
-
@gonzonia do nvm -v
n and nvm do the same thing
nvm is a bash script
n is a javascript app -
$ nvm -v 0.39.7 -
@gonzonia ok, so you have nvm too
sudo nvm i 20
-
-
@gonzonia ok, been a while
nvm install v20.9.0
-
-
@gonzonia is your Magic Mirror working now with MMM-PIR?
My MM stopped turning on after updating MMM-PIR.
Peter -
@Peter So it’ll go off but the PIR doesn’t work to turn it back on? Mine is working. Try re-installing. Here’s the config I’m using.
module: 'MMM-Pir', position: 'top_left', classes: 'SceneFamily SceneSam', config: { debug: false, delay: 2 * 60 * 1000, mode: 9 , displayCounter: false, displayBar: false, displayStyle: "Line", displayLastPresence: false, lastPresenceTimeFormat: "LL H:mm", mode6_gpio: 20, mode6_clearGpioValue: true, xrandrForceRotation: "left", wrandrForceRotation: "normal", wrandrForceMode: "1920x1080", touchMode: 3, pir_gpio: 4, pir_mode: 0, } -
@gonzonia before installing did you follow all the tips mentioned by sdetweil?
Peter -
Can you check new ReadMe
I haven’t had time to create a topic for the new release of MMM-Pir v2 yet, sorry
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