Read the statement by Michael Teeuw here.
upgrade 2.24 to 2.25 on arch linux - broken
-
Hello everyone,
after updating to Version 2.25, MM no longer starts.
Thank you in advance for any help.
uname -a
Linux archpi4 6.1.54-2-rpi-ARCH #1 SMP Fri Sep 29 12:55:29 MDT 2023 armv7l GNU/Linux
lsb_release -a
LSB Version: n/a Distributor ID: Arch Description: Arch Linux Release: rolling Codename: n/a
pm2 stop all
[PM2] Applying action stopProcessId on app [all](ids: [ 0 ]) [PM2] [mm](0) ✓ ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ mm │ fork │ 0 │ stopped │ 0% │ 0b │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
npm start
> magicmirror@2.25.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [03.10.2023 13:38.22.431] [LOG] Starting MagicMirror: v2.25.0 [03.10.2023 13:38.22.437] [LOG] Loading config ... [03.10.2023 13:38.22.439] [DEBUG] config template file not exists, no envsubst [03.10.2023 13:38.22.443] [LOG] Loading module helpers ... [03.10.2023 13:38.22.445] [LOG] No helper found for module: alert. [03.10.2023 13:38.22.470] [LOG] Initializing new module helper ... [03.10.2023 13:38.22.470] [LOG] Module helper loaded: updatenotification [03.10.2023 13:38.22.471] [LOG] No helper found for module: clock. [03.10.2023 13:38.22.472] [LOG] No helper found for module: calendar_monthly. [03.10.2023 13:38.22.473] [LOG] No helper found for module: compliments. [03.10.2023 13:38.22.474] [LOG] No helper found for module: weather. [03.10.2023 13:38.22.478] [ERROR] (node:916) UnhandledPromiseRejectionWarning: Error: Cannot find module 'node-fetch' Require stack: - /home/michael/MagicMirror/modules/MMM-DWD-WarnWeather/node_helper.js - /home/michael/MagicMirror/js/app.js - /home/michael/MagicMirror/js/electron.js - /home/michael/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at node:internal/modules/cjs/loader:1084:15 at Function.<anonymous> (node:electron/js2c/browser_init:2:117419) at Module._resolveFilename (/home/michael/MagicMirror/node_modules/module-alias/index.js:49:29) at node:internal/modules/cjs/loader:929:27 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/home/michael/MagicMirror/modules/MMM-DWD-WarnWeather/node_helper.js:12:15) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at loadModule (/home/michael/MagicMirror/js/app.js:180:19) (Use `electron --trace-warnings ...` to show where the warning was created) [03.10.2023 13:38.22.479] [ERROR] (node:916) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
-
@voodoo-magic did u upgrade node to at least v18?
it is required
-
@voodoo-magic said in upgrade 2.24 to 2.25 on arch linux - broken:
Cannot find module ‘node-fetch’
this was removed from the base on this release as we use the builtin fetch in v18 and above
see
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later -
@sdetweil
$ node -v
v20.8.0
$ npm -v
10.1.0Thank you very much for the answer, but what I have to do in the module MMM-DWD-WarnWeather?
npm init -y?
-
@voodoo-magic read the instructions… there are only 4 steps…
-
MMM-DWD-WarnWeather is now fixed.
-
Thank you! @rabbit83ka @sdetweil