A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
MMM-Pir
-
@sdetweil Thanks!
-
-
@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 -r
then 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