• 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 loading module in MagicMirror

Scheduled Pinned Locked Moved Solved Troubleshooting
41 Posts 12 Posters 27.4k Views 14 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.
  • D Offline
    DarrenHill @sdetweil
    last edited by DarrenHill Jan 9, 2022, 9:41 PM Jan 9, 2022, 9:39 PM

    @sdetweil - I did it via your update script, and it has updated Node from v10.x to v16.x (or at least that is what appears to have happened from what I could read).

    It’s quite an old install that just sits on my desk and largely gets left to its own devices. It is in a PiTop Ceed rather than a true mirror, and basically the only thing it runs is MM (it’s actually a dual-boot via PINN also with RetroPie, but the Raspi OS partition is essentially only MM). So no need to keep things focussed to one app or anything like that - no issue of cross-contamination.

    All is working fine after the update though, so no problems.

    S 1 Reply Last reply Jan 9, 2022, 9:43 PM Reply Quote 0
    • S Away
      sdetweil @DarrenHill
      last edited by Jan 9, 2022, 9:43 PM

      @darrenhill cool. thx for the feedback

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      N 1 Reply Last reply Jan 30, 2022, 7:30 PM Reply Quote 0
      • N Offline
        np27np27 @sdetweil
        last edited by Jan 30, 2022, 7:30 PM

        @sdetweil
        Ran your update script today and now got black screen. Should I still check each module for json files and npm install or will the script have done that already?
        How to I go about trying to troubleshoot this ? Any help is much appreciated!

        S 1 Reply Last reply Jan 30, 2022, 8:28 PM Reply Quote 0
        • S Away
          sdetweil @np27np27
          last edited by sdetweil Jan 31, 2022, 2:31 AM Jan 30, 2022, 8:28 PM

          @np27np27 want to see installers/upgrade.log

          same process as listed in post 1

          ‘request’ is NOT the only library missing

          the messages tell you what needs to be added

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          N 1 Reply Last reply Jan 31, 2022, 10:31 AM Reply Quote 0
          • N Offline
            np27np27 @sdetweil
            last edited by Jan 31, 2022, 10:31 AM

            @sdetweil
            hi, im getting this error in the pm2 log:

            
            /home/pi/.pm2/logs/mm-error.log last 100 lines:
            0|mm       | the module (for instance, using `npm rebuild` or `npm install`).
            0|mm       |     at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
            0|mm       |     at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18)
            0|mm       |     at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
            0|mm       |     at Module.load (node:internal/modules/cjs/loader:988:32)
            0|mm       |     at Module._load (node:internal/modules/cjs/loader:829:12)
            0|mm       |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
            0|mm       |     at Module.require (node:internal/modules/cjs/loader:1012:19)
            0|mm       |     at require (node:internal/modules/cjs/helpers:94:18)
            0|mm       |     at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
            0|mm       |     at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31 {
            0|mm       |   code: 'ERR_DLOPEN_FAILED'
            0|mm       | }
            0|mm       | [30.01.2022 19:11.04.155] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
            0|mm       | [30.01.2022 19:11.04.156] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
            0|mm       | Gdk-Message: 19:12:35.663: electron: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
            0|mm       |
            0|mm       | [30.01.2022 19:13.00.598] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
            0|mm       | was compiled against a different Node.js version using
            0|mm       | NODE_MODULE_VERSION 93. This version of Node.js requires
            0|mm       | NODE_MODULE_VERSION 99. Please try re-compiling or re-installing
            0|mm       | the module (for instance, using `npm rebuild` or `npm install`).
            0|mm       | [30.01.2022 19:13.00.615] [ERROR] App threw an error during load
            0|mm       | [30.01.2022 19:13.00.618] [ERROR] Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
            0|mm       | was compiled against a different Node.js version using
            0|mm       | NODE_MODULE_VERSION 93. This version of Node.js requires
            0|mm       | NODE_MODULE_VERSION 99. Please try re-compiling or re-installing
            0|mm       | the module (for instance, using `npm rebuild` or `npm install`).
            0|mm       |     at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
            0|mm       |     at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18)
            0|mm       |     at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
            0|mm       |     at Module.load (node:internal/modules/cjs/loader:988:32)
            0|mm       |     at Module._load (node:internal/modules/cjs/loader:829:12)
            0|mm       |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
            0|mm       |     at Module.require (node:internal/modules/cjs/loader:1012:19)
            0|mm       |     at require (node:internal/modules/cjs/helpers:94:18)
            0|mm       |     at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
            0|mm       |     at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31
            0|mm       | [30.01.2022 19:13.00.622] [ERROR] Whoops! There was an uncaught exception...
            0|mm       | [30.01.2022 19:13.00.632] [ERROR] Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
            0|mm       | was compiled against a different Node.js version using
            0|mm       | NODE_MODULE_VERSION 93. This version of Node.js requires
            0|mm       | NODE_MODULE_VERSION 99. Please try re-compiling or re-installing
            0|mm       | the module (for instance, using `npm rebuild` or `npm install`).
            0|mm       |     at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
            0|mm       |     at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18)
            0|mm       |     at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
            0|mm       |     at Module.load (node:internal/modules/cjs/loader:988:32)
            0|mm       |     at Module._load (node:internal/modules/cjs/loader:829:12)
            0|mm       |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
            0|mm       |     at Module.require (node:internal/modules/cjs/loader:1012:19)
            0|mm       |     at require (node:internal/modules/cjs/helpers:94:18)
            0|mm       |     at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
            0|mm       |     at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31 {
            0|mm       |   code: 'ERR_DLOPEN_FAILED'
            0|mm       | }
            0|mm       | [30.01.2022 19:13.00.634] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
            0|mm       | [30.01.2022 19:13.00.635] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
            0|mm       | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
            0|mm       | [31.01.2022 10:27.29.417] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
            0|mm       | was compiled against a different Node.js version using
            0|mm       | NODE_MODULE_VERSION 93. This version of Node.js requires
            0|mm       | NODE_MODULE_VERSION 99. Please try re-compiling or re-installing
            0|mm       | the module (for instance, using `npm rebuild` or `npm install`).
            0|mm       | [31.01.2022 10:27.29.428] [ERROR] App threw an error during load
            0|mm       | [31.01.2022 10:27.29.431] [ERROR] Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
            0|mm       | was compiled against a different Node.js version using
            0|mm       | NODE_MODULE_VERSION 93. This version of Node.js requires
            0|mm       | NODE_MODULE_VERSION 99. Please try re-compiling or re-installing
            0|mm       | the module (for instance, using `npm rebuild` or `npm install`).
            0|mm       |     at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
            0|mm       |     at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18)
            0|mm       |     at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
            0|mm       |     at Module.load (node:internal/modules/cjs/loader:988:32)
            0|mm       |     at Module._load (node:internal/modules/cjs/loader:829:12)
            0|mm       |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
            0|mm       |     at Module.require (node:internal/modules/cjs/loader:1012:19)
            0|mm       |     at require (node:internal/modules/cjs/helpers:94:18)
            0|mm       |     at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
            0|mm       |     at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31
            0|mm       | [31.01.2022 10:27.29.433] [ERROR] Whoops! There was an uncaught exception...
            0|mm       | [31.01.2022 10:27.29.439] [ERROR] Error: The module '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node'
            0|mm       | was compiled against a different Node.js version using
            0|mm       | NODE_MODULE_VERSION 93. This version of Node.js requires
            0|mm       | NODE_MODULE_VERSION 99. Please try re-compiling or re-installing
            0|mm       | the module (for instance, using `npm rebuild` or `npm install`).
            0|mm       |     at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
            0|mm       |     at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18)
            0|mm       |     at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
            0|mm       |     at Module.load (node:internal/modules/cjs/loader:988:32)
            0|mm       |     at Module._load (node:internal/modules/cjs/loader:829:12)
            0|mm       |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
            0|mm       |     at Module.require (node:internal/modules/cjs/loader:1012:19)
            0|mm       |     at require (node:internal/modules/cjs/helpers:94:18)
            0|mm       |     at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
            0|mm       |     at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31 {
            0|mm       |   code: 'ERR_DLOPEN_FAILED'
            0|mm       | }
            0|mm       | [31.01.2022 10:27.29.440] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
            0|mm       | [31.01.2022 10:27.29.441] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
            
            
            N 1 Reply Last reply Jan 31, 2022, 10:38 AM Reply Quote 0
            • N Offline
              np27np27 @np27np27
              last edited by Jan 31, 2022, 10:38 AM

              Looks like the issue is the PIR sensor module. I believe there is a new PIR module?

              S 1 Reply Last reply Jan 31, 2022, 1:38 PM Reply Quote 0
              • S Away
                sdetweil @np27np27
                last edited by Jan 31, 2022, 1:38 PM

                @np27np27 see this
                https://forum.magicmirror.builders/topic/16074/electron-rebuild-and-magicmirror-v2-18-and-more?_=1643636158919

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                N 1 Reply Last reply Jan 31, 2022, 5:06 PM Reply Quote 0
                • N Offline
                  np27np27 @sdetweil
                  last edited by Jan 31, 2022, 5:06 PM

                  @sdetweil
                  Thanks, installed the newer PIR module from @bugsounet and all seems to work fine now. Thanks for the help 👍🏾

                  1 Reply Last reply Reply Quote 0
                  • S sdetweil referenced this topic on Mar 20, 2022, 6:35 PM
                  • swvalentiS swvalenti referenced this topic on Mar 22, 2022, 9:38 PM
                  • S sdetweil referenced this topic on Mar 22, 2022, 9:51 PM
                  • S sdetweil referenced this topic on Mar 24, 2022, 5:34 PM
                  • S sdetweil referenced this topic on Mar 26, 2022, 4:43 PM
                  • mumblebajM mumblebaj referenced this topic on Mar 30, 2022, 7:04 PM
                  • karsten13K karsten13 referenced this topic on Apr 5, 2022, 10:39 PM
                  • S sdetweil referenced this topic on Apr 6, 2022, 1:15 AM
                  • S sdetweil referenced this topic on Apr 8, 2022, 1:44 PM
                  • S sdetweil referenced this topic on Apr 18, 2022, 3:17 AM
                  • S sdetweil referenced this topic on Apr 19, 2022, 6:54 PM
                  • S sdetweil referenced this topic on Apr 22, 2022, 11:26 AM
                  • mumblebajM mumblebaj referenced this topic on Apr 30, 2022, 10:08 AM
                  • S sdetweil referenced this topic on Apr 30, 2022, 3:33 PM
                  • mumblebajM mumblebaj referenced this topic on May 1, 2022, 10:36 AM
                  • mumblebajM mumblebaj referenced this topic on May 8, 2022, 9:06 AM
                  • S sdetweil referenced this topic on May 8, 2022, 8:30 PM
                  • S sdetweil referenced this topic on May 16, 2022, 5:33 PM
                  • S sdetweil referenced this topic on May 20, 2022, 4:50 PM
                  • L Offline
                    lodevries @sdetweil
                    last edited by May 20, 2022, 4:57 PM

                    @sdetweil Thank you for your instruction.
                    One question, my modules are in the directory:
                    home/pi/MagicMirror/modules/default.
                    You don’t mention the default subdirectory.
                    I presume that my path is okay, because all the modules are located in this subdirectory. Is that okay?
                    Thank you.

                    S 2 Replies Last reply May 20, 2022, 5:14 PM Reply Quote 0
                    • S Away
                      sdetweil @lodevries
                      last edited by sdetweil May 20, 2022, 5:16 PM May 20, 2022, 5:14 PM

                      @lodevries you should never put your extra modules in the default folder, that is reserved for modules MM ships as part of the package

                      see the ‘How to add modules’ link in my signature below

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 5 / 5
                      • First post
                        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