• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Unable to update

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 6 Posters 7.9k Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    eugenelai
    last edited by Jan 2, 2018, 10:15 AM

    Hi all,

    I’m trying to update my MagicMirror but have two issues:

    1. When I type in sudo git pull && npm install to try update I get fatal: 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 a init git command?

    2. 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

    M S 2 Replies Last reply Jan 2, 2018, 12:28 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @eugenelai
      last edited by Mykle1 Jan 2, 2018, 12:29 PM Jan 2, 2018, 12:28 PM

      @eugenelai

      You should not have to use sudo when updating. You’re in the right directory, so, just git pull && npm install

      Any 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

      Create a working config
      How to add modules

      E 1 Reply Last reply Jan 3, 2018, 12:10 AM Reply Quote 0
      • F Offline
        fox
        last edited by Jan 2, 2018, 6:50 PM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer @eugenelai
          last edited by Jan 2, 2018, 10:18 PM

          @eugenelai sounds like you downloaded the mirror manually and didn’t use git clone.

          Please create a github issue if you need help, so I can keep track

          1 Reply Last reply Reply Quote 0
          • E Offline
            eugenelai @Mykle1
            last edited by eugenelai Jan 3, 2018, 12:10 AM Jan 3, 2018, 12:10 AM

            @Mykle1

            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 init then see what happens.

            @strawberry-3.141
            Nope did the automatic install.

            M 1 Reply Last reply Jan 3, 2018, 12:13 AM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @eugenelai
              last edited by Jan 3, 2018, 12:13 AM

              @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

              Create a working config
              How to add modules

              E 1 Reply Last reply Jan 3, 2018, 12:17 AM Reply Quote 0
              • E Offline
                eugenelai @Mykle1
                last edited by Jan 3, 2018, 12:17 AM

                @Mykle1

                Yeah still doesn’t work. I’ve done git init then tried both git pull && npm install with 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 $ 
                
                M 1 Reply Last reply Jan 3, 2018, 12:20 AM Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @eugenelai
                  last edited by Mykle1 Jan 3, 2018, 12:23 AM Jan 3, 2018, 12:20 AM

                  @eugenelai

                  Personally, if this was me, I would rename my existing MagicMirror folder, install the new MagicMirror via git clone, run npm install in the new MagicMirror folder, then move what I want from the old MagicMirror installation into the new installation.

                  NO SUDO necessary

                  Create a working config
                  How to add modules

                  C E 2 Replies Last reply Jan 3, 2018, 12:21 AM Reply Quote 1
                  • C Offline
                    cowboysdude Module Developer @Mykle1
                    last edited by Jan 3, 2018, 12:21 AM

                    @Mykle1 Yes that would be the easiest way to do it!

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      eugenelai @Mykle1
                      last edited by Jan 3, 2018, 12:24 AM

                      @Mykle1

                      that’s a good idea… Let me try that.

                      Cheers for the help

                      C 1 Reply Last reply Jan 3, 2018, 12:26 AM Reply Quote 1
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        5/15
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy