• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Module not found error

Scheduled Pinned Locked Moved Unsolved Troubleshooting
2 Posts 3 Posters 1.9k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    Johanba
    last edited by May 8, 2022, 5:34 AM

    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 fine

    Any 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
    
    
    M 1 Reply Last reply May 8, 2022, 9:06 AM Reply Quote 0
    • M Offline
      mumblebaj Module Developer @Johanba
      last edited by May 8, 2022, 9:06 AM

      @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

      Check out my modules at: https://github.com/mumblebaj?tab=repositories

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Sam, technical setup by Karsten.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy