Read the statement by Michael Teeuw here.
Keep having same error
-
Can someone help this newbie with what I’m doing wrong:
magicmirror@2.21.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[20.11.2022 19:53.11.052] [LOG] Starting MagicMirror: v2.21.0
[20.11.2022 19:53.11.058] [LOG] Loading config …
[20.11.2022 19:53.11.068] [LOG] Loading module helpers …
[20.11.2022 19:53.11.077] [LOG] No helper found for module: alert.
[20.11.2022 19:53.11.105] [LOG] Initializing new module helper …
[20.11.2022 19:53.11.108] [LOG] Module helper loaded: updatenotification
[20.11.2022 19:53.11.111] [LOG] No helper found for module: clock.
[20.11.2022 19:53.11.492] [LOG] Initializing new module helper …
[20.11.2022 19:53.11.494] [LOG] Module helper loaded: calendar
[20.11.2022 19:53.11.498] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘request’
Require stack:- /home/svencarree/MagicMirror/modules/MMM-BMW-OW/node_helper.js
- /home/svencarree/MagicMirror/js/app.js
- /home/svencarree/MagicMirror/js/electron.js
- /home/svencarree/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
[20.11.2022 19:53.11.499] [LOG] Loading module helpers …
[20.11.2022 19:53.11.500] [LOG] No helper found for module: alert.
[20.11.2022 19:53.11.501] [LOG] Initializing new module helper …
[20.11.2022 19:53.11.502] [LOG] Module helper loaded: updatenotification
[20.11.2022 19:53.11.502] [LOG] No helper found for module: clock.
[20.11.2022 19:53.11.503] [LOG] Initializing new module helper …
[20.11.2022 19:53.11.504] [LOG] Module helper loaded: calendar
[20.11.2022 19:53.11.506] [ERROR] App threw an error during load
[20.11.2022 19:53.11.509] [ERROR] Error: Cannot find module ‘request’
Require stack:- /home/svencarree/MagicMirror/modules/MMM-BMW-OW/node_helper.js
- /home/svencarree/MagicMirror/js/app.js
- /home/svencarree/MagicMirror/js/electron.js
- /home/svencarree/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
at Module._resolveFilename (/home/svencarree/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:785:27)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/svencarree/MagicMirror/modules/MMM-BMW-OW/node_helper.js:9:17)
at Module._compile (node:internal/modules/cjs/loader:1118:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1173:10)
[20.11.2022 19:53.11.512] [ERROR] Whoops! There was an uncaught exception…
[20.11.2022 19:53.11.517] [ERROR] Error: Cannot find module ‘request’
Require stack: - /home/svencarree/MagicMirror/modules/MMM-BMW-OW/node_helper.js
- /home/svencarree/MagicMirror/js/app.js
- /home/svencarree/MagicMirror/js/electron.js
- /home/svencarree/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
at Module._resolveFilename (/home/svencarree/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:785:27)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/svencarree/MagicMirror/modules/MMM-BMW-OW/node_helper.js:9:17)
at Module._compile (node:internal/modules/cjs/loader:1118:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1173:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/svencarree/MagicMirror/modules/MMM-BMW-OW/node_helper.js’,
‘/home/svencarree/MagicMirror/js/app.js’,
‘/home/svencarree/MagicMirror/js/electron.js’,
‘/home/svencarree/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
undefined
]
}
[20.11.2022 19:53.11.520] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[20.11.2022 19:53.11.520] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[20.11.2022 19:53.11.933] [LOG] Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: kan gedeeld objectbestand niet openen: Toegang geweigerd (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
-
-
@sdetweil you replied to the topic you deleted
-
find the message
-
get the name of the missing library (???)
-
look in the module folder for package.json
4 if it does NOT exist, create it
w the
npm init -y
command -
npm install ??? (from step 2)
-
-
Hahaha sorry for the inconvinience! In the folder *MMM0BMW-OW’ there is a ‘package.json’ file. But at step 2 and 4 I really don’t know wich library is missing.
-
@svencarree see the messages u posted to start this topic. just before either indent is the message you are looking for
-
Thanks for the time and patience! But I’m still not finding it but I’m a real newbie…
@svencarree said in Keep having same error:
20.11.2022 19:53.11.506] [ERROR] App threw an error during load
[20.11.2022 19:53.11.509] [ERROR] Error: Cannot find module ‘request’
Require stack:/home/svencarree/MagicMirror/modules/MMM-BMW-OW/node_helper.js
/home/svencarree/MagicMirror/js/app.js
/home/svencarree/MagicMirror/js/electron.js
/home/svencarree/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
at Module._resolveFilename (/home/svencarree/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:785:27)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/svencarree/MagicMirror/modules/MMM-BMW-OW/node_helper.js:9:17)
at Module._compile (node:internal/modules/cjs/loader:1118:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1173:10)
[20.11.2022 19:53.11.512] [ERROR] Whoops! There was an uncaught exception…
[20.11.2022 19:53.11.517] [ERROR] Error: Cannot find module ‘request’
Require stack:
/home/svencarree/MagicMirror/modules/MMM-BMW-OW/node_helper.js
/home/svencarree/MagicMirror/js/app.js
/home/svencarree/MagicMirror/js/electron.js
/home/svencarree/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
at Module._resolveFilename (/home/svencarree/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:785:27)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/svencarree/MagicMirror/modules/MMM-BMW-OW/node_helper.js:9:17)
at Module._compile (node:internal/modules/cjs/loader:1118:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1173:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/svencarree/MagicMirror/modules/MMM-BMW-OW/node_helper.js’,
‘/home/svencarree/MagicMirror/js/app.js’,
‘/home/svencarree/MagicMirror/js/electron.js’,
‘/home/svencarree/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
undefinThis looks for me as the report of the error. But i’m not seeing wich library I should install under step 4 with npm install…
-
@svencarree said in Keep having same error:
Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘request’