Read the statement by Michael Teeuw here.
module not found error loading module in MagicMirror
-
@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
-
@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 -
Looks like the issue is the PIR sensor module. I believe there is a new PIR module?
-
-
@sdetweil
Thanks, installed the newer PIR module from @bugsounet and all seems to work fine now. Thanks for the help 👍🏾 -
S sdetweil referenced this topic on Mar 20, 2022, 6:35 PM
-
S 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
-
M mumblebaj referenced this topic on Mar 30, 2022, 7:04 PM
-
K 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
-
M mumblebaj referenced this topic on Apr 30, 2022, 10:08 AM
-
S sdetweil referenced this topic on Apr 30, 2022, 3:33 PM
-
M mumblebaj referenced this topic on May 1, 2022, 10:36 AM
-
M 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
-
@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. -
@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
-
@lodevries you can move the out pretty easily
cd modules/default
mv whatever-name …
then the config.js shoudl change from
“module”: “default/whatever_name”
to
“module”:“whatever-name” -
@sdetweil Thank you.
-
S sdetweil referenced this topic on May 20, 2022, 9:07 PM
-
S sdetweil referenced this topic on May 21, 2022, 11:27 AM
-
O oggo referenced this topic on May 22, 2022, 12:25 PM
-
S sdetweil referenced this topic on Jun 19, 2022, 3:59 PM
-
S sdetweil referenced this topic on Jun 23, 2022, 6:27 PM
-
S sdetweil referenced this topic on Jul 5, 2022, 12:38 PM
-
J JerryP referenced this topic on Jul 5, 2022, 8:12 PM
-
S sdetweil referenced this topic on Jul 24, 2022, 4:36 PM
-
S sdetweil referenced this topic on Aug 5, 2022, 3:56 PM
-
S sdetweil referenced this topic on Aug 8, 2022, 12:24 AM
-
S sdetweil referenced this topic on Aug 12, 2022, 8:43 PM
-
S sdetweil referenced this topic on Aug 13, 2022, 11:20 AM
-
S sdetweil referenced this topic on Aug 18, 2022, 7:00 PM
-
S sdetweil referenced this topic on Aug 20, 2022, 1:18 PM
-
S sdetweil referenced this topic on Aug 28, 2022, 11:44 PM
-
S sdetweil referenced this topic on Aug 30, 2022, 9:33 PM
-
S sdetweil referenced this topic on Sep 5, 2022, 12:59 PM
-
S sdetweil referenced this topic on Sep 6, 2022, 2:59 PM
-
S sdetweil referenced this topic on Oct 17, 2022, 11:23 AM
-
S sdetweil referenced this topic on Oct 27, 2022, 9:38 PM
-
S sdetweil referenced this topic on Nov 1, 2022, 11:31 AM
-
S sdetweil referenced this topic on Nov 9, 2022, 12:16 PM
-
S sdetweil referenced this topic on Nov 20, 2022, 7:24 PM
-
S sdetweil referenced this topic on Nov 28, 2022, 2:06 AM
-
S sdetweil referenced this topic on Dec 9, 2022, 12:45 PM
-
S sdetweil referenced this topic on Dec 29, 2022, 2:52 PM
-
S sdetweil referenced this topic on Jan 2, 2023, 3:07 PM
-
S sdetweil referenced this topic on Jan 25, 2023, 11:59 PM
-
L Lazershrimp referenced this topic on Jan 26, 2023, 2:03 PM
-
S sdetweil referenced this topic on Feb 5, 2023, 1:34 PM
-
S sdetweil referenced this topic on Feb 10, 2023, 1:06 PM
-
K karsten13 referenced this topic on Feb 19, 2023, 9:31 PM
-
S sdetweil referenced this topic on Mar 18, 2023, 2:10 AM
-
S sdetweil referenced this topic on Apr 4, 2023, 8:44 PM
-
S sdetweil referenced this topic on May 5, 2023, 11:46 AM
-
S sdetweil referenced this topic on Jun 8, 2023, 7:35 PM
-
S sdetweil referenced this topic on Jun 12, 2023, 6:01 PM
-
S sdetweil referenced this topic on Jun 13, 2023, 5:52 PM
-
S sdetweil referenced this topic on Jul 16, 2023, 6:40 PM
-
S sdetweil referenced this topic on Aug 27, 2023, 4:32 PM
-
S sdetweil referenced this topic on Aug 29, 2023, 3:02 PM
-
S sdetweil referenced this topic on Sep 24, 2023, 1:54 PM
-
S sdetweil referenced this topic on Oct 2, 2023, 1:59 PM
-
S sdetweil referenced this topic on Oct 2, 2023, 7:33 PM
-
S sdetweil referenced this topic on Oct 3, 2023, 12:18 PM
-
S sdetweil referenced this topic on Oct 3, 2023, 1:05 PM
-
S sdetweil referenced this topic on Oct 3, 2023, 6:09 PM
-
S sdetweil referenced this topic on Oct 3, 2023, 6:12 PM
-
K karsten13 referenced this topic on Oct 3, 2023, 7:14 PM
-
B blackbull referenced this topic on Oct 5, 2023, 7:39 PM
-
S sdetweil referenced this topic on Oct 6, 2023, 12:33 PM
-
S sdetweil referenced this topic on Oct 6, 2023, 1:31 PM
-
S sdetweil referenced this topic on Oct 8, 2023, 12:13 PM
-
S sdetweil referenced this topic on Oct 10, 2023, 7:18 PM
-
S sdetweil referenced this topic on Oct 12, 2023, 3:46 PM
-
S sdetweil referenced this topic on Nov 5, 2023, 3:31 PM
-
S sdetweil referenced this topic on Nov 17, 2023, 9:32 PM
-
S sdetweil referenced this topic on Dec 28, 2023, 10:47 PM
-
S sdetweil referenced this topic on Jan 3, 2024, 10:33 PM
-
S sdetweil referenced this topic on Jan 8, 2024, 11:51 AM
-
S sdetweil referenced this topic on Apr 20, 2024, 1:33 PM
-
S sdetweil referenced this topic on Apr 30, 2024, 2:20 AM
-
S sdetweil referenced this topic on May 12, 2024, 3:26 PM
-
S sdetweil referenced this topic on May 29, 2024, 2:38 PM
-
S sdetweil referenced this topic on Jun 1, 2024, 11:17 PM
-
Thank you so much @sdetweil. I tried to update a module, ran out of memory (8GB SD card install), had to upgrade then got the dreaded black screen. Your first post in this thread solved it.
I’ve written a couple of modules, mainly by using other people’s code as a base and then changing the functionality, only because my coding is basic.
So… one module uses request in the node helper. You’ve already helped someone install it, so thanks for that. The code is
}
request(options, function (error, response, body) {
if (!error && response.statusCode == 200) {
var result = JSON.parse(body)
// console.log(response.statusCode + result); // uncomment to see in terminal
self.sendSocketNotification(‘TIDAL_RESULT’, result)
What should I be using instead of “request”?Another module I use is calendarweek. Again its broken through the deprecated function “valid url” and “rrule”
createFetcher: function(url, fetchInterval, excludedEvents, maximumEntries, maximumNumberOfDays, auth) {
var self = this;
if (!validUrl.isUri(url)) {
self.sendSocketNotification(“INCORRECT_URL”, {url: url});
return;
}
and
if (typeof event.rrule !== “undefined” && event.rrule !== null && !isFacebookBirthday) {
var rule = event.rrule;
var addedEvents = 0;// can cause problems with e.g. birthdays before 1900 if(rule.options && rule.origOptions && rule.origOptions.dtstart && rule.origOptions.dtstart.getFullYear() < 1900 || rule.options && rule.options.dtstart && rule.options.dtstart.getFullYear() < 1900){ rule.origOptions.dtstart.setYear(1900); rule.options.dtstart.setYear(1900); } // For recurring events, get the set of start dates that fall within the range // of dates we"re looking for.</code>Is there an elegant solution other than pulling the deprecated libraries?
