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.

    Updating 6db61b4..de57daa

    Scheduled Pinned Locked Moved Solved Troubleshooting
    26 Posts 9 Posters 12.7k Views 9 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.
    • C Offline
      costascontis
      last edited by

      i also get an error from git pull:

      pi@magicmirror:~/MagicMirror $ sudo git pull && npm install
      Updating 6db61b4..de57daa
      error: Your local changes to the following files would be overwritten by merge:
      	package-lock.json
      	vendor/package-lock.json
      Please commit your changes or stash them before you merge.
      Aborting
      
      

      and i dont know what to do…

      D idoodlerI 2 Replies Last reply Reply Quote 0
      • D Offline
        dazza120 @costascontis
        last edited by

        @costascontis rename them and the git pull will make a new version of them, but be warned I’m not sure if that’s why calendar just displays loading when it was working on previous but don’t think so as all the other modules work.

        1 Reply Last reply Reply Quote 0
        • idoodlerI Offline
          idoodler Module Developer @costascontis
          last edited by

          @costascontis You can just delete both package-lock.jsonfiles. Everything will work after you have deleted them.

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            MWel1977 @idoodler
            last edited by

            I have the same problem as @costascontis and will try to delete that file.
            But I also would like to know what the latest version of Node.js is.
            At https://github.com/nodesource/distributions#debinstall I can see a version 11.x.
            my version on the pi 3B+ is v9.11.2
            Is that the latest version or must I update to v11.x via:
            sudo su
            curl -sL https://deb.nodesource.com/setup_11.x | bash -
            apt-get install -y nodejs

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              MWel1977 @MWel1977
              last edited by

              Just moved the package-lock.js to a new folder “Old files” and run “sudo git pull && npm install” again and it worked for me.
              I do get some warnings from “time-grunt@2.0.0” and 2 from npm skipping optional dependency’s but below that it reads: MagicMirror installation succesfull! NICE!.. well…that last word isn’t part of the update! Hahaha

              And below that it found 9 vulnerabilities. Is that a problem?

              D idoodlerI 2 Replies Last reply Reply Quote 0
              • D Offline
                dazza120 @MWel1977
                last edited by

                @mwel1977 even the calendar as mine is up the swannie

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  MWel1977 @dazza120
                  last edited by

                  @dazza120 I’m not using the standard calendar.
                  But after the update my MM2 works like before. Only the modules I’m working on are still not showing correctly…becouse I’m working on them to get them to work properly. :smiling_face_with_open_mouth_cold_sweat: :smiling_face_with_open_mouth_cold_sweat:
                  But what do you mean with: “…is up the swannie”?
                  you mean it doesn’t work?

                  D 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil
                    last edited by

                    @mwel1977 said in Updating 6db61b4..de57daa:

                    the swannie

                    swannie river

                    up the river…
                    http://www.musicanet.org/robokopp/usa/waydownu.htm

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dazza120 @MWel1977
                      last edited by

                      @mwel1977 yep UK local slang, anyway I’ve sorted it now I downloaded the Magic Mirror from github on the Pi, unzipped it and then copied the whole folder to the module default location and over wrote everything, it was missing a lot of files for some reason. Anyway enough said it’s working like it should now 👌🏾

                      1 Reply Last reply Reply Quote 0
                      • idoodlerI Offline
                        idoodler Module Developer @MWel1977
                        last edited by

                        @mwel1977 The vulnerabilities needs to be fixed by the module developer. Thats not your responsibility, you can just ignore them.

                        Because of the Node.js version: You don’t have to update to a newer version of Node.js. Latest isn’t always the greatest, there are some known compatibility issues with v11.

                        M 1 Reply Last reply Reply Quote 0
                        • R Offline
                          rosenm
                          last edited by

                          this one helped me:

                          https://forum.magicmirror.builders/topic/4418/update/3

                          1 Reply Last reply Reply Quote 0
                          • ScrewyoudriverS Offline
                            Screwyoudriver
                            last edited by

                            I renamed the old folder and did a fresh installation. Half an hour of work if you use the old config and css.

                            1 Reply Last reply Reply Quote 0
                            • I Offline
                              icephreaq
                              last edited by

                              I do have an active internet connection. I typically admin my mirror through SSH from a separate Linux machine and I’m able to connect to the mirror and update other items without issue. git status gives the following.

                              On branch master
                              Your branch is behind 'origin/master' by 124 commits, and can be fast-forwarded.
                                (use "git pull" to update your local branch)
                              Changes not staged for commit:
                                (use "git add <file>..." to update what will be committed)
                                (use "git checkout -- <file>..." to discard changes in working directory)
                              
                              	modified:   fonts/package-lock.json
                              	modified:   package-lock.json
                              	modified:   package.json
                              	modified:   vendor/package-lock.json
                              
                              Untracked files:
                                (use "git add <file>..." to include in what will be committed)
                              
                              	core
                              	nohup.out
                              
                              no changes added to commit (use "git add" and/or "git commit -a")
                              
                              bheplerB 1 Reply Last reply Reply Quote 0
                              • bheplerB Offline
                                bhepler Module Developer @icephreaq
                                last edited by bhepler

                                @icephreaq - Give this a try:

                                cd ~/MagicMirror
                                git stash
                                git pull
                                npm install
                                

                                Also, @costascontis - You shouldn’t run the git commands as sudo. You may end up screwing up your permissions on the files pulled down from git.

                                1 Reply Last reply Reply Quote 0
                                • I Offline
                                  icephreaq
                                  last edited by

                                  I ended up removing all instances of package-lock.json and ran git pull and was able to successfully update. Thanks for everyone’s input on this!

                                  1 Reply Last reply Reply Quote 1
                                  • M Offline
                                    MWel1977 @idoodler
                                    last edited by

                                    @idoodler Okay. Thanks for that answer! hehehehe…
                                    Anyway my MM2 is working like it should be after I moved that folder and did the git pull again.
                                    But about the steps to take on how to update a module or a dependency or Node.js in my case… is that written down somewere here on the forum?
                                    Like… all the steps someone needs to take in order to keep MM2 in shape?

                                    D 1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      dazza120 @MWel1977
                                      last edited by

                                      @mwel1977 get yourself MMM-RemoteControl and MMM-RemoteRepositories to get those modules updated easily, it will check through them and update automagically when you go into the html page

                                      M 1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        MWel1977 @dazza120
                                        last edited by

                                        @dazza120 Thanks for the tip!
                                        Downside of that is that I don’t learn how things work.
                                        Doing it myself (with some help of you all wonderfull people here) is the best way of learning things.
                                        I do have SSH setup so I can dail in via my smartphone…but first I need to get better in the commandline commands.

                                        D 1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          dazza120 @MWel1977
                                          last edited by

                                          @mwel1977 I use VNC on my Pi to connect to it then terminal and just install those like you would any module then edit the config file, then just log into the html page which would be the address of your device xxxxxx:8080/remote.html
                                          and that’s the rest of the magic is done on that webpage

                                          1 Reply Last reply Reply Quote 0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          • 1
                                          • 2
                                          • 1 / 2
                                          • First post
                                            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