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.

    Update Magic Mirror error

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 3 Posters 3.0k Views 3 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.
    • S Offline
      sdetweil @MisterT
      last edited by

      @MisterT said in Update Magic Mirror error:

      Package-lock.json
      vendor / package-lock.json

      you can erase these two files, then will be created

      config/config.js.sample

      git thinks this file was changed, and it should not have been

      so, restore that file from the local repo

      cd ~/MagicMirror
      git checkout -- config/config.js.sample
      

      then try again,

      I have been working on a new script to do upgrades, to help avoid these problems…
      i’d be interested in your experience if u could try it…

      see
      https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • mumblebajM Offline
        mumblebaj Module Developer @MisterT
        last edited by

        @MisterT You could also just do a git reset --hard and then git pull $$ npm install. I have had this issue every time I had to update my mirror.

        Check out my modules at: https://github.com/mumblebaj?tab=repositories
        Check my blog-post: https://mumblebaj.xyz/

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

          hi,
          sdetweil: i try your solution:

          cd ~/MagicMirror
          git checkout – config/config.js.sample

          but i have the same problem. git pull said me the same thing. Have you a other idea?

          mumblebaj: if y use this command line, all my modules and config will be deleted? if i copy my modules folder and config folder and paste them in the new version of Magic mirror, everything will work fine?

          Thanks

          mumblebajM S 2 Replies Last reply Reply Quote 0
          • mumblebajM Offline
            mumblebaj Module Developer @MisterT
            last edited by

            @MisterT You will not lose your modules and configs.

            Check out my modules at: https://github.com/mumblebaj?tab=repositories
            Check my blog-post: https://mumblebaj.xyz/

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @MisterT
              last edited by

              @MisterT notice my post had 2 - in front of filename. Yours appears only to have one

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                thanks @mumblebaj you’re awesome !!!. Git reset --hard work fine
                Update MM2.8 is ok.

                mumblebajM 1 Reply Last reply Reply Quote 0
                • mumblebajM Offline
                  mumblebaj Module Developer @MisterT
                  last edited by

                  @MisterT Great it worked for you. Please mark the post as Resolved if you are happy that it worked.

                  Check out my modules at: https://github.com/mumblebaj?tab=repositories
                  Check my blog-post: https://mumblebaj.xyz/

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • 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