<?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[fixuppm2.sh]]></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 />
pi@MagicMirror:~ $ bash -c “$(curl -sL <a href="https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh" target="_blank" rel="noopener noreferrer nofollow ugc">https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh</a>)”<br />
the log will be saved in /home/pi/MagicMirror/installers/pm2_setup.log<br />
sudo: npm: command not found<br />
bash: linje 127: pm2: command not found<br />
bash: linje 211: pm2: command not found<br />
bash: linje 214: pm2: command not found<br />
pi@MagicMirror:~ $ npm -v<br />
11.6.2<br />
pi@MagicMirror:~ $</p>
<p dir="auto">The log say</p>
<pre><code>pm2 setup starting - tor okt 16 18:38:30 CEST 2025
using parameter bash
system is Linux EmptyImage 6.12.47+rpt-rpi-v7 #1 SMP Raspbian 1:6.12.47-1+rpt1~bookworm (2025-09-16) armv7l GNU/Linux
the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm
node version v22.20.0
force installing latest npm version via npm
npm version 10.9.3
pm2 not installed, installing
get the pm2 platform specific startup command
startup command =
pm2 startup command done
configure the pm2 config file for MagicMirror
start MagicMirror via pm2 now
save MagicMirror pm2 config now
pm2 setup completed - tor okt 16 18:39:22 CEST 2025
pm2 setup starting - fre okt 17 13:46:28 CEST 2025
using parameter bash
system is Linux MagicMirror 6.12.47+rpt-rpi-v7 #1 SMP Raspbian 1:6.12.47-1+rpt1~bookworm (2025-09-16) armv7l GNU/Linux
the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm
node version v22.20.0
force installing latest npm version via npm
npm version 11.6.2
pm2 not installed, installing
get the pm2 platform specific startup command
startup command =
pm2 startup command done
configure the pm2 config file for MagicMirror
start MagicMirror via pm2 now
save MagicMirror pm2 config now
pm2 setup completed - fre okt 17 13:46:29 CEST 2025
</code></pre>
<p dir="auto">i can install pm2 but only with “npm install -g pm2” and not “sudo npm install -g pm2”</p>
]]></description><link>https://forum.magicmirror.builders/topic/19920/fixuppm2.sh</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 03:27:02 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19920.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Oct 2025 12:00:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to fixuppm2.sh on Fri, 17 Oct 2025 13:26:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/assassins" aria-label="Profile: Assassins">@<bdi>Assassins</bdi></a> weird</p>
]]></description><link>https://forum.magicmirror.builders/post/128628</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/128628</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 17 Oct 2025 13:26:14 GMT</pubDate></item><item><title><![CDATA[Reply to fixuppm2.sh on Fri, 17 Oct 2025 13:07: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> said in <a href="/post/128626">fixuppm2.sh</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/assassins" aria-label="Profile: Assassins">@<bdi>Assassins</bdi></a> which script?</p>
</blockquote>
<p dir="auto">bash -c “$(curl -sL <a href="https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh" target="_blank" rel="noopener noreferrer nofollow ugc">https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh</a>)”</p>
<blockquote>
<p dir="auto">And how did you install it. -g or not</p>
</blockquote>
<p dir="auto">With -g<br />
My second test was without -g and it works there too</p>
]]></description><link>https://forum.magicmirror.builders/post/128627</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/128627</guid><dc:creator><![CDATA[Assassins]]></dc:creator><pubDate>Fri, 17 Oct 2025 13:07:26 GMT</pubDate></item><item><title><![CDATA[Reply to fixuppm2.sh on Fri, 17 Oct 2025 12:56:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/assassins" aria-label="Profile: Assassins">@<bdi>Assassins</bdi></a> which script?<br />
And how did you install it. -g or not</p>
]]></description><link>https://forum.magicmirror.builders/post/128626</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/128626</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 17 Oct 2025 12:56:33 GMT</pubDate></item><item><title><![CDATA[Reply to fixuppm2.sh on Fri, 17 Oct 2025 12:44:06 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/128623">fixuppm2.sh</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/assassins" aria-label="Profile: Assassins">@<bdi>Assassins</bdi></a> -g means it’s available globally across the system<br />
You can execute it in every folder<br />
AND globally means adding to the /usr folder tree which require root authority (sudo)</p>
<p dir="auto">Without means you have to be in the folder tree where you did npm install, AND If the install folder is NOT in the path, then you have to prefix pm2 with the correct path EVERY TIME</p>
<p dir="auto">I think this also breaks boot time support which is the primary value, in my opinion</p>
</blockquote>
<p dir="auto">But your script works fine now that I have installed pm2</p>
]]></description><link>https://forum.magicmirror.builders/post/128625</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/128625</guid><dc:creator><![CDATA[Assassins]]></dc:creator><pubDate>Fri, 17 Oct 2025 12:44:06 GMT</pubDate></item><item><title><![CDATA[Reply to fixuppm2.sh on Fri, 17 Oct 2025 12:34:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/assassins" aria-label="Profile: Assassins">@<bdi>Assassins</bdi></a> -g means it’s available globally across the system<br />
You can execute it in every folder<br />
AND globally means adding to the /usr folder tree which require root authority (sudo)</p>
<p dir="auto">Without means you have to be in the folder tree where you did npm install, AND If the install folder is NOT in the path, then you have to prefix pm2 with the correct path EVERY TIME</p>
<p dir="auto">I think this also breaks boot time support which is the primary value, in my opinion</p>
]]></description><link>https://forum.magicmirror.builders/post/128623</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/128623</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 17 Oct 2025 12:34:31 GMT</pubDate></item></channel></rss>