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

Updating to V2.10: package-lock.json

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 3 Posters 3.3k 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.
  • ? Offline
    A Former User
    last edited by Jan 10, 2020, 10:02 AM

    When I try to update to version 2.10 I get the following massage:

    Aktualisiere 5000147e…b595cdd
    error: Ihre lokalen Änderungen in den folgenden Dateien würden durch den Merge überschrieben werden: package-lock.json
    Bitte comitten oder stashen Sie Ihre Änderungen, bevor Sie mergen.
    Abbruch

    I have no experience in coding and don’t know what to do. Google search brought me to websites for coding experts. Help welcome!

    L 1 Reply Last reply Jan 10, 2020, 1:35 PM Reply Quote 0
    • L Offline
      lavolp3 Module Developer @Guest
      last edited by lavolp3 Jan 10, 2020, 1:36 PM Jan 10, 2020, 1:35 PM

      @beech-13465 you can either delete the package-lock.json file or execute the following

      git reset --hard
      git pull
      

      The package-lock.json locks the current state of npm modules installed.
      However, as far as I know it’s not problematic to delete it. It is created again with a new npm install
      git reset --hardresets ALL of your local changes to the MM repository to the latest state of the origin repository

      How to troubleshoot modules
      MMM-soccer v2, MMM-AVStock

      S ? 2 Replies Last reply Jan 10, 2020, 3:42 PM Reply Quote 0
      • S Away
        sdetweil @lavolp3
        last edited by Jan 10, 2020, 3:42 PM

        @lavolp3 if you used the script, it would tell u they don’t need to be saved

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @lavolp3
          last edited by Jan 10, 2020, 11:59 PM

          @lavolp3 It worked. Thanks a lot!
          I used the update-instuctions:

          git pull && npm install
          

          Looks like I have to do the reset every time before I update?!

          S 1 Reply Last reply Jan 11, 2020, 12:24 AM Reply Quote 0
          • S Away
            sdetweil @Guest
            last edited by Jan 11, 2020, 12:24 AM

            @beech-13465 start using the update scripts…

            see

            https://github.com/sdetweil/MagicMirror_scripts

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            ? 1 Reply Last reply Jan 11, 2020, 1:26 AM Reply Quote 0
            • ? Offline
              A Former User @sdetweil
              last edited by Jan 11, 2020, 1:26 AM

              @sdetweil OK, thanks! I realized, the new documentation site online now is very helpful.

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