<?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[Electron Error]]></title><description><![CDATA[<p dir="auto">I just did a fresh install of Magic Mirror which I’ve had running for years on a different RPi but for some reason I can’t seem to get this new version to start up due to Electron.</p>
<p dir="auto">I have removed the electron folder and done an npm install that didn’t work, I removed the entire modules folder and did an npm install and that didn’t work… I’ve gone in  and manually installed electron node node_modules/electron/install.js and I’m still getting this when I start up my magic mirror.</p>
<p dir="auto">$ npm start</p>
<blockquote>
<p dir="auto">magicmirror@2.36.0 start<br />
node --run start:wayland</p>
</blockquote>
<p dir="auto">/home/Dashboard/MagicMirror/node_modules/electron/index.js:17<br />
throw new Error(<br />
^</p>
<p dir="auto">Error: Electron failed to install correctly, please delete node_modules/electron and try installing again<br />
at getElectronPath (/home/Dashboard/MagicMirror/node_modules/electron/index.js:17:11)<br />
at Object. (/home/Dashboard/MagicMirror/node_modules/electron/index.js:23:18)<br />
at Module._compile (node:internal/modules/cjs/loader:1854:14)<br />
at Object…js (node:internal/modules/cjs/loader:1985:10)<br />
at Module.load (node:internal/modules/cjs/loader:1577:32)<br />
at Module._load (node:internal/modules/cjs/loader:1379:12)<br />
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)<br />
at Module.require (node:internal/modules/cjs/loader:1600:12)<br />
at require (node:internal/modules/helpers:153:16)<br />
at Object. (/home/Dashboard/MagicMirror/node_modules/electron/cli.js:5:18)</p>
<p dir="auto">Node.js v24.16.0</p>
]]></description><link>https://forum.magicmirror.builders/topic/20256/electron-error</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 05:55:21 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/20256.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Jun 2026 13:44:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Electron Error on Tue, 02 Jun 2026 14:23:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nobbie35" aria-label="Profile: nobbie35">@<bdi>nobbie35</bdi></a> ok, you are using nvm</p>
<pre><code>nvm install 22.22.1
nvm use 22.22.1
hash -r
node -v
</code></pre>
<p dir="auto">if 22.22.1</p>
<pre><code>cd ~/MagicMirror
rm -rf node_modules
npm run install-mm
</code></pre>
<p dir="auto">if successful</p>
<pre><code>npm run start:wayland
</code></pre>
<p dir="auto">advise results</p>
]]></description><link>https://forum.magicmirror.builders/post/131243</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131243</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 02 Jun 2026 14:23:19 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Error on Thu, 04 Jun 2026 16:25:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nobbie35" aria-label="Profile: nobbie35">@<bdi>nobbie35</bdi></a> scripts are here, mentioned in MagicMirror install doc<br />
<a href="https://github.com/sdetweil/MagicMirror_scripts" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MagicMirror_scripts</a></p>
<p dir="auto">Backup/restore should work if you can run it from the nas command line (it’s all bash) and if git is there you could push to a repo of yours</p>
<p dir="auto"><a href="https://github.com/sdetweil/MagicMirror-backup-restore" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MagicMirror-backup-restore</a></p>
<p dir="auto">This takes optional parm’s for the folder name of MagicMirror and the place to put the backup</p>
]]></description><link>https://forum.magicmirror.builders/post/131282</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131282</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 04 Jun 2026 16:25:16 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Error on Thu, 04 Jun 2026 16:07:57 GMT]]></title><description><![CDATA[<p dir="auto">unfortunately I don’t have a running system. the microsd card failed and I had the raspi rainbow screen.  I have the MagicMirror folder copied to my NAS. Not sure if that would help with your tool or not.<br />
At this point I’m considering just starting from scratch adding my modules and then get it all up and running.  I have my config.js and the main.css that I modified. If thats all i need let me know and where your script is and Ill go to work.  I did make a fork of 2.25 and made changes to magic mirror myself to suit my needs which I don’t plan on doing.</p>
]]></description><link>https://forum.magicmirror.builders/post/131281</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131281</guid><dc:creator><![CDATA[nobbie35]]></dc:creator><pubDate>Thu, 04 Jun 2026 16:07:57 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Error on Thu, 04 Jun 2026 16:25:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nobbie35" aria-label="Profile: nobbie35">@<bdi>nobbie35</bdi></a> if you have an older system, even if it’s not running completely you can use my backup/restore<br />
Install new MagicMirror w my script<br />
Run restore to put back modules , config and css if it was in custom.css</p>
<p dir="auto">Best thing to do for things in main.css</p>
<p dir="auto">Do a git diff main.css</p>
<p dir="auto">It will show you all the changes and adds</p>
]]></description><link>https://forum.magicmirror.builders/post/131269</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131269</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 04 Jun 2026 16:25:53 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Error on Thu, 04 Jun 2026 02:25:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nobbie35" aria-label="Profile: nobbie35">@<bdi>nobbie35</bdi></a> main.css is ours, we will write over it every release. All user css goes in custom.css<br />
Now located in the config folder</p>
<p dir="auto">If you used my backup restore it can help you move versions and systems, backup here restore there</p>
<p dir="auto">My installer creates custom.css if it doesn’t exist<br />
My updater would have moved things around for you</p>
]]></description><link>https://forum.magicmirror.builders/post/131268</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131268</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 04 Jun 2026 02:25:07 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Error on Thu, 04 Jun 2026 02:12:19 GMT]]></title><description><![CDATA[<p dir="auto">I noticed that nothing seems to be working from my config on this new version.  I was running 2.25 and all of my custom config was in the main.css.  I decided to format another microsd card with a backup of my old MagicMirro and I’m planning on installing that.  I’m sure that i’ll run into a node/electron issue running the older version. I’m debating just starting from scratch with the new version and wrestling with google and microsoft authentications…</p>
]]></description><link>https://forum.magicmirror.builders/post/131267</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131267</guid><dc:creator><![CDATA[nobbie35]]></dc:creator><pubDate>Thu, 04 Jun 2026 02:12:19 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Error on Tue, 02 Jun 2026 14:47:03 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nobbie35" aria-label="Profile: nobbie35">@<bdi>nobbie35</bdi></a> <a href="/post/131240">said</a>: node 22, awesome<br />
hmmm this says wayland</p>
</blockquote>
<pre><code> ps -ef | grep -v grep | grep -i -e xway -e labwc 
</code></pre>
<p dir="auto">can you show its output</p>
<p dir="auto">note we moved (user controlled files) like css to the config folder<br />
IF you used my installer script, it would have moved everything other than the MM owned css contents</p>
<p dir="auto">please don’t edit main.css</p>
<p dir="auto">all USER css goes in custom.css<br />
that way when we install updates, we dont overwrite your stuff…</p>
]]></description><link>https://forum.magicmirror.builders/post/131247</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131247</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 02 Jun 2026 14:47:03 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Error on Tue, 02 Jun 2026 14:37:40 GMT]]></title><description><![CDATA[<p dir="auto">Ok this fixed this issues… I’m not using wayland its still x11 i know that… I just have to go update my config file and main.css to match what I had in my previous implementation.</p>
<p dir="auto">Thank you for the assist. Much appreciated</p>
]]></description><link>https://forum.magicmirror.builders/post/131246</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131246</guid><dc:creator><![CDATA[nobbie35]]></dc:creator><pubDate>Tue, 02 Jun 2026 14:37:40 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Error on Tue, 02 Jun 2026 14:23:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nobbie35" aria-label="Profile: nobbie35">@<bdi>nobbie35</bdi></a> ok, you are using nvm</p>
<pre><code>nvm install 22.22.1
nvm use 22.22.1
hash -r
node -v
</code></pre>
<p dir="auto">if 22.22.1</p>
<pre><code>cd ~/MagicMirror
rm -rf node_modules
npm run install-mm
</code></pre>
<p dir="auto">if successful</p>
<pre><code>npm run start:wayland
</code></pre>
<p dir="auto">advise results</p>
]]></description><link>https://forum.magicmirror.builders/post/131243</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131243</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 02 Jun 2026 14:23:19 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Error on Tue, 02 Jun 2026 14:17:14 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 agree with its a node problem.</p>
<p dir="auto">~/Dashboard/MagicMirror $ which node<br />
/home/pi/.nvm/versions/node/v24.16.0/bin/node</p>
]]></description><link>https://forum.magicmirror.builders/post/131242</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131242</guid><dc:creator><![CDATA[nobbie35]]></dc:creator><pubDate>Tue, 02 Jun 2026 14:17:14 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Error on Tue, 02 Jun 2026 14:14:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nobbie35" aria-label="Profile: nobbie35">@<bdi>nobbie35</bdi></a> ok, node problem…</p>
<p dir="auto">do</p>
<pre><code>which node
</code></pre>
<p dir="auto">it will give you the path to the node executable<br />
using n, it should be</p>
<pre><code>which node
/usr/local/bin/node
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/131241</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131241</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 02 Jun 2026 14:14:46 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Error on Tue, 02 Jun 2026 14:08:18 GMT]]></title><description><![CDATA[<p dir="auto">Ok here’s what I got…</p>
<pre><code>npm install electron@41.3.0

added 488 packages in 30s

246 packages are looking for funding
  run `npm fund` for details
</code></pre>
<p dir="auto">After running installing that and then trying to start MM it still gave me the same error</p>
<p dir="auto">I ran the following</p>
<pre><code>/Dashboard/MagicMirror $ sudo n 22.22.1
     copying : node/22.22.1
   installed : v22.22.1 (with npm 10.9.4)
/Dashboard/MagicMirror $ hash -r
/Dashboard/MagicMirror $ node -v
v24.16.0
</code></pre>
<p dir="auto">Still got the same error and it says im running node 24 still running</p>
<p dir="auto">Output of the commands</p>
<pre><code>/Dashboard/MagicMirror $ ps -ef | grep -v grep | grep -i -e xway -e labwc | wc -l
2
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/131240</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131240</guid><dc:creator><![CDATA[nobbie35]]></dc:creator><pubDate>Tue, 02 Jun 2026 14:08:18 GMT</pubDate></item><item><title><![CDATA[Reply to Electron Error on Tue, 02 Jun 2026 13:55:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nobbie35" aria-label="Profile: nobbie35">@<bdi>nobbie35</bdi></a> lets start back a step<br />
open a terminal window</p>
<pre><code>cd ~/MagicMirror
rm -rf node_modules/electron
npm install electron@41.3.0
</code></pre>
<p dir="auto">what is the result of that?<br />
show the  terminal output<br />
this is what I see</p>
<pre><code>npm install electron@41.3.0

added 1 package in 3s

240 packages are looking for funding
  run `npm fund` for details
npm notice
npm notice New major version of npm available! 10.9.4 -&gt; 11.16.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.16.0
npm notice To update run: npm install -g npm@11.16.0
npm notice
</code></pre>
<p dir="auto">I am on node 22.22.1<br />
you are on node 24</p>
<p dir="auto">maybe try node 22…</p>
<pre><code>sudo npm install n -g
sudo n 22.22.1
hash -r
node -v
cd ~/MagicMirror
rm -rf node_modules
npm run install-mm
</code></pre>
<p dir="auto">if you have wayland as window manager do</p>
<pre><code>npm run start:wayland
</code></pre>
<p dir="auto">else do</p>
<pre><code>npm run start:x11
</code></pre>
<p dir="auto">if you don’t know, run this command stream (from my <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a> in the scripted install  at <a href="https://github.com/sdetweil/MagicMirror_scripts" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MagicMirror_scripts</a>)</p>
<pre><code>ps -ef | grep -v grep | grep -i -e xway -e labwc | wc -l
</code></pre>
<p dir="auto">if it returns 1, its wayland, otherwise x11</p>
<p dir="auto">please advise results along the way… don’t try other things than this</p>
]]></description><link>https://forum.magicmirror.builders/post/131239</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131239</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 02 Jun 2026 13:55:55 GMT</pubDate></item></channel></rss>