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.

    issues updating MMM-calendar EXT3

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    6 Posts 2 Posters 372 Views 2 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.
    • J Offline
      JMac
      last edited by

      I’ve had the notification that this module needs an update, the guidance says go into the module folder and run “git pull” when I run this I get an error of,
      your local changes to the following files would be overwritten by the merge: package-lock.json
      please commit them or stash them before you merge.
      Aborting.

      How do I mitigate for this issue without causing fundamental problems with my MM setup, It’s working perfectly at the moment and I don’t want to a knock down the first domino in chain of potential issues.

      Cheers.

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

        @JMac the package-lock.json was updated by the last npm install

        so do this, in the module folder

        git checkout package-lock.json
        

        then the

        npm install
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          JMac @sdetweil
          last edited by JMac

          @sdetweil used both of those then tried to up date the rest of the module and still get the same issue when running git pull in the module folder, this is what it says;
          hint: Pulling without specifying how to reconcile divergent branches is
          hint: discouraged. You can squelch this message by running one of the following
          hint: commands sometime before your next pull:
          hint:
          hint: git config pull.rebase false # merge (the default strategy)
          hint: git config pull.rebase true # rebase
          hint: git config pull.ff only # fast-forward only
          hint:
          hint: You can replace “git config” with “git config --global” to set a default
          hint: preference for all repositories. You can also pass --rebase, --no-rebase,
          hint: or --ff-only on the command line to override the configured default per
          hint: invocation.
          Updating 3ca76d9…dfe2425
          error: Your local changes to the following files would be overwritten by merge:
          package-lock.json
          Please commit your changes or stash them before you merge.
          Aborting

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

            @JMac said in issues updating MMM-calendar EXT3:

            used both of those then tried to up date the rest of the module

            sorry, brain fart…

            you need the git pull
            after the git reset , before the npm install

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              JMac @sdetweil
              last edited by

              @sdetweil so just to be clear its,
              git checkout package-lock.json
              git reset
              git pull
              npm install

              within the calendar ext3 module folder?

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

                @JMac no

                # put package-lock.json back to last git clone state
                git reset package-lock.json
                # update the module
                git pull
                # rerun npm install  with new code
                npm install
                

                all in the module folder

                # lines are comments and will be ignored if you copy paste that whole thing
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                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