<?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[Trouble using pm2 to install modules]]></title><description><![CDATA[<p dir="auto">Hi, I can not seem to load and modules. I reinstalled MM using the script but now no modules will load. Here is what I out in and the information I get back. Any help would be appreciated. I tried 3 different modules with no success. Thank you<br />
vandam3b@raspberrypi:~ $ cd MagicMirror<br />
vandam3b@raspberrypi:~/MagicMirror $ cd modules<br />
vandam3b@raspberrypi:~/MagicMirror/modules $ <a href="https://github.com/jclarke0000/MMM-MyScoreboard.git" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/jclarke0000/MMM-MyScoreboard.git</a><br />
bash: <a href="https://github.com/jclarke0000/MMM-MyScoreboard.git:" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/jclarke0000/MMM-MyScoreboard.git:</a> No such file or directory<br />
vandam3b@raspberrypi:~/MagicMirror/modules $ pm2 install <a href="https://github.com/jclarke0000/MMM-MyScoreboard.git" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/jclarke0000/MMM-MyScoreboard.git</a><br />
[PM2][Module] Installing NPM <a href="https://github.com/jclarke0000/MMM-MyScoreboard.git" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/jclarke0000/MMM-MyScoreboard.git</a> module<br />
[PM2][Module] Module already installed. Updating.<br />
Deleting /home/vandam3b/.pm2/modules/MMM-MyScoreboard<br />
[PM2][Module] Calling [NPM] to install <a href="https://github.com/jclarke0000/MMM-MyScoreboard.git" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/jclarke0000/MMM-MyScoreboard.git</a> …</p>
<p dir="auto">added 39 packages in 22s</p>
<p dir="auto">1 package is looking for funding<br />
run <code>npm fund</code> for details<br />
[PM2][Module] Module downloaded<br />
ENOENT: no such file or directory, open ‘/home/vandam3b/.pm2/modules/MMM-MyScoreboard/node_modules/MMM-MyScoreboard/package.json’<br />
node:internal/modules/cjs/loader:1051<br />
throw err;<br />
^</p>
<p dir="auto">Error: Cannot find module ‘/home/vandam3b/.pm2/modules/MMM-MyScoreboard/node_modules/MMM-MyScoreboard/package.json’<br />
Require stack:</p>
<ul>
<li>/usr/local/lib/node_modules/pm2/lib/API/Modules/NPM.js</li>
<li>/usr/local/lib/node_modules/pm2/lib/API/Modules/Modularizer.js</li>
<li>/usr/local/lib/node_modules/pm2/lib/API.js</li>
<li>/usr/local/lib/node_modules/pm2/lib/binaries/CLI.js</li>
<li>/usr/local/lib/node_modules/pm2/bin/pm2<br />
at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)<br />
at Module._load (node:internal/modules/cjs/loader:901:27)<br />
at Module.require (node:internal/modules/cjs/loader:1115:19)<br />
at require (node:internal/modules/helpers:130:18)<br />
at StartModule (/usr/local/lib/node_modules/pm2/lib/API/Modules/NPM.js:343:22)<br />
at /usr/local/lib/node_modules/pm2/lib/API/Modules/NPM.js:257:7<br />
at /usr/local/lib/node_modules/pm2/lib/Configuration.js:68:14<br />
at FSReqCallback.oncomplete (node:fs:189:23) {<br />
code: ‘MODULE_NOT_FOUND’,<br />
requireStack: [<br />
‘/usr/local/lib/node_modules/pm2/lib/API/Modules/NPM.js’,<br />
‘/usr/local/lib/node_modules/pm2/lib/API/Modules/Modularizer.js’,<br />
‘/usr/local/lib/node_modules/pm2/lib/API.js’,<br />
‘/usr/local/lib/node_modules/pm2/lib/binaries/CLI.js’,<br />
‘/usr/local/lib/node_modules/pm2/bin/pm2’<br />
]<br />
}</li>
</ul>
<p dir="auto">Node.js v20.8.0<br />
vandam3b@raspberrypi:~/MagicMirror/modules $</p>
]]></description><link>https://forum.magicmirror.builders/topic/18134/trouble-using-pm2-to-install-modules</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 09:24:23 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18134.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 Oct 2023 23:09:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trouble using pm2 to install modules on Tue, 31 Oct 2023 12:43:25 GMT]]></title><description><![CDATA[<p dir="auto">Thanks you. I appreciate it.</p>
]]></description><link>https://forum.magicmirror.builders/post/112220</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112220</guid><dc:creator><![CDATA[vandam3b]]></dc:creator><pubDate>Tue, 31 Oct 2023 12:43:25 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble using pm2 to install modules on Tue, 31 Oct 2023 21:04:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vandam3b" aria-label="Profile: vandam3b">@<bdi>vandam3b</bdi></a> the process of installing modules is the same 100% of<br />
the time</p>
<p dir="auto">regardless of what the author documents</p>
<pre><code>cd ~/MagicMirror/modules
git clone the_github_url_of_the_new_module
cd  the_modulename  (exact case)
if there is a file called package.json , then do 
npm install 
</code></pre>
<p dir="auto">then add the module config entry to the list in ~/MagicMirror/config/config.js</p>
<p dir="auto">then restart MagicMirror<br />
I suggest using the npm start approach on first start after adding a module so that you can debug any issues quickly, without pm2 involvement. … then use pm2 for production again</p>
]]></description><link>https://forum.magicmirror.builders/post/112191</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112191</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 31 Oct 2023 21:04:02 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble using pm2 to install modules on Tue, 31 Oct 2023 01:31:47 GMT]]></title><description><![CDATA[<p dir="auto">Thanks and i down loaded a module but now I get this error.<br />
vandam3b@raspberrypi:~ $ pm2 start MagicMirror<br />
[PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ])<br />
[PM2] <a href="0">MagicMirror</a> ✓<br />
[PM2] Process successfully started<br />
┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐<br />
│ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │<br />
├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤<br />
│ 1  │ MM                 │ fork     │ 369  │ online    │ 131.8%   │ 41.3mb   │<br />
│ 0  │ MagicMirror        │ fork     │ 137  │ online    │ 0%       │ 4.6mb    │<br />
└────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘<br />
vandam3b@raspberrypi:~ $</p>
<p dir="auto">I looked for the MM folder but can not find it. It was working before I installed the module. This is what the config. looks like.</p>
<p dir="auto">/* MagicMirror² Config Sample<br />
*</p>
<ul>
<li>
<p dir="auto">By Michael Teeuw <a href="https://michaelteeuw.nl" target="_blank" rel="noopener noreferrer nofollow ugc">https://michaelteeuw.nl</a></p>
</li>
<li>
<p dir="auto">MIT Licensed.</p>
</li>
<li></li>
<li>
<p dir="auto">For more information on how you can configure this file</p>
</li>
<li>
<p dir="auto">see <a href="https://docs.magicmirror.builders/configuration/introduction.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.magicmirror.builders/configuration/introduction.html</a></p>
</li>
<li>
<p dir="auto">and <a href="https://docs.magicmirror.builders/modules/configuration.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.magicmirror.builders/modules/configuration.html</a></p>
</li>
<li></li>
<li>
<p dir="auto">You can use environment variables using a <code>config.js.template</code> file instead of <code>config.js</code></p>
</li>
<li>
<p dir="auto">which will be converted to <code>config.js</code> while starting. For more information</p>
</li>
<li>
<p dir="auto">see <a href="https://docs.magicmirror.builders/configuration/introduction.html#enviromnent-variables" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.magicmirror.builders/configuration/introduction.html#enviromnent-variables</a><br />
*/<br />
let config = {<br />
address: “localhost”,	// Address to listen on, can be:<br />
// - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface<br />
// - another specific IPv4/6 to listen on a specific interface<br />
// - “0.0.0.0”, “::” to listen on any interface<br />
// Default, when address config is left out or empty, is “localhost”<br />
port: 8080,<br />
basePath: “/”,			// The URL path where MagicMirror² is hosted. If you are using a Reverse proxy<br />
// you must set the sub path here. basePath must end with a /<br />
ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”],	// Set [] to allow all IP addresses<br />
// or add a specific IPv4 of 192.168.1.5 :<br />
// [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.1.5”],<br />
// or IPv4 range of 192.168.3.0 --&gt; 192.168.3.15 use CIDR format :<br />
// [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],</p>
<p dir="auto">useHttps: false, 		// Support HTTPS or not, default “false” will use HTTP<br />
httpsPrivateKey: “”, 	// HTTPS private key path, only require when useHttps is true<br />
httpsCertificate: “”, 	// HTTPS Certificate path, only require when useHttps is true</p>
<p dir="auto">language: “en”,<br />
locale: “en-US”,<br />
logLevel: [“INFO”, “LOG”, “WARN”, “ERROR”], // Add “DEBUG” for even more logging<br />
timeFormat: 24,<br />
units: “metric”,</p>
<p dir="auto">modules: [<br />
{<br />
module: “alert”,<br />
},<br />
{<br />
module: “updatenotification”,<br />
position: “top_bar”<br />
},<br />
{<br />
module: “clock”,<br />
position: “top_left”<br />
},<br />
{<br />
module: “calendar”,<br />
header: “US Holidays”,<br />
position: “top_left”,<br />
config: {<br />
calendars: [<br />
{<br />
fetchInterval: 7 * 24 * 60 * 60 * 1000,<br />
symbol: “calendar-check”,<br />
url: “<a href="https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics" target="_blank" rel="noopener noreferrer nofollow ugc">https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics</a>”<br />
}<br />
]<br />
}<br />
},<br />
{<br />
module: “compliments”,<br />
position: “top_bar”<br />
},<br />
{<br />
module:     ‘MMM-3Day-Forecast’,<br />
position:   ‘top_right’,<br />
config: {<br />
api_key:    ‘e40b2a1224254edcecde9ccbc165c869’,<br />
lat:        40.658421,<br />
lon:        -74.299593,<br />
units:      ‘I’,<br />
lang:       ‘en’,<br />
interval:   900000,<br />
}<br />
},</p>
<pre><code> {
 	module: "weather",
 	position: "",
 	header: "Weather Forecast",
 	config: {
 		weatherProvider: "openweathermap",
 		type: "forecast",
 		location: "New York",
 		locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
 		apiKey: "YOUR_OPENWEATHER_API_KEY"
 	}
 },
 {
 	module: "newsfeed",
 	position: "bottom_bar",
 	config: {
 		feeds: [
 			{
 				
 				title: "Sports",
 				url:"https://api.foxsports.com/v2/content/optimized-rss?partnerKey=MB0Wehpmuj2lUhuRhQaafhBjAJqaPU244mlTDK1i&amp;tags=fs/cfb&amp;size=30"	
 			
 				
 			
 			},
 		],
 		showSourceTitle: true,
 		showPublishDate: true,
 		broadcastNewsFeeds: true,
 		broadcastNewsUpdates: true
 	}
 },
</code></pre>
<p dir="auto">]<br />
};</p>
</li>
</ul>
<p dir="auto">/*************** DO NOT EDIT THE LINE BELOW ***************/<br />
if (typeof module !== “undefined”) {module.exports = config;}</p>
]]></description><link>https://forum.magicmirror.builders/post/112190</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112190</guid><dc:creator><![CDATA[vandam3b]]></dc:creator><pubDate>Tue, 31 Oct 2023 01:31:47 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble using pm2 to install modules on Mon, 30 Oct 2023 23:40:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vandam3b" aria-label="Profile: vandam3b">@<bdi>vandam3b</bdi></a> you don’t use pm2 to install modules…</p>
<p dir="auto">you use npm</p>
<p dir="auto">npm reads the package.json file to determine what libraries to install.</p>
<p dir="auto">if there is no package.json  then there is no install to do.</p>
<p dir="auto">pm2, is node process manager.  it’s job is to  start and keep applications ruining.</p>
]]></description><link>https://forum.magicmirror.builders/post/112189</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/112189</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 30 Oct 2023 23:40:01 GMT</pubDate></item></channel></rss>