<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[module not found error loading module in MagicMirror]]></title><description><![CDATA[<p dir="auto">the message module not found has nothing to do with MagicMirror ‘modules’ but a library USED by a MagicMirror module. sadly we cannot change or intercept the message</p>
<p dir="auto">a typical  error</p>
<blockquote>
<p dir="auto">Cannot find module ‘request’</p>
</blockquote>
<p dir="auto">In recent mm releases we have removed libraries that are discontinued ( aka deprecated).</p>
<p dir="auto">many mm modules used these but didn’t document it.  so they fail</p>
<p dir="auto">to fix this you need to install the <strong>library in the module folder</strong>,<br />
so do</p>
<pre><code>cd ~/MagicMirror/modules

cd modulename (where modulename is the module having the error)
</code></pre>
<p dir="auto">once there, do</p>
<pre><code>ls package.json
</code></pre>
<p dir="auto">if the <strong>module</strong> does NOT provide  that file  ( ls reponse is ‘No such file or directory’)  then do</p>
<pre><code>npm init -y
</code></pre>
<p dir="auto"><strong>NEVER EVER do this in the MagicMirror folder</strong><br />
if you do/did, then do<br />
git checkout package.json</p>
<p dir="auto">then regardless (in the module folder)  do</p>
<pre><code>npm install ???
</code></pre>
<p dir="auto">where ??? is the library noted in the message Cannot find module ‘???’</p>
<p dir="auto">| in the example message above,  ??? is request</p>
<p dir="auto">to find this message, look in the output of npm start. or if  you use pm2 to launch mm  do<br />
pm2 logs --lines=50</p>
]]></description><link>https://forum.magicmirror.builders/topic/15778/module-not-found-error-loading-module-in-magicmirror</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 02:54:27 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15778.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Oct 2021 12:31:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Thu, 27 Jun 2024 10:22:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/captsi" aria-label="Profile: captsi">@<bdi>captsi</bdi></a> there is no ‘no work’ solution.</p>
<p dir="auto">built in fetch replaces request</p>
<p dir="auto">I don’t know on the others.</p>
]]></description><link>https://forum.magicmirror.builders/post/118511</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118511</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 27 Jun 2024 10:22:02 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Thu, 27 Jun 2024 07:05:12 GMT]]></title><description><![CDATA[<p dir="auto">Thank you so much <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>. 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.</p>
<p dir="auto">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.</p>
<p dir="auto">So… one module uses request in the node helper. You’ve already helped someone install it, so thanks for that. The code is<br />
<code>  }<br />
request(options, function (error, response, body) {<br />
if (!error &amp;&amp; response.statusCode == 200) {<br />
var result = JSON.parse(body)<br />
//      console.log(response.statusCode + result);    		// uncomment to see in terminal<br />
self.sendSocketNotification(‘TIDAL_RESULT’, result)</code><br />
What should I be using instead of “request”?</p>
<p dir="auto">Another module I use is calendarweek. Again its broken through the deprecated function “valid url” and “rrule”</p>
<p dir="auto"><code>	createFetcher: function(url, fetchInterval, excludedEvents, maximumEntries, maximumNumberOfDays, auth) {<br />
var self = this;<br />
if (!validUrl.isUri(url)) {<br />
self.sendSocketNotification(“INCORRECT_URL”, {url: url});<br />
return;<br />
}<br />
</code></p>
<p dir="auto">and</p>
<p dir="auto"><code>if (typeof event.rrule !== “undefined” &amp;&amp; event.rrule !== null &amp;&amp; !isFacebookBirthday) {<br />
var rule = event.rrule;<br />
var addedEvents = 0;</code></p>
<pre><code>					// can cause problems with e.g. birthdays before 1900
					if(rule.options &amp;&amp; rule.origOptions &amp;&amp; rule.origOptions.dtstart &amp;&amp; rule.origOptions.dtstart.getFullYear() &lt; 1900 ||
						rule.options &amp;&amp; rule.options.dtstart &amp;&amp; rule.options.dtstart.getFullYear() &lt; 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.&lt;/code&gt;
</code></pre>
<p dir="auto">Is there an elegant solution other than pulling the deprecated libraries?</p>
]]></description><link>https://forum.magicmirror.builders/post/118508</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118508</guid><dc:creator><![CDATA[captsi]]></dc:creator><pubDate>Thu, 27 Jun 2024 07:05:12 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Fri, 20 May 2022 17:17:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Thank you.</p>
]]></description><link>https://forum.magicmirror.builders/post/101961</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/101961</guid><dc:creator><![CDATA[lodevries]]></dc:creator><pubDate>Fri, 20 May 2022 17:17:22 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Fri, 20 May 2022 17:16:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lodevries" aria-label="Profile: lodevries">@<bdi>lodevries</bdi></a> you can move the out pretty easily</p>
<p dir="auto">cd modules/default</p>
<p dir="auto">mv    whatever-name …</p>
<p dir="auto">then the config.js shoudl change from</p>
<p dir="auto">“module”: “default/whatever_name”<br />
to<br />
“module”:“whatever-name”</p>
]]></description><link>https://forum.magicmirror.builders/post/101960</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/101960</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 20 May 2022 17:16:22 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Fri, 20 May 2022 17:16:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lodevries" aria-label="Profile: lodevries">@<bdi>lodevries</bdi></a> you should never put your extra  modules in the default folder, that is reserved for modules MM ships as part of the package</p>
<p dir="auto">see the ‘How to add modules’  link in my signature below</p>
]]></description><link>https://forum.magicmirror.builders/post/101959</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/101959</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 20 May 2022 17:16:50 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Fri, 20 May 2022 16:57:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Thank you for your instruction.<br />
One question, my modules are in the directory:<br />
home/pi/MagicMirror/modules/default.<br />
You don’t mention the default subdirectory.<br />
I presume that my path is okay, because all the modules are located in this subdirectory. Is that okay?<br />
Thank you.</p>
]]></description><link>https://forum.magicmirror.builders/post/101958</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/101958</guid><dc:creator><![CDATA[lodevries]]></dc:creator><pubDate>Fri, 20 May 2022 16:57:59 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Mon, 31 Jan 2022 17:06:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Thanks, installed the newer PIR module from <a class="plugin-mentions-user plugin-mentions-a" href="/user/bugsounet" aria-label="Profile: bugsounet">@<bdi>bugsounet</bdi></a> and all seems to work fine now. Thanks for the help 👍🏾</p>
]]></description><link>https://forum.magicmirror.builders/post/99225</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/99225</guid><dc:creator><![CDATA[np27np27]]></dc:creator><pubDate>Mon, 31 Jan 2022 17:06:04 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Mon, 31 Jan 2022 13:38:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/np27np27" aria-label="Profile: np27np27">@<bdi>np27np27</bdi></a> see this<br />
<a href="https://forum.magicmirror.builders/topic/16074/electron-rebuild-and-magicmirror-v2-18-and-more?_=1643636158919">https://forum.magicmirror.builders/topic/16074/electron-rebuild-and-magicmirror-v2-18-and-more?_=1643636158919</a></p>
]]></description><link>https://forum.magicmirror.builders/post/99212</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/99212</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 31 Jan 2022 13:38:22 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Mon, 31 Jan 2022 10:38:06 GMT]]></title><description><![CDATA[<p dir="auto">Looks like the issue is the PIR sensor module. I believe there is a new PIR module?</p>
]]></description><link>https://forum.magicmirror.builders/post/99206</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/99206</guid><dc:creator><![CDATA[np27np27]]></dc:creator><pubDate>Mon, 31 Jan 2022 10:38:06 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Mon, 31 Jan 2022 10:31:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
hi, im getting this error in the pm2 log:</p>
<pre><code>
/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

</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/99205</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/99205</guid><dc:creator><![CDATA[np27np27]]></dc:creator><pubDate>Mon, 31 Jan 2022 10:31:39 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Mon, 31 Jan 2022 02:31:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/np27np27" aria-label="Profile: np27np27">@<bdi>np27np27</bdi></a> want to see installers/upgrade.log</p>
<p dir="auto">same process as listed in post 1</p>
<p dir="auto">‘request’ is NOT the only library missing</p>
<p dir="auto">the messages tell you what needs to be added</p>
]]></description><link>https://forum.magicmirror.builders/post/99184</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/99184</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 31 Jan 2022 02:31:27 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Sun, 30 Jan 2022 19:30:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
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?<br />
How to I go about trying to troubleshoot this ? Any help is much appreciated!</p>
]]></description><link>https://forum.magicmirror.builders/post/99180</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/99180</guid><dc:creator><![CDATA[np27np27]]></dc:creator><pubDate>Sun, 30 Jan 2022 19:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Sun, 09 Jan 2022 21:43:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/darrenhill" aria-label="Profile: darrenhill">@<bdi>darrenhill</bdi></a> cool.  thx for the feedback</p>
]]></description><link>https://forum.magicmirror.builders/post/98317</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98317</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 09 Jan 2022 21:43:37 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Sun, 09 Jan 2022 21:41:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> - 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).</p>
<p dir="auto">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.</p>
<p dir="auto">All is working fine after the update though, so no problems.</p>
]]></description><link>https://forum.magicmirror.builders/post/98316</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98316</guid><dc:creator><![CDATA[DarrenHill]]></dc:creator><pubDate>Sun, 09 Jan 2022 21:41:20 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Sun, 09 Jan 2022 15:38:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/darrenhill" aria-label="Profile: darrenhill">@<bdi>darrenhill</bdi></a> upgrade is for MM, not node, (altho it might do it, works sometimes, need to move to n) …</p>
<p dir="auto">easiest is using the node version of nvm,  called n</p>
<p dir="auto">do</p>
<pre><code>sudo npm i n -g
PATH="$PATH"
n 16 
</code></pre>
<p dir="auto">then node 16 will be installed…</p>
<p dir="auto">note that you will have to do another npm install in the mm (and maybe module folders)<br />
this the upgrade would do  (with force instead of apply)</p>
<p dir="auto">n also allows you to SWITCH versions, or use a particular version for ONE app…<br />
see n --help</p>
]]></description><link>https://forum.magicmirror.builders/post/98300</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98300</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 09 Jan 2022 15:38:29 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Sun, 09 Jan 2022 14:44:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> OK, thanks for the pointer.</p>
<p dir="auto">Always kinda worried when that style of message pops up, for security and suchlike.</p>
<p dir="auto">I see from the update that my node is very much out of date, so now just backing things up before setting the update script onto it to try and bring that up too.</p>
]]></description><link>https://forum.magicmirror.builders/post/98296</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98296</guid><dc:creator><![CDATA[DarrenHill]]></dc:creator><pubDate>Sun, 09 Jan 2022 14:44:28 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Sun, 09 Jan 2022 14:10:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/darrenhill" aria-label="Profile: darrenhill">@<bdi>darrenhill</bdi></a> said in <a href="/post/98294">fix for black screen in 2.16 and later</a>:</p>
<blockquote>
<p dir="auto">with an audit fix afterwards</p>
</blockquote>
<p dir="auto">don’t do those…  many times leave more trouble than they fix…<br />
we can’t suppress the audit warning message</p>
]]></description><link>https://forum.magicmirror.builders/post/98295</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98295</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 09 Jan 2022 14:10:28 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Sun, 09 Jan 2022 13:46:12 GMT]]></title><description><![CDATA[<p dir="auto">Just wanted to say thanks for the fix here.</p>
<p dir="auto">Did an update and hit exactly this with MMM-GmailFeed and the request module.</p>
<p dir="auto">Installed it back (with an audit fix afterwards) and now all up and running again :)</p>
]]></description><link>https://forum.magicmirror.builders/post/98294</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98294</guid><dc:creator><![CDATA[DarrenHill]]></dc:creator><pubDate>Sun, 09 Jan 2022 13:46:12 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Tue, 04 Jan 2022 00:45:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lmac" aria-label="Profile: lmac">@<bdi>lmac</bdi></a> well  you ran it in the wrong place… oops</p>
<p dir="auto">do this</p>
<pre><code>cd ~/MagicMirror
rm -rf node_modules
rm package-lock.json
npm install
</code></pre>
<p dir="auto">then for whatever module was causing problem</p>
<pre><code>cd ~/MagicMirror/modules/modulename
</code></pre>
<p dir="auto">do the same last 3 steps as above<br />
AND THEN</p>
<pre><code>npm install request --save
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/98043</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98043</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 04 Jan 2022 00:45:12 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Tue, 04 Jan 2022 00:28:52 GMT]]></title><description><![CDATA[<p dir="auto">I ran the command as recommended (request was my error as well). I now have this error and MM will not load:</p>
<p dir="auto">A JavaScript error occurred in the main process<br />
Uncaught Exception:<br />
Error: Cannot find module ‘logger’<br />
Require stack:</p>
<ul>
<li>/home/pi/MagicMirror/js/app.js</li>
<li>/home/pi/MagicMirror/js/electron.js</li>
<li>/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js</li>
<li>at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)<br />
at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)<br />
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)<br />
at Module._load (node:internal/modules/cjs/loader:785:27)<br />
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)<br />
at Module.require (node:internal/modules/cjs/loader:1012:19)<br />
at require (node:internal/modules/cjs/helpers:94:18)<br />
at Object. (/home/pi/MagicMirror/js/app.js:13:13)<br />
at Module._compile (node:internal/modules/cjs/loader:1116:14)<br />
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1169:10)</li>
</ul>
]]></description><link>https://forum.magicmirror.builders/post/98042</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98042</guid><dc:creator><![CDATA[LMAC]]></dc:creator><pubDate>Tue, 04 Jan 2022 00:28:52 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Fri, 24 Dec 2021 13:10:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> thank you…it´s working now.</p>
]]></description><link>https://forum.magicmirror.builders/post/97769</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97769</guid><dc:creator><![CDATA[kusselin]]></dc:creator><pubDate>Fri, 24 Dec 2021 13:10:53 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Mon, 20 Dec 2021 18:35:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kusselin" aria-label="Profile: kusselin">@<bdi>kusselin</bdi></a> find the messages output by mm</p>
<p dir="auto">search the messages for one like shown (without the ???)</p>
<p dir="auto">find the name of the library in quotes (now u have ???)</p>
<p dir="auto">issue a command using that info</p>
]]></description><link>https://forum.magicmirror.builders/post/97661</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97661</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 20 Dec 2021 18:35:57 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Mon, 20 Dec 2021 18:35:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Hello everyone, I haven’t been here for a while and my Magic Mirror was switched off…after I switched it on again I made updates to the modules via remote…but I still don’t have any display for some modules like Tankerkönig…when I start the Mirror it always says “Modules cannot be loaded”.</p>
<p dir="auto">Now, as described by sdetweil, there are commands that you have to execute in the modules in question…but unfortunately I haven’t quite understood how I have to do this in the right order?</p>
<p dir="auto">It would be really nice if you could explain to me how I have to proceed in order to display the modules again, such as Tankerkönig or mmm-fuel.</p>
<p dir="auto">Thank you very much in advance for your help.</p>
<p dir="auto">Greetings</p>
<p dir="auto">Kussel</p>
<p dir="auto">i don´t understand that here:</p>
<pre><code>npm install ???

where ??? is the library noted in the message Cannot find module ‘???’

| in the example message above, ??? is request

to find this message, look in the output of npm start. or if you use pm2 to launch mm do
pm2 logs --lines=50
</code></pre>
<p dir="auto">how do I proceed exactly?</p>
<pre><code>pi@raspberrypi:~/MagicMirror/modules/MMM-Tankerkoenig $ npm init -y
Wrote to /home/pi/MagicMirror/modules/MMM-Tankerkoenig/package.json:

{
  "name": "MMM-Tankerkoenig",
  "version": "1.0.0",
  "description": "This is a module for the [MagicMirror²](https://github.com/MichMich/MagicMirror/) which displays a fuel prices from [Tankerkoenig](https://www.tankerkoenig.de/).",
  "main": "MMM-Tankerkoenig.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/terenc3/MMM-Tankerkoenig.git"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/terenc3/MMM-Tankerkoenig/issues"
  },
  "homepage": "https://github.com/terenc3/MMM-Tankerkoenig#readme"

</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/97659</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97659</guid><dc:creator><![CDATA[kusselin]]></dc:creator><pubDate>Mon, 20 Dec 2021 18:35:34 GMT</pubDate></item><item><title><![CDATA[Reply to module not found error loading module in MagicMirror on Fri, 17 Dec 2021 17:58:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>  fiddled all day today and figured out<br />
it turned out I did not install or update the dependencies inside the module</p>
<p dir="auto">sorry, thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/97595</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97595</guid><dc:creator><![CDATA[Arena]]></dc:creator><pubDate>Fri, 17 Dec 2021 17:58:02 GMT</pubDate></item></channel></rss>