<?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[MMM-ModuleToggleButton suddenly broken?]]></title><description><![CDATA[<p dir="auto">Hello everyone.<br />
I had installed the above module and had no problems with it. I then had to reset the Raspi because of another problem (who knows, maybe the problems are linked, the file system was suddenly broken and behaved strangely).<br />
Anyway, I reinstalled all my modules, but the ModuleToggle doesn’t work anymore. The MM doesn’t even boot when the module is set to active.</p>
<p dir="auto">When installing dependencies I get the following message:</p>
<pre><code>philie@magicmirror:~/MagicMirror/modules/MMM-ModuleToggleButton $ sudo npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: MMM-ModuleToggleButton@1.0.0
npm ERR! Found: stylelint@15.11.0
npm ERR! node_modules/stylelint
npm ERR!   peer stylelint@"15.x" from grunt-stylelint@0.19.0
npm ERR!   node_modules/grunt-stylelint
npm ERR!     dev grunt-stylelint@"latest" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev stylelint-config-standard@"latest" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: stylelint@16.2.1
npm ERR! node_modules/stylelint
npm ERR!   peer stylelint@"^16.1.0" from stylelint-config-standard@36.0.0
npm ERR!   node_modules/stylelint-config-standard
npm ERR!     dev stylelint-config-standard@"latest" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /root/.npm/_logs/2024-02-13T20_26_05_190Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-02-13T20_26_05_190Z-debug-0.log
philie@magicmirror:~/MagicMirror/modules/MMM-ModuleToggleButton $
</code></pre>
<p dir="auto">The pm2 log gives the following message when trying to start MM:</p>
<pre><code>/home/philie/.pm2/logs/MagicMirror-out.log last 15 lines:
0|MagicMir | [13.02.2024 22:40.42.417] [LOG]   Loading module helpers ...
0|MagicMir | [13.02.2024 22:40.42.421] [LOG]   No helper found for module: alert.
0|MagicMir | [13.02.2024 22:40.42.446] [LOG]   Initializing new module helper ...
0|MagicMir | [13.02.2024 22:40.42.448] [LOG]   Module helper loaded: updatenotification
0|MagicMir | [13.02.2024 22:40.42.450] [LOG]   No helper found for module: clock.
0|MagicMir | [13.02.2024 22:40.42.920] [LOG]   Initializing new module helper ...
0|MagicMir | [13.02.2024 22:40.42.922] [LOG]   Module helper loaded: calendar
0|MagicMir |
0|MagicMir | &gt; magicmirror@2.26.0 start
0|MagicMir | &gt; DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
0|MagicMir |
0|MagicMir | [13.02.2024 22:44.30.792] [LOG]   Starting MagicMirror: v2.26.0
0|MagicMir | [13.02.2024 22:44.30.817] [LOG]   Loading config ...
0|MagicMir | [13.02.2024 22:44.30.824] [DEBUG] config template file not exists, no envsubst
0|MagicMir | [13.02.2024 22:44.30.832] [LOG]   Loading module helpers ...

/home/philie/.pm2/logs/MagicMirror-error.log last 15 lines:
0|MagicMir |     at Module._compile (node:internal/modules/cjs/loader:1271:14)
0|MagicMir |     at Object..js (node:internal/modules/cjs/loader:1326:10)
0|MagicMir |     at Module.load (node:internal/modules/cjs/loader:1126:32)
0|MagicMir |     at node:internal/modules/cjs/loader:967:12
0|MagicMir |     at Function._load (node:electron/js2c/node_init:2:13357)
0|MagicMir | (Use `electron --trace-warnings ...` to show where the warning was created)
0|MagicMir | [13.02.2024 22:44.30.892] [ERROR] (node:4146) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
0|MagicMir | Warning: vkCreateInstance: Found no drivers!
0|MagicMir | Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
0|MagicMir |     at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
0|MagicMir |     at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
0|MagicMir |     at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
0|MagicMir |     at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
0|MagicMir |     at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
0|MagicMir |

</code></pre>
<p dir="auto">I have already installed ‘onoff’ manually. That didn’t help either. Does anyone know how to interpret the error message?</p>
<p dir="auto">Many thanks in advance</p>
]]></description><link>https://forum.magicmirror.builders/topic/18509/mmm-moduletogglebutton-suddenly-broken</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 22:07:09 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18509.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Feb 2024 22:00:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Thu, 15 Feb 2024 14:14:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/philie" aria-label="Profile: philie">@<bdi>philie</bdi></a> ok, two things…</p>
<p dir="auto">1 lets fix the epoll problem.<br />
it seems that was installed accidentally in the wrong place as its outside the MagicMirror folder</p>
<pre><code class="language-text">/home/philie/node_modules/epoll
</code></pre>
<p dir="auto">do</p>
<pre><code class="language-sh">cd ~
rm -rf node_modules/epoll
</code></pre>
<p dir="auto">2  use my fork of the MMM-ModuleToggleButton module which fixes the install<br />
<a href="https://github.com/sdetweil/MMM-ModuleToggleButton" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MMM-ModuleToggleButton</a></p>
<p dir="auto">remove the old module folder, clone my fork and npm install it</p>
<pre><code class="language-sh">cd ~/MagicMirror/modules
rm -rf MMM-ModuleToggleButton
git clone https://github.com/sdetweil/MMM-ModuleToggleButton
cd MMM-ModuleToggleButton
npm install
</code></pre>
<p dir="auto">let me know</p>
]]></description><link>https://forum.magicmirror.builders/post/115626</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/115626</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 15 Feb 2024 14:14:14 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Sun, 14 Jul 2024 15:28:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/philie" aria-label="Profile: philie">@<bdi>philie</bdi></a> in general for MM there is NEVER a need for sudo… it will cause problems and LATER you will need to user sudo AGAIN…</p>
<p dir="auto">the SYSTEM  commands may need to use sudo…</p>
<p dir="auto">apt update, upgrade, editing files in the /etc folder<br />
because THOSE are owned by the system and should NOT be editable by a user<br />
(they are protected on purpose)</p>
<p dir="auto">the fact that the postinstall script failed is probably because you did sudo before and now the npm files are owned by root instead of user…  (see line 1 above)</p>
]]></description><link>https://forum.magicmirror.builders/post/118854</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118854</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 14 Jul 2024 15:28:12 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Sun, 14 Jul 2024 15:14:19 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 />
Thank you very much! This did the trick. concerning sudo… it’s sometimes confusing because often I get the message, I do not have enough rights for some commands…</p>
]]></description><link>https://forum.magicmirror.builders/post/118853</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118853</guid><dc:creator><![CDATA[philie]]></dc:creator><pubDate>Sun, 14 Jul 2024 15:14:19 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Sun, 14 Jul 2024 13:53:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/philie" aria-label="Profile: philie">@<bdi>philie</bdi></a> never use sudo…</p>
<p dir="auto">the electron-rebuild command has to be done from inside the module folder(togglebuttons), not the MagicMirror folder</p>
]]></description><link>https://forum.magicmirror.builders/post/118850</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118850</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 14 Jul 2024 13:53:21 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Sun, 14 Jul 2024 13:46:16 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 />
Thank you Sam!<br />
the edited script did not work for me but the commands worked. so I executed them manually:</p>
<pre><code>philie@magicmirror:~/MagicMirror $ sudo npm install @electron/rebuild

added 88 packages, and removed 74 packages in 25s

220 packages are looking for funding
  run `npm fund` for details
philie@magicmirror:~/MagicMirror $ node_modules/.bin/electron-rebuild
✔ Rebuild Complete
philie@magicmirror:~/MagicMirror $
</code></pre>
<p dir="auto">unfortunately the next issue is already on the dorstep:</p>
<pre><code>message:14:59:24.366] [31m[ERROR][39m [31m(node:2306) UnhandledPromiseRejectionWarning: Error: The module '/home/philie/MagicMirror/modules/MMM-ModuleToggleButton/node_modules/epoll/build/Release/epoll.node'[39m,
</code></pre>
<p dir="auto">So it looks like the thing about epoll is not yet solved…</p>
]]></description><link>https://forum.magicmirror.builders/post/118849</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118849</guid><dc:creator><![CDATA[philie]]></dc:creator><pubDate>Sun, 14 Jul 2024 13:46:16 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Sun, 14 Jul 2024 11:48:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/philie" aria-label="Profile: philie">@<bdi>philie</bdi></a> I see the postinstall script needed an update</p>
<p dir="auto">do a<br />
git pull<br />
in the module folder<br />
then<br />
npm install again</p>
]]></description><link>https://forum.magicmirror.builders/post/118848</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118848</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 14 Jul 2024 11:48:32 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Sun, 14 Jul 2024 11:42:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/philie" aria-label="Profile: philie">@<bdi>philie</bdi></a> can you dump out the postinstall<br />
file in the module folder…<br />
it seems to be missing a step</p>
]]></description><link>https://forum.magicmirror.builders/post/118847</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118847</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 14 Jul 2024 11:42:16 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Sun, 14 Jul 2024 11:36:41 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> said in <a href="/post/115626">MMM-ModuleToggleButton suddenly broken?</a>:</p>
<blockquote>
<p dir="auto">cd MMM-ModuleToggleButton</p>
</blockquote>
<p dir="auto">Hey there, it’s me again with the same problem…</p>
<p dir="auto">I did the MM Update to 2.28.0 by Script. Like usually some things are broken after and I did npm install and npm rebuild in the MM rootdirectory. It installed some stuff and looked good so far.</p>
<p dir="auto">But the module MMM-ModuleToggleButton stays broken like after every update.<br />
It has again something to do with electron, I tried to reinstall electron, but have no success…</p>
<p dir="auto">The output:</p>
<pre><code>philie@magicmirror:~/MagicMirror/modules $ git clone https://github.com/sdetweil/MMM-ModuleToggleButton
Cloning into 'MMM-ModuleToggleButton'...
remote: Enumerating objects: 44, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 44 (delta 0), reused 2 (delta 0), pack-reused 40
Receiving objects: 100% (44/44), 10.44 KiB | 1.30 MiB/s, done.
Resolving deltas: 100% (17/17), done.
philie@magicmirror:~/MagicMirror/modules $ cd MMM-ModuleToggleButton
philie@magicmirror:~/MagicMirror/modules/MMM-ModuleToggleButton $ npm install

&gt; MMM-ModuleToggleButton@1.0.0 postinstall
&gt; ./postinstall

/home/philie/MagicMirror/modules/MMM-ModuleToggleButton
./postinstall: line 8: ../../node_modules/.bin/electron-rebuild: No such file or directory
npm error code 127
npm error path /home/philie/MagicMirror/modules/MMM-ModuleToggleButton
npm error command failed
npm error command sh -c ./postinstall
npm error A complete log of this run can be found in: /home/philie/.npm/_logs/2024-07-14T11_29_32_616Z-debug-0.log
philie@magicmirror:~/MagicMirror/modules/MMM-ModuleToggleButton $
</code></pre>
<p dir="auto">so, electron-rebuild in node_modules seems to be missing…</p>
<p dir="auto">Indeed:</p>
<pre><code>philie@magicmirror:~/MagicMirror/node_modules $ cd electron
philie@magicmirror:~/MagicMirror/node_modules/electron $ ll
total 1068
drwxr-xr-x   4 root   root     4096 Jul 14 13:20 .
drwxr-xr-x 679 philie philie  28672 Jul 14 13:10 ..
-rw-r--r--   1 root   root     8126 Jul 14 12:46 checksums.json
-rwxr-xr-x   1 root   root      612 Jul 14 12:46 cli.js
drwxr-xr-x   4 root   root     4096 Jul 14 12:48 dist
-rw-r--r--   1 root   root   972754 Jul 14 12:46 electron.d.ts
-rw-r--r--   1 root   root      659 Jul 14 12:46 index.js
-rw-r--r--   1 root   root     3178 Jul 14 12:46 install.js
-rw-r--r--   1 root   root     1096 Jul 14 12:46 LICENSE
drwxr-xr-x  70 root   root     4096 Jul 14 13:20 node_modules
-rw-r--r--   1 root   root      586 Jul 14 12:46 package.json
-rw-r--r--   1 root   root    31409 Jul 14 13:20 package-lock.json
-rw-r--r--   1 root   root        8 Jul 14 12:48 path.txt
-rw-r--r--   1 root   root     5370 Jul 14 12:46 README.md
</code></pre>
<p dir="auto">I did already the steps from last time (therefore I answer in this old topic) but no luck this time.<br />
What can I do?</p>
<p dir="auto">Thank you,<br />
philie</p>
]]></description><link>https://forum.magicmirror.builders/post/118846</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118846</guid><dc:creator><![CDATA[philie]]></dc:creator><pubDate>Sun, 14 Jul 2024 11:36:41 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Thu, 15 Feb 2024 15:56:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/philie" aria-label="Profile: philie">@<bdi>philie</bdi></a> awesome!!!</p>
]]></description><link>https://forum.magicmirror.builders/post/115635</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/115635</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 15 Feb 2024 15:56:49 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Thu, 15 Feb 2024 15:53:33 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 />
Great! Module ist now installed fine and the test-confg (just the toggle module and another one to toggle activated) is working!</p>
<p dir="auto">Very much appreciated what you are doing for this community! Thank you!</p>
]]></description><link>https://forum.magicmirror.builders/post/115634</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/115634</guid><dc:creator><![CDATA[philie]]></dc:creator><pubDate>Thu, 15 Feb 2024 15:53:33 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Thu, 15 Feb 2024 14:14:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/philie" aria-label="Profile: philie">@<bdi>philie</bdi></a> ok, two things…</p>
<p dir="auto">1 lets fix the epoll problem.<br />
it seems that was installed accidentally in the wrong place as its outside the MagicMirror folder</p>
<pre><code class="language-text">/home/philie/node_modules/epoll
</code></pre>
<p dir="auto">do</p>
<pre><code class="language-sh">cd ~
rm -rf node_modules/epoll
</code></pre>
<p dir="auto">2  use my fork of the MMM-ModuleToggleButton module which fixes the install<br />
<a href="https://github.com/sdetweil/MMM-ModuleToggleButton" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MMM-ModuleToggleButton</a></p>
<p dir="auto">remove the old module folder, clone my fork and npm install it</p>
<pre><code class="language-sh">cd ~/MagicMirror/modules
rm -rf MMM-ModuleToggleButton
git clone https://github.com/sdetweil/MMM-ModuleToggleButton
cd MMM-ModuleToggleButton
npm install
</code></pre>
<p dir="auto">let me know</p>
]]></description><link>https://forum.magicmirror.builders/post/115626</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/115626</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 15 Feb 2024 14:14:14 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Thu, 15 Feb 2024 10:51:26 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 />
Hey Sam<br />
Thank you very much.<br />
To keep it simple, I installed your MMM-Buttons. The postinstall Script did run and I got positive Feedback regarding rebuilding Electron.</p>
<p dir="auto">When i start MM after, I get still the same Error as before…</p>
<pre><code>philie@magicmirror:~/MagicMirror $ cat somfile.txt

&gt; magicmirror@2.26.0 start
&gt; DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[15.02.2024 11:40.59.323] [LOG]   Starting MagicMirror: v2.26.0
[15.02.2024 11:40.59.334] [LOG]   Loading config ...
[15.02.2024 11:40.59.345] [DEBUG] config template file not exists, no envsubst
[15.02.2024 11:40.59.353] [LOG]   Loading module helpers ...
[15.02.2024 11:40.59.410] [ERROR] (node:1536) UnhandledPromiseRejectionWarning: Error: The module '/home/philie/node_modules/epoll/build/Release/epoll.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 115. This version of Node.js requires
NODE_MODULE_VERSION 118. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.func [as dlopen] (node:electron/js2c/node_init:2:2107)
    at Object.&lt;anonymous&gt; (node:internal/modules/cjs/loader:1356:18)
    at Object.func [as .node] (node:electron/js2c/node_init:2:2107)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function._load (node:electron/js2c/node_init:2:13357)
    at Module.require (node:internal/modules/cjs/loader:1150:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at bindings (/home/philie/node_modules/bindings/bindings.js:112:48)
    at /home/philie/node_modules/epoll/epoll.js:7:31
    at Object.&lt;anonymous&gt; (/home/philie/node_modules/epoll/epoll.js:15:3)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Object..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function._load (node:electron/js2c/node_init:2:13357)
(Use `electron --trace-warnings ...` to show where the warning was created)
[15.02.2024 11:40.59.412] [ERROR] (node:1536) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
/home/philie/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/115624</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/115624</guid><dc:creator><![CDATA[philie]]></dc:creator><pubDate>Thu, 15 Feb 2024 10:51:26 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Wed, 14 Feb 2024 22:36:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/philie" aria-label="Profile: philie">@<bdi>philie</bdi></a> yep, the tools aren’t installed<br />
and it needs more changes</p>
<p dir="auto">I won’t be able to get to it til later tonight<br />
but if you look at my fork for MMM-Buttons<br />
<a href="https://github.com/sdetweil/MMM-Buttons" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MMM-Buttons</a></p>
<p dir="auto">I added a postinstall action in package json and added the postinstall  script</p>
<p dir="auto">you can run the postinstall without npm</p>
<pre><code class="language-sh">./postinstall
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/115621</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/115621</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 14 Feb 2024 22:36:45 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Wed, 14 Feb 2024 20:22:36 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 />
Hey Sam,<br />
thank you for your help.</p>
<p dir="auto">Here is the demanded output:</p>
<pre><code>philie@magicmirror:~/MagicMirror $ npm start &gt; debugger_log.txt 2&gt;&amp;1

philie@magicmirror:~/MagicMirror $ cat debugger_log.txt

&gt; magicmirror@2.26.0 start
&gt; DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[14.02.2024 21:14.35.291] [LOG]   Starting MagicMirror: v2.26.0
[14.02.2024 21:14.35.303] [LOG]   Loading config ...
[14.02.2024 21:14.35.315] [DEBUG] config template file not exists, no envsubst
[14.02.2024 21:14.35.322] [LOG]   Loading module helpers ...
[14.02.2024 21:14.35.380] [ERROR] (node:20831) UnhandledPromiseRejectionWarning: Error: The module '/home/philie/node_modules/epoll/build/Release/epoll.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 115. This version of Node.js requires
NODE_MODULE_VERSION 118. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.func [as dlopen] (node:electron/js2c/node_init:2:2107)
    at Object.&lt;anonymous&gt; (node:internal/modules/cjs/loader:1356:18)
    at Object.func [as .node] (node:electron/js2c/node_init:2:2107)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function._load (node:electron/js2c/node_init:2:13357)
    at Module.require (node:internal/modules/cjs/loader:1150:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at bindings (/home/philie/node_modules/bindings/bindings.js:112:48)
    at /home/philie/node_modules/epoll/epoll.js:7:31
    at Object.&lt;anonymous&gt; (/home/philie/node_modules/epoll/epoll.js:15:3)
    at Module._compile (node:internal/modules/cjs/loader:1271:14)
    at Object..js (node:internal/modules/cjs/loader:1326:10)
    at Module.load (node:internal/modules/cjs/loader:1126:32)
    at node:internal/modules/cjs/loader:967:12
    at Function._load (node:electron/js2c/node_init:2:13357)
(Use `electron --trace-warnings ...` to show where the warning was created)
[14.02.2024 21:14.35.382] [ERROR] (node:20831) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
/home/philie/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
</code></pre>
<p dir="auto">So this tells me diretly that the version uf node.js is not sufficent.</p>
<p dir="auto">if I try to upgrade it using npm rebuild it looks like the following:</p>
<pre><code>philie@magicmirror:~/MagicMirror/modules/MMM-ModuleToggleButton $ sudo npm rebuild
npm ERR! code 127
npm ERR! path /home/philie/MagicMirror/modules/MMM-ModuleToggleButton
npm ERR! command failed
npm ERR! command sh -c node_modules/.bin/electron-rebuild -e ../../node_modules/electron
npm ERR! sh: 1: node_modules/.bin/electron-rebuild: not found

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-02-14T20_16_30_701Z-debug-0.log
</code></pre>
<p dir="auto">How can I upgrade from 115 to 118?</p>
]]></description><link>https://forum.magicmirror.builders/post/115620</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/115620</guid><dc:creator><![CDATA[philie]]></dc:creator><pubDate>Wed, 14 Feb 2024 20:22:36 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-ModuleToggleButton suddenly broken? on Wed, 14 Feb 2024 14:06:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/philie" aria-label="Profile: philie">@<bdi>philie</bdi></a>  pm2 collects the data in separate files normal and error. it’s hard to tell</p>
<p dir="auto">do this</p>
<pre><code class="language-sh">pm2 stop all
cd ~/MagicMirror
npm start &gt;somfile.txt 2&gt;&amp;1
</code></pre>
<p dir="auto">wait 20 seconds<br />
ctrl-q<br />
then edit somefile.txt</p>
<p dir="auto">after we go  it  then</p>
<p dir="auto">pm2 status<br />
pm2 start xx<br />
xx is the number or name of the managed app</p>
]]></description><link>https://forum.magicmirror.builders/post/115597</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/115597</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 14 Feb 2024 14:06:26 GMT</pubDate></item></channel></rss>