Read the statement by Michael Teeuw here.
Module not found error
-
Hi All
A few modules after install, in this case both MMM-Homeassistant & MMM-Awesome Alexa on startup indicate "module not found
Yes, I do run npm install in the folder
I have checked my config, reinstalled, updated the module but cannot get it working
If I comment the module out all is fineAny help will be appreciated
[07.05.2022 23:14.30.436] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request' Require stack: - /home/johanba/MagicMirror/modules/MMM-HomeAssistant/node_helper.js - /home/johanba/MagicMirror/js/app.js - /home/johanba/MagicMirror/js/electron.js - /home/johanba/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - [07.05.2022 23:14.30.439] [LOG] Loading module helpers ... [07.05.2022 23:14.30.440] [LOG] No helper found for module: MMM-pages. [07.05.2022 23:14.30.441] [LOG] No helper found for module: alert. [07.05.2022 23:14.30.442] [LOG] No helper found for module: clock. [07.05.2022 23:14.30.444] [LOG] No helper found for module: MMM-COVID19. [07.05.2022 23:14.30.444] [LOG] Initializing new module helper ... [07.05.2022 23:14.30.445] [LOG] Module helper loaded: EXT-Alert [07.05.2022 23:14.30.445] [LOG] Initializing new module helper ... [07.05.2022 23:14.30.446] [LOG] Module helper loaded: Gateway [07.05.2022 23:14.30.447] [LOG] Initializing new module helper ... [07.05.2022 23:14.30.447] [LOG] Module helper loaded: MMM-Todoist [07.05.2022 23:14.30.448] [LOG] No helper found for module: MMM-WebView. [07.05.2022 23:14.30.448] [LOG] Initializing new module helper ... [07.05.2022 23:14.30.449] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify [07.05.2022 23:14.30.450] [LOG] Initializing new module helper ... [07.05.2022 23:14.30.451] [LOG] Module helper loaded: EXT-Detector [07.05.2022 23:14.30.451] [LOG] Initializing new module helper ... [07.05.2022 23:14.30.452] [LOG] Module helper loaded: MMM-GoogleAssistant [07.05.2022 23:14.30.452] [LOG] Initializing new module helper ... [07.05.2022 23:14.30.453] [LOG] Module helper loaded: EXT-Pir [07.05.2022 23:14.30.454] [LOG] Initializing new module helper ... [07.05.2022 23:14.30.455] [LOG] Module helper loaded: MMM-MacAddressScan [07.05.2022 23:14.30.457] [ERROR] App threw an error during load [07.05.2022 23:14.30.459] [ERROR] Error: Cannot find module 'request' Require stack: - /home/johanba/MagicMirror/modules/MMM-HomeAssistant/node_helper.js - /home/johanba/MagicMirror/js/app.js - /home/johanba/MagicMirror/js/electron.js - /home/johanba/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at Module._resolveFilename (node:internal/modules/cjs/loader:940:15) at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1105) at Function.Module._resolveFilename (/home/johanba/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (node:internal/modules/cjs/loader:785:27) at Function.c._load (node:electron/js2c/asar_bundle:5:13331) at Module.require (node:internal/modules/cjs/loader:1012:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/home/johanba/MagicMirror/modules/MMM-HomeAssistant/node_helper.js:2:17) at Module._compile (node:internal/modules/cjs/loader:1116:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10) [07.05.2022 23:14.30.461] [ERROR] Whoops! There was an uncaught exception... [07.05.2022 23:14.30.468] [ERROR] Error: Cannot find module 'request' Require stack: - /home/johanba/MagicMirror/modules/MMM-HomeAssistant/node_helper.js - /home/johanba/MagicMirror/js/app.js - /home/johanba/MagicMirror/js/electron.js - /home/johanba/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at Module._resolveFilename (node:internal/modules/cjs/loader:940:15) at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1105) at Function.Module._resolveFilename (/home/johanba/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (node:internal/modules/cjs/loader:785:27) at Function.c._load (node:electron/js2c/asar_bundle:5:13331) at Module.require (node:internal/modules/cjs/loader:1012:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/home/johanba/MagicMirror/modules/MMM-HomeAssistant/node_helper.js:2:17) at Module._compile (node:internal/modules/cjs/loader:1116:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/johanba/MagicMirror/modules/MMM-HomeAssistant/node_helper.js', '/home/johanba/MagicMirror/js/app.js', '/home/johanba/MagicMirror/js/electron.js', '/home/johanba/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js', undefined ] } [07.05.2022 23:14.30.472] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [07.05.2022 23:14.30.473] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [07.05.2022 23:14.30.770] [LOG] Launching application. ^C/home/johanba/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT -
@Johanba said in Module not found error:
Error: Cannot find module ‘request’
This is your error. See below post to resolve.
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later?page=1
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