MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    UNSOLVED Magic Mirror Update process

    Feature Requests
    4
    11
    2873
    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.
    • BKeyport
      BKeyport Module Developer last edited by

      Can you please take “package.json” & “package-lock.json” out of the update for future releases so that we don’t have to remove them to update?

      Thanks!

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

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

        @BKeyport package.Json belongs to the project. There are new updates, which npm install needs to know about

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • BKeyport
          BKeyport Module Developer last edited by

          I always have to delete package.json when updating, this is why I’m asking… If there’s a smarter way to do that, please do.

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

          mumblebaj 1 Reply Last reply Reply Quote 0
          • mumblebaj
            mumblebaj Project Sponsor @BKeyport last edited by

            @BKeyport Does the git reset --hard not work for you?

            1 Reply Last reply Reply Quote 0
            • BKeyport
              BKeyport Module Developer last edited by

              I did not know about this command, what does it actually do? (I know, it does a hard reset, but what does that entail?)

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

              S mumblebaj 2 Replies Last reply Reply Quote 0
              • S
                sdetweil @BKeyport last edited by

                @BKeyport see the number 1 answer

                https://stackoverflow.com/questions/2530060/in-plain-english-what-does-git-reset-do

                this result from google search ‘what does git reset hard do’

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • mumblebaj
                  mumblebaj Project Sponsor @BKeyport last edited by

                  @BKeyport I simple terms, it gets rid of local changes.

                  1 Reply Last reply Reply Quote 0
                  • BKeyport
                    BKeyport Module Developer last edited by

                    Ahh, I see - it looks dangerous from what I’ve seen - would it kill my config.js and/or custom.css, or does it leave those alone?

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

                    mumblebaj bhepler 2 Replies Last reply Reply Quote 0
                    • mumblebaj
                      mumblebaj Project Sponsor @BKeyport last edited by

                      @BKeyport From my experience they don’t get touched. I have never had any issues with my mirror or modules after running that command and updating the mirror.

                      1 Reply Last reply Reply Quote 0
                      • bhepler
                        bhepler Project Sponsor @BKeyport last edited by

                        @BKeyport - It should leave those alone. config.js and custom.css are not part of the github project so they won’t be overwritten.

                        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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy