<?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[npm start and black screen]]></title><description><![CDATA[<p dir="auto">Here is the log:</p>
<pre><code>Sockets connected &amp; modules started ...
Whoops! There was an uncaught exception...
{ Error: listen EADDRINUSE 0.0.0.0:8080
    at Object.exports._errnoException (util.js:1026:11)
    at exports._exceptionWithHostPort (util.js:1049:20)
    at Server._listen2 (net.js:1253:14)
    at listen (net.js:1289:10)
    at net.js:1399:9
    at _combinedTickCallback (internal/process/next_tick.js:77:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at Module.runMain (module.js:592:11)
    at run (bootstrap_node.js:402:7)
    at startup (bootstrap_node.js:157:9)
  code: 'EADDRINUSE',
  errno: 'EADDRINUSE',
  syscall: 'listen',
  address: '0.0.0.0',
  port: 8080 }
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
Launching application.
Shutting down server...

</code></pre>
<p dir="auto">How to fix this?</p>
<p dir="auto"><strong>Note : Use “pm2 start mm” is able to run mm.</strong></p>
]]></description><link>https://forum.magicmirror.builders/topic/6373/npm-start-and-black-screen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 16:06:51 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/6373.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Jan 2018 16:23:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to npm start and black screen on Wed, 24 Jan 2018 18:26:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dexterbeng" aria-label="Profile: dexterbeng">@<bdi>dexterbeng</bdi></a> I would guess 15-30 seconds. <code>pm2</code> has to detect that the process has terminated and restart. It depends on the polling interval for <code>pm2</code> (which, as far as I can tell from their docs/issues, is 100ms, and cannot be changed – seems more frequent than I expected).</p>
<p dir="auto">Why are you killing <code>mm</code> with Ctrl+Q? Better to use <code>pm2 restart mm</code> or even <code>pm2 start mm --watch</code> which will also restart <code>mm</code> after file system changes (you may need to <a href="http://pm2.keymetrics.io/docs/usage/watch-and-restart/" target="_blank" rel="noopener noreferrer nofollow ugc">configure which directories to watch</a>).</p>
]]></description><link>https://forum.magicmirror.builders/post/34615</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/34615</guid><dc:creator><![CDATA[ninjabreadman]]></dc:creator><pubDate>Wed, 24 Jan 2018 18:26:56 GMT</pubDate></item><item><title><![CDATA[Reply to npm start and black screen on Wed, 24 Jan 2018 18:09:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ninjabreadman" aria-label="Profile: ninjabreadman">@<bdi>ninjabreadman</bdi></a><br />
Ya, agree with that pm2 is the easier way.<br />
By the way, can I know when you using pm2 to start your mm and you ctrl+q to quit it, how long it takes to auto boot it up again?<br />
For me, it likes 15 seconds to 30 seconds, and sometimes never turn on again…</p>
]]></description><link>https://forum.magicmirror.builders/post/34614</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/34614</guid><dc:creator><![CDATA[dexterbeng]]></dc:creator><pubDate>Wed, 24 Jan 2018 18:09:47 GMT</pubDate></item><item><title><![CDATA[Reply to npm start and black screen on Wed, 24 Jan 2018 17:51:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dexterbeng" aria-label="Profile: dexterbeng">@<bdi>dexterbeng</bdi></a> If you have <code>pm2</code> and the <code>mm</code> script installed, it’s simplest to use <code>pm2 start/stop mm</code>. However, <code>npm start dev</code> is still useful to debug server and client consoles, just don’t forget to first <code>pm2 stop mm</code> as you describe.</p>
]]></description><link>https://forum.magicmirror.builders/post/34613</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/34613</guid><dc:creator><![CDATA[ninjabreadman]]></dc:creator><pubDate>Wed, 24 Jan 2018 17:51:39 GMT</pubDate></item><item><title><![CDATA[Reply to npm start and black screen on Wed, 24 Jan 2018 16:41:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dexterbeng" aria-label="Profile: dexterbeng">@<bdi>dexterbeng</bdi></a><br />
I found the problem issue <a href="https://forum.magicmirror.builders/topic/2209/error-listen-eaddrinuse-help-plox">https://forum.magicmirror.builders/topic/2209/error-listen-eaddrinuse-help-plox</a></p>
<p dir="auto">So i use <strong>pm2 stop mm</strong>, then i can use back <strong>npm start</strong> since no application is using port:8080.</p>
<p dir="auto">But still, is there anyone can explain to me, why my pm2 start mm is take while to boot up my mm, even i ctrl+q, it will turn mm back very long time or never turn on again?</p>
]]></description><link>https://forum.magicmirror.builders/post/34609</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/34609</guid><dc:creator><![CDATA[dexterbeng]]></dc:creator><pubDate>Wed, 24 Jan 2018 16:41:27 GMT</pubDate></item></channel></rss>