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

How to properly update modules?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
12 Posts 4 Posters 3.9k 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.
  • C Offline
    Cliff365
    last edited by Aug 21, 2022, 2:29 PM

    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 Q 2 Replies Last reply Aug 21, 2022, 5:35 PM Reply Quote 0
    • S Away
      sdetweil @Cliff365
      last edited by Aug 21, 2022, 5:35 PM

      @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

      C 1 Reply Last reply Aug 21, 2022, 6:54 PM Reply Quote 0
      • C Offline
        Cliff365 @sdetweil
        last edited by Aug 21, 2022, 6:54 PM

        @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 Aug 21, 2022, 8:24 PM Reply Quote 0
        • S Away
          sdetweil @Cliff365
          last edited by Aug 21, 2022, 8:24 PM

          @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
          • Q Offline
            qu1que Project Sponsor @Cliff365
            last edited by Aug 21, 2022, 9:44 PM

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

            C 1 Reply Last reply Aug 22, 2022, 5:38 PM Reply Quote 0
            • C Offline
              Cliff365 @qu1que
              last edited by Aug 22, 2022, 5:38 PM

              @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 Aug 22, 2022, 5:59 PM Reply Quote 0
              • S Away
                sdetweil @Cliff365
                last edited by Aug 22, 2022, 5:59 PM

                @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

                B 1 Reply Last reply Aug 22, 2022, 9:07 PM Reply Quote 0
                • B Offline
                  BKeyport Module Developer @sdetweil
                  last edited by Aug 22, 2022, 9:07 PM

                  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 Aug 22, 2022, 9:09 PM Reply Quote 0
                  • S Away
                    sdetweil @BKeyport
                    last edited by Aug 22, 2022, 9:09 PM

                    @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

                    B 1 Reply Last reply Aug 22, 2022, 9:10 PM Reply Quote 0
                    • B Offline
                      BKeyport Module Developer @sdetweil
                      last edited by Aug 22, 2022, 9:10 PM

                      @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 Aug 22, 2022, 9:10 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        6/12
                        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