<?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[Unable to update modules]]></title><description><![CDATA[<p dir="auto">When attempting to update my magic mirror modules I get the following error messgae<br />
<strong>“pi@raspberrypi:~/MagicMirror/modules/MMM-Todoist $ git pull<br />
error: Your local changes to the following files would be overwritten by merge:<br />
package-lock.json<br />
Please commit your changes or stash them before you merge.<br />
Aborting”</strong></p>
<p dir="auto">1)How do i solve this?<br />
2) What caused this “package-lock.json”?<br />
3) Anyway to remove this package permanently?</p>
]]></description><link>https://forum.magicmirror.builders/topic/12805/unable-to-update-modules</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 23:37:34 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/12805.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 May 2020 02:30:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to update modules on Thu, 30 Jan 2025 13:47:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmcon" aria-label="Profile: rmcon">@<bdi>rmcon</bdi></a> thanks, but no wizardry</p>
<p dir="auto">a little info</p>
<p dir="auto">we use a source code repository, that keeps track of every file change, add, delete, rename, whatever.</p>
<p dir="auto">on linux there is no hidden file attribute, like on Windows… but by convention, if a file or folder starts with a dot(.) then it is not shown unless explicitly requested</p>
<p dir="auto">git is the source code repository we all use (MM and the modules)<br />
it is called a distributed scm (source code mgmt) system, because whenever you have some of a repo, you have ALL of it from its start to now…</p>
<p dir="auto">you git clone to make a local copy (linked to the source of the clone)</p>
<p dir="auto">on linux that is stored in the .git folder (notice the .)</p>
<p dir="auto">it knows about every little change to any of the files… oh<br />
when you see them, that is called the ‘working copy’…  may match the repo, might not</p>
<p dir="auto">so, we asked git, tell me the status of the working copy as compared to the repository (in the .git folder)</p>
<p dir="auto">and it said some file  hadchanged and some file had been deleted.<br />
neither of those files (package.json or package-lock.json) affect the actual running of the module, they are part of the housekeeping, setup, installation…</p>
<p dir="auto">now, you said you were going to UPDATE cause the module had changed,<br />
so you don’t NEED those files as they exist(or don’t) , cause you are going to PULL a NEW copy of the repo to your system (repo and working copy)</p>
<p dir="auto">git provides commands to do lots of things,<br />
you can look thru the history of the repo, with git log and git history</p>
<p dir="auto">an important idea, is a pointer to the top of the last incorporated (committed) changes<br />
that term is called HEAD, the HEAD of the change tree…</p>
<p dir="auto">so, we asked git, please restore our working copy (and any potential additions (commits) to the repo BACK to the HEAD position<br />
AND reset all the working copy files too…<br />
git reset --hard  HEAD<br />
–hard means and working copy<br />
ok, so NOW we have the working copy matching the repo state of  the clone you did</p>
<p dir="auto">now lets ask to refresh the local repo with the repo copy that has changed<br />
that action is PULL the repo to us, and resynch<br />
(it doesn’t like it when the working copy doesn’t match its expectations, so we ‘forced’ it back to HEAD)</p>
<p dir="auto">now the PULL updates the repo, AND the working copy… phew…  and it updated the two files it was unsure about before</p>
<p dir="auto">but who knows what the impact of the change are (the module author, did we look at any comments he might have made (no… not me!)…)<br />
so, lets just redo the node package managers view of the system<br />
npm install will recheck any locally added libraries (in node_modules folder)<br />
and do any pre/post install tasks defined in the package.json</p>
<p dir="auto">NOW we are file level up to date with the latest official repo<br />
AND we are runtime up to date</p>
]]></description><link>https://forum.magicmirror.builders/post/123326</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/123326</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 30 Jan 2025 13:47:20 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Thu, 23 Jan 2025 19:08:42 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><br />
That worked!  No idea what we just did, but the update went through and MM worked fine after reboot, to include the module,</p>
<p dir="auto">Sam, you’re a wizard as far as I’m concerned.  Thanks for taking the time to assist us less savvy folks.</p>
]]></description><link>https://forum.magicmirror.builders/post/123324</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/123324</guid><dc:creator><![CDATA[rmcon]]></dc:creator><pubDate>Thu, 23 Jan 2025 19:08:42 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Thu, 23 Jan 2025 18:32:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmcon" aria-label="Profile: rmcon">@<bdi>rmcon</bdi></a> ok the quick way</p>
<p dir="auto">git reset --hard HEAD</p>
<p dir="auto">then<br />
git pull<br />
Then<br />
npm install</p>
]]></description><link>https://forum.magicmirror.builders/post/123323</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/123323</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 23 Jan 2025 18:32:15 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Thu, 23 Jan 2025 18:13:41 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><br />
~/MagicMirror/modules/MMM-Remote-Control $ git status<br />
On branch master<br />
Your branch is behind ‘origin/master’ by 8 commits, and can be fast-forwarded.<br />
(use “git pull” to update your local branch)</p>
<p dir="auto">Changes not staged for commit:<br />
(use “git add/rm …” to update what will be committed)<br />
(use “git restore …” to discard changes in working directory)<br />
modified:   modules.json<br />
deleted:    package-lock.json<br />
modified:   package.json</p>
<p dir="auto">no changes added to commit (use “git add” and/or “git commit -a”)</p>
]]></description><link>https://forum.magicmirror.builders/post/123322</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/123322</guid><dc:creator><![CDATA[rmcon]]></dc:creator><pubDate>Thu, 23 Jan 2025 18:13:41 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Thu, 23 Jan 2025 18:09:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmcon" aria-label="Profile: rmcon">@<bdi>rmcon</bdi></a> post results of</p>
<p dir="auto">git status</p>
<p dir="auto">in the mmm-remote-control<br />
folder</p>
]]></description><link>https://forum.magicmirror.builders/post/123321</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/123321</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 23 Jan 2025 18:09:28 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Thu, 23 Jan 2025 17:39:22 GMT]]></title><description><![CDATA[<p dir="auto">Resurrecting an old thread.  Still fairly new to this stuff and trying to learn how to solve problems others have had before…</p>
<p dir="auto">I’ve got notifications that several modules need to be updated and I’m trying to get them done.  Currently attempting to update MMM-Remote-Control using the instructions provided :</p>
<p dir="auto">cd ~/MagicMirror/modules/MMM-Remote-Control # adapt directory if you are using a different one<br />
git pull<br />
npm install # install (new) dependencies</p>
<p dir="auto">I am getting the same messages as the OP.  I am in the module folder and tried running the rm command and I get this:</p>
<p dir="auto">~/MagicMirror/modules/MMM-Remote-Control $ rm package-lock.json<br />
rm: cannot remove ‘package-lock.json’: No such file or directory</p>
<p dir="auto">I thought maybe that meant that I had deleted the package-lock and tried running the update command again, but keep getting the same message.</p>
<p dir="auto">I tried running the install script again, and when asked if I wanted to update (Y), I ended up with the same problem.</p>
<p dir="auto">Appreciate any guidance.  Running MM v2.30.0 (installed using Sam’s scripts) on RPI 3B+.</p>
]]></description><link>https://forum.magicmirror.builders/post/123320</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/123320</guid><dc:creator><![CDATA[rmcon]]></dc:creator><pubDate>Thu, 23 Jan 2025 17:39:22 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:54:58 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> thanks for the script I’ll save it for later use and it worked thanks!!</p>
]]></description><link>https://forum.magicmirror.builders/post/75008</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/75008</guid><dc:creator><![CDATA[KumarTRD]]></dc:creator><pubDate>Mon, 11 May 2020 03:54:58 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:42:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kumartrd" aria-label="Profile: KumarTRD">@<bdi>KumarTRD</bdi></a> said in <a href="/post/75005">Unable to update modules</a>:</p>
<blockquote>
<p dir="auto">any way to remove it manually?</p>
</blockquote>
<p dir="auto">yes, the rm command</p>
]]></description><link>https://forum.magicmirror.builders/post/75007</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/75007</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 11 May 2020 03:42:37 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:41:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kumartrd" aria-label="Profile: KumarTRD">@<bdi>KumarTRD</bdi></a> to update MagicMirror itself, use my update script<br />
see here<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">its a 2 step process… run once to understand what is going on and things u might have to do, run second time to DO the update</p>
]]></description><link>https://forum.magicmirror.builders/post/75006</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/75006</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 11 May 2020 03:41:56 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:41:22 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> any way to remove it manually?</p>
]]></description><link>https://forum.magicmirror.builders/post/75005</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/75005</guid><dc:creator><![CDATA[KumarTRD]]></dc:creator><pubDate>Mon, 11 May 2020 03:41:22 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:39:15 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> ok I’ll give it a try thanks for your assistance.</p>
]]></description><link>https://forum.magicmirror.builders/post/75004</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/75004</guid><dc:creator><![CDATA[KumarTRD]]></dc:creator><pubDate>Mon, 11 May 2020 03:39:15 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:36:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kumartrd" aria-label="Profile: KumarTRD">@<bdi>KumarTRD</bdi></a> every module that has a package.json file and uses the step npm install will have a lock file.<br />
but as  I said, it should NOT have been included in the git package, because it produces this error, and prevents users from moving forward</p>
]]></description><link>https://forum.magicmirror.builders/post/75003</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/75003</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 11 May 2020 03:36:48 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:35:21 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> it looks like it’s present in all my modules because I get the same error when attempting to up those as well and my MagicMirror software as well. Any way to complete remove it ?</p>
]]></description><link>https://forum.magicmirror.builders/post/75002</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/75002</guid><dc:creator><![CDATA[KumarTRD]]></dc:creator><pubDate>Mon, 11 May 2020 03:35:21 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:33:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kumartrd" aria-label="Profile: KumarTRD">@<bdi>KumarTRD</bdi></a> said in <a href="/post/75000">Unable to update modules</a>:</p>
<blockquote>
<p dir="auto">rm package-lock.json in the module folder</p>
</blockquote>
<p dir="auto">in the module folder, thats where you were when u got the error</p>
]]></description><link>https://forum.magicmirror.builders/post/75001</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/75001</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 11 May 2020 03:33:54 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:33:11 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> correct Sam but do I run the rm package-lock.json in the module folder or in cd /MagicMirror folder? I haven’t tried it in the module folder</p>
]]></description><link>https://forum.magicmirror.builders/post/75000</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/75000</guid><dc:creator><![CDATA[KumarTRD]]></dc:creator><pubDate>Mon, 11 May 2020 03:33:11 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:33:02 GMT]]></title><description><![CDATA[<p dir="auto">this file is rebuilt each time by npm install<br />
but it is also included in the git repo for this module, it should not be</p>
]]></description><link>https://forum.magicmirror.builders/post/74999</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/74999</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 11 May 2020 03:33:02 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:31:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kumartrd" aria-label="Profile: KumarTRD">@<bdi>KumarTRD</bdi></a> you are in the module folder, right?</p>
<pre><code>cd  ~/MagicMirror/modules/MMM-Todoist 
rm package-lock.json
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/74998</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/74998</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 11 May 2020 03:31:41 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:30:18 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’ve tired to run rm package-lock.json but tells me there is no active directory.</p>
]]></description><link>https://forum.magicmirror.builders/post/74997</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/74997</guid><dc:creator><![CDATA[KumarTRD]]></dc:creator><pubDate>Mon, 11 May 2020 03:30:18 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to update modules on Mon, 11 May 2020 03:10:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kumartrd" aria-label="Profile: KumarTRD">@<bdi>KumarTRD</bdi></a> said in <a href="/post/74994">Unable to update modules</a>:</p>
<blockquote>
<p dir="auto">package-lock.json</p>
</blockquote>
<p dir="auto">erase the package-lock.json and then git pull again, and npm install</p>
]]></description><link>https://forum.magicmirror.builders/post/74995</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/74995</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 11 May 2020 03:10:36 GMT</pubDate></item></channel></rss>