Read the statement by Michael Teeuw here.
Installation Error
-
Hi, I am trying to install MagicMirror again last time I used was about a year ago. Cleared my Sd card and reinstalled everything. I used sdetweil install instructions but received the following error. Any help is appreciated. Thank you
npm 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”:“10.9.0”,“node”:“v23.2.0”}
npm error A complete log of this run can be found in: /home/vandam3b/.npm/_logs/2024-11-21T02_25_53_357Z-debug-0.log
Unable to install dependencies!Here is the log info:
install starting - Wed Nov 20 21:12:35 EST 2024
installing on aarch64 processor system
the os is PRETTY_NAME=“Debian GNU/Linux 12 (bookworm)” NAME=“Debian GNU/Linux” VERSION_ID=“12” VERSION=“12 (bookworm)” VERSION_CODENAME=bookworm ID=debian HOME_URL=“https://www.debian.org/” SUPPORT_URL=“https://www.debian.org/support” BUG_REPORT_URL=“https://bugs.debian.org/”
total used free shared buff/cache available
Mem: 907 523 111 21 354 383
Swap: 511 305 206
[96mUpdating packages …[0m
Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 https://deb.nodesource.com/node_23.x nodistro InRelease Hit:5 http://archive.raspberrypi.com/debian bookworm InRelease Reading package lists…
apt-get update completed ok
Reading package lists…
Building dependency tree…
Reading state information…
Suggested packages:
doc-base
The following NEW packages will be installed:
pv
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 58.6 kB of archives.
After this operation, 146 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main arm64 pv arm64 1.6.20-1 [58.6 kB]
Fetched 58.6 kB in 0s (552 kB/s)
Selecting previously unselected package pv.
(Reading database …
(Reading database … 5%
(Reading database … 10%
(Reading database … 15%
(Reading database … 20%
(Reading database … 25%
(Reading database … 30%
(Reading database … 35%
(Reading database … 40%
(Reading database … 45%
(Reading database … 50%
(Reading database … 55%
(Reading database … 60%
(Reading database … 65%
(Reading database … 70%
(Reading database … 75%
(Reading database … 80%
(Reading database … 85%
(Reading database … 90%
(Reading database … 95%
(Reading database … 100%
(Reading database … 134502 files and directories currently installed.)
Preparing to unpack …/archives/pv_1.6.20-1_arm64.deb …
Unpacking pv (1.6.20-1) …
Setting up pv (1.6.20-1) …
Processing triggers for man-db (2.11.2-2) …
apt-get upgrade started
apt-get upgrade result =rc=0 Reading package lists…
Building dependency tree…
Reading state information…
Calculating upgrade…
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[96mInstalling helper tools …[0m
Reading package lists…
Building dependency tree…
Reading state information…
curl is already the newest version (7.88.1-10+deb12u8).
wget is already the newest version (1.21.3-1+b1).
wget set to manually installed.
git is already the newest version (1:2.39.5-0+deb12u1).
build-essential is already the newest version (12.9).
unzip is already the newest version (6.0-28).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(node:4088) ExperimentalWarning: CommonJS module /usr/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /usr/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Usenode --trace-warnings ...
to show where the warning was created)added 1 package in 5s
installing on bookworm
[96mCloning MagicMirror …[0m
[92mCloning MagicMirror Done![0m
[96mInstalling dependencies …[0m[91mUnable to install dependencies! [0m
install starting - Wed Nov 20 21:22:19 EST 2024
installing on aarch64 processor system
the os is PRETTY_NAME=“Debian GNU/Linux 12 (bookworm)” NAME=“Debian GNU/Linux” VERSION_ID=“12” VERSION=“12 (bookworm)” VERSION_CODENAME=bookworm ID=debian HOME_URL=“https://www.debian.org/” SUPPORT_URL=“https://www.debian.org/support” BUG_REPORT_URL=“https://bugs.debian.org/”
total used free shared buff/cache available
Mem: 907 508 161 15 317 398
Swap: 511 350 161
[96mUpdating packages …[0m
Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 https://deb.nodesource.com/node_23.x nodistro InRelease Hit:5 http://archive.raspberrypi.com/debian bookworm InRelease Reading package lists…
apt-get update completed ok
Reading package lists…
Building dependency tree…
Reading state information…
pv is already the newest version (1.6.20-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
apt-get upgrade started
apt-get upgrade result =rc=0 Reading package lists…
Building dependency tree…
Reading state information…
Calculating upgrade…
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[96mInstalling helper tools …[0m
Reading package lists…
Building dependency tree…
Reading state information…
curl is already the newest version (7.88.1-10+deb12u8).
wget is already the newest version (1.21.3-1+b1).
git is already the newest version (1:2.39.5-0+deb12u1).
build-essential is already the newest version (12.9).
unzip is already the newest version (6.0-28).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
installing on bookworm
[93mIt seems like MagicMirror is already installed.
To prevent overwriting, the installer will be aborted.
Please rename the [1m~/MagicMirror[0m[93m folder and try again.[0m
install starting - Wed Nov 20 21:25:12 EST 2024
installing on aarch64 processor system
the os is PRETTY_NAME=“Debian GNU/Linux 12 (bookworm)” NAME=“Debian GNU/Linux” VERSION_ID=“12” VERSION=“12 (bookworm)” VERSION_CODENAME=bookworm ID=debian HOME_URL=“https://www.debian.org/” SUPPORT_URL=“https://www.debian.org/support” BUG_REPORT_URL=“https://bugs.debian.org/”
total used free shared buff/cache available
Mem: 907 509 31 8 436 398
Swap: 511 337 174
[96mUpdating packages …[0m
Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 https://deb.nodesource.com/node_23.x nodistro InRelease Hit:5 http://archive.raspberrypi.com/debian bookworm InRelease Reading package lists…
apt-get update completed ok
Reading package lists…
Building dependency tree…
Reading state information…
pv is already the newest version (1.6.20-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
apt-get upgrade started
apt-get upgrade result =rc=0 Reading package lists…
Building dependency tree…
Reading state information…
Calculating upgrade…
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[96mInstalling helper tools …[0m
Reading package lists…
Building dependency tree…
Reading state information…
curl is already the newest version (7.88.1-10+deb12u8).
wget is already the newest version (1.21.3-1+b1).
git is already the newest version (1:2.39.5-0+deb12u1).
build-essential is already the newest version (12.9).
unzip is already the newest version (6.0-28).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
installing on bookworm
[96mCloning MagicMirror …[0m
[92mCloning MagicMirror Done![0m
[96mInstalling dependencies …[0m[91mUnable to install dependencies! [0m
-
@vandam3b said in Installation Error:
npm error notsup Required: {“node”:“>=20.9.0 <21 || 22”}
npm error notsup Actual: {“npm”:“10.9.0”,“node”:“v23.2.0”}yes, we support Node 20.9+ and node 22… not node 21
the doc says check the release notes for the official versionsnext release will support node 23
you can hack it… edit the package.json and change the engines from || 22 to || 23
maybe it will run ok… did for me during some tests
if you had used the automated install, it would have installed node 20.9
-
@sdetweil Thank you for getting back to me. I will delete MM folder and do automated install. Where would I find those directions? Thank you
-
@vandam3b you have to start over with a new sd card flash
the (my) scripts don’t uninstall an existing node, just install or upgrade a downlevelthe doc links to my scripts… 1st alternative
anyhow see
https://github.com/sdetweil/MagicMirror_scriptsthe documentation is linked above in the header
-
@sdetweil I will do that. Thank you very much.
-
@vandam3b Thank you very much, it worked.