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 -rthen 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!!
-
L lostagain has marked this topic as solved on
-
@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
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