Read the statement by Michael Teeuw here.
New install - (npm run install-mm) - returns errors
-
Hi, brand new user and no experience with Pi programming.
Running Pi4 with 64bit new install. Pi all updated.
Following instructions (have tried 6 times) all goes well until I enter the “npm run install-mm” and each time I get the following.
leehill@raspberrypi:~/MagicMirror $ sudo npm run install-mm
magicmirror@2.29.0 install-mm
npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=devnpm error code EBADENGINE
npm error engine Unsupported engine
npm error engine Not compatible with your version of node/npm: magicmirror@2.29.0
npm error notsup Not compatible with your version of node/npm: magicmirror@2.29.0
npm error notsup Required: {“node”:“>=20.9.0 <21 || 22”}
npm error notsup Actual: {“npm”:“11.0.0”,“node”:“v23.4.0”}
npm error A complete log of this run can be found in: /root/.npm/_logs/2024-12-18T19_34_41_408Z-debug-0.log
leehill@raspberrypi:~/MagicMirror $what am I doing wrong?? Thanks!!
-
@lostagain said in New install - (npm run install-mm) - returns errors:
npm error notsup Actual: {“npm”:“11.0.0”,“node”:“v23.4.0”}
yes, we don’t support node 23 until next release, Jan 1.
the 'easiest way back is
sudo npm install n -g sudo n 22 hash -r
then start install again
-
@sdetweil said in New install - (npm run install-mm) - returns errors:
sudo npm install n -g
Sam, you’re a genius!!! Thank you so much, been tearing my hair out with that!!
-
-
@lostagain if you had used my installer script, it would have installed the correct version of node (listed as 1st alternative install choice)
-
@sdetweil Good to know (I’ll remember that next time!!) thank you
-
@lostagain my upgrade script will do it too between releases