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.

    How to properly update modules?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    12 Posts 4 Posters 4.0k Views 4 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.
    • Cliff365C Offline
      Cliff365
      last edited by

      I get a message that MMM-Multimonth and MMM-Wallpaper need updating.

      I open a console window, go into each module folder and enter:

      git pull
      npm install

      No errors. I restart MM and no message. After a few hours the messages are back as if I never updated them.

      I must be doing something wrong.

      S qu1queQ 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @Cliff365
        last edited by

        @Cliff365 tell us more. what environment are you using? pi w raspi os, mmos, docker?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        Cliff365C 1 Reply Last reply Reply Quote 0
        • Cliff365C Offline
          Cliff365 @sdetweil
          last edited by

          @sdetweil Oops. Raspberry Pi 3b+. Just recently did the update using:

          bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” apply

          The update completes without an error.

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

            @Cliff365 when in the module folder and u do git pull, does it complete ok?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • qu1queQ Offline
              qu1que Project Sponsor @Cliff365
              last edited by

              @Cliff365

              Hi, today I have an update on MMM-Wallpaper module too. I updated it using git pull && npm install. A few hours later, I had another update, so I repeated the process. I think it’s not an error. I think it’s the module developer that is making some changes to the code.

              Try to check if the response on the terminal is always the same when updating or if they are different. In the case I just told you about, the updates were different.

              Cliff365C 1 Reply Last reply Reply Quote 0
              • Cliff365C Offline
                Cliff365 @qu1que
                last edited by

                @qu1que You may be right. I’m getting this for MMM-Wallpaper.

                wallpaper.jpg

                This one for MMM-Multimonth
                multi.jpg

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

                  @Cliff365 those are from the npm install

                  you can turn off with --no-audit

                  so, the git pull worked ok…

                  if you do it again it should say up to date

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  BKeyportB 1 Reply Last reply Reply Quote 0
                  • BKeyportB Offline
                    BKeyport Module Developer @sdetweil
                    last edited by

                    To be fair, for MMM-Multimonth I did a pair of updates nearly back to back. Screwed up the first one. Update was very minor, you shouldn’t have to re-run NPM Install with it.

                    As for the security vulnerability - I’m aware… Been trying to re-code around it (It’s moment.js - getting rid of it)

                    The "E" in "Javascript" stands for "Easy"

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

                      @BKeyport u can just turn off the warning, save grief… this is not a general web page that 1000’s will visit…

                      npm install --no-audit --omit=dev

                      (updated install and upgrade to do this, stop users from doing dumb audit which screws things up)

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      BKeyportB 1 Reply Last reply Reply Quote 0
                      • BKeyportB Offline
                        BKeyport Module Developer @sdetweil
                        last edited by

                        @sdetweil yeah, well… Like I said, I’m re-writing code anyway. Moment is dead. Might as well bury it.

                        The "E" in "Javascript" stands for "Easy"

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