<?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, 02 Jun 2026 17:48:44 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 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>