Read the statement by Michael Teeuw here.
Update Problem
- 
 Hello everyone, I wanted to update my Magic Mirror via the console and I get this error message, can someone please help me? git pull && npm run install-mm 
 Already up to date.magicmirror@2.28.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: @eslint/eslintrc@3.1.0
 npm error notsup Not compatible with your version of node/npm: @eslint/eslintrc@3.1.0
 npm error notsup Required: {“node”:“^18.18.0 || ^20.9.0 || >=21.1.0”}
 npm error notsup Actual: {“npm”:“10.8.1”,“node”:“v20.8.0”}
 npm error A complete log of this run can be found in: /root/.npm/_logs/2024-07-01T03_47_31_928Z-debug-0.logless /root/.npm/_logs/2024-07-01T03_47_31_928Z-debug-0.log 0 verbose cli /usr/local/bin/node /usr/local/bin/npm 
 1 info using npm@10.8.1
 2 info using node@v20.8.0
 3 silly config load:file:/usr/local/lib/node_modules/npm/npmrc
 4 warn config only Use--omit=devto omit dev dependencies from the install.
 5 silly config load:file:/home/stefan/MagicMirror/.npmrc
 6 silly config load:file:/root/.npmrc
 7 silly config load:file:/usr/local/etc/npmrc
 8 verbose title npm install
 9 verbose argv “install” “–no-audit” “–no-fund” “–no-update-notifier” “–only” “prod” “–omit” “dev”
 10 verbose logfile logs-max:10 dir:/root/.npm/_logs/2024-07-01T03_47_31_928Z-
 11 verbose logfile /root/.npm/_logs/2024-07-01T03_47_31_928Z-debug-0.log
 12 silly packumentCache heap:247726080 maxSize:61931520 maxEntrySize:30965760
 13 silly logfile start cleaning logs, removing 1 files
 14 silly logfile done cleaning log files
 15 silly idealTree buildDeps
 16 verbose stack Error: Unsupported engine
 16 verbose stack at checkEngine (/usr/local/lib/node_modules/npm/node_modules/npm-install-checks/lib/index.js:14:25)
 16 verbose stack at #checkEngineAndPlatform (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:198:11)
 16 verbose stack at Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:184:41)
 16 verbose stack at async Promise.all (index 1)
 16 verbose stack at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:131:5)
 16 verbose stack at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:150:5)
 16 verbose stack at async Npm.exec (/usr/local/lib/node_modules/npm/lib/npm.js:207:9)
 16 verbose stack at async module.exports (/usr/local/lib/node_modules/npm/lib/cli/entry.js:74:5)
 17 verbose pkgid @eslint/eslintrc@3.1.0
 18 error code EBADENGINE
 19 error engine Unsupported engine
 20 error engine Not compatible with your version of node/npm: @eslint/eslintrc@3.1.0
 21 error notsup Not compatible with your version of node/npm: @eslint/eslintrc@3.1.0
 21 error notsup Required: {“node”:“^18.18.0 || ^20.9.0 || >=21.1.0”}
 21 error notsup Actual: {“npm”:“10.8.1”,“node”:“v20.8.0”}
 22 silly unfinished npm timer reify 1719805654317
 23 silly unfinished npm timer reify:loadTrees 1719805654372
 24 verbose cwd /home/stefan/MagicMirror
 25 verbose os Linux 6.6.31+rpt-rpi-v7
 26 verbose node v20.8.0
- 
 @Lockslay yes, you need to uprade nodejs to at least version 20.10 I think 20.15 is current 
- 
S sdetweil has marked this topic as solved on
- 
 I’m facing the same issue here even though I have the latest version of node.js and npm installed. npm error code EBADENGINE npm error engine Unsupported engine npm error engine Not compatible with your version of node/npm: magicmirror@2.28.0 npm error notsup Not compatible with your version of node/npm: magicmirror@2.28.0 npm error notsup Required: {"node":">=20"} npm error notsup Actual: {"npm":"10.8.1","node":"v18.17.1"} npm error A complete log of this run can be found in: /root/.npm/_logs/2024-07-02T15_30_26_428Z-debug-0.log pi@MagicMirror:~/MagicMirror $ node -v v22.4.0 pi@MagicMirror:~/MagicMirror $ npm -v 10.8.1
- 
 @el97 I guess the test failed, in package.json says >=20 I’d install v 20.9.0 sudo npm install n -g sudo n 20.9.0
- 
 @sdetweil I managed to solve it by installing node with these commands below. I tried using nvm earlier with no luck. curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash - sudo apt install -y nodejs

