Read the statement by Michael Teeuw here.
Unable to update
-
Hi all,
I’m trying to update my MagicMirror but have two issues:
-
When I type in
sudo git pull && npm installto try update I getfatal: Not a git repository (or any of the parent directories): .git. The current directory I am in is /home/Pi/MagicMirror. So not sure if I have to do ainit gitcommand? -
If and when I do update I’ve made some changes to the modules I’ve installed. Is the best way, to temporarily copy them some where else then copy them back after the update?
Thanks in advance
-
-
You should not have to use
sudowhen updating. You’re in the right directory, so, justgit pull && npm installAny changes you’ve made to the module files will be overwritten. So, yes, copy/move them to another location outside of the MagicMirror directory before updating
-
This post is deleted! -
@eugenelai sounds like you downloaded the mirror manually and didn’t use git clone.
-
Sorry I get the same error message if I use sudo as well. I guess i’ll backup all the files I’ve changed do a
git initthen see what happens.@strawberry-3.141
Nope did the automatic install. -
@eugenelai said in Unable to update:
Sorry I get the same error message if I use sudo as well.
Ok, but I said you should NOT have to use sudo to run those commands
-
Yeah still doesn’t work. I’ve done
git initthen tried bothgit pull && npm installwith and without sudo and I get the following:pi@MagicMirrorPi:~ $ cd MagicMirror pi@MagicMirrorPi:~/MagicMirror $ sudo git pull && npm install fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched. pi@MagicMirrorPi:~/MagicMirror $ -
Personally, if this was me, I would rename my existing MagicMirror folder, install the new MagicMirror via git clone, run
npm installin the new MagicMirror folder, then move what I want from the old MagicMirror installation into the new installation.NO SUDO necessary
-
@Mykle1 Yes that would be the easiest way to do it!
-
