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

Attempting To Update

Scheduled Pinned Locked Moved Unsolved Troubleshooting
11 Posts 6 Posters 4.3k Views 5 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.
  • K Offline
    KumarTRD
    last edited by yawns Jan 24, 2019, 11:59 AM Jan 24, 2019, 4:01 AM

    Attempting to update y MagicMirror and getting the following…0_1548302466116_3c1adce9-d2de-4ef9-963f-f6fa6ea1cea1-image.png

    Bild Text

    Can anyone help out here… this is my first time updating since I started playing with my pi last year.

    1 Reply Last reply Reply Quote 0
    • U Offline
      Ultimatum22 Module Developer
      last edited by Jan 24, 2019, 7:46 AM

      Those files are auto created by the system, you can safely remove them.

      rm package-lock.json
      
      rm vendor/package-lock.json
      

      In order to update git requires that no local files have changes, that is what the error message means.
      Those files should really be in a .gitignore file but that is another issues. Removing the files should solve your issue.

      L K 3 Replies Last reply Jan 24, 2019, 12:17 PM Reply Quote 1
      • L Offline
        lavolp3 Module Developer @Ultimatum22
        last edited by Jan 24, 2019, 12:17 PM

        @ultimatum22 said in Attempting To Update:

        Those files should really be in a .gitignore file but that is another issues.

        So why aren’t we putting them in? I still don’t really know what their purpose is.

        U 1 Reply Last reply Jan 24, 2019, 1:44 PM Reply Quote 0
        • U Offline
          Ultimatum22 Module Developer @lavolp3
          last edited by Jan 24, 2019, 1:44 PM

          @lavolp3 Because they are automatically generated files, you don’t include them in a repository.

          package-lock.json is automatically generated for any operations where npm modifies either the node_modules tree, or package.json. It describes the exact tree that was generated, such that subsequent installs are able to generate identical trees, regardless of intermediate dependency updates.
          

          https://docs.npmjs.com/files/package-lock.json

          L 1 Reply Last reply Jan 24, 2019, 2:36 PM Reply Quote 0
          • L Offline
            lavolp3 Module Developer @Ultimatum22
            last edited by Jan 24, 2019, 2:36 PM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • K Offline
              KumarTRD @Ultimatum22
              last edited by Jan 25, 2019, 2:51 AM

              @ultimatum22 tried what you said but got the following…
              0_1548384651039_E674B1BE-FBC8-44F8-A635-5FAB15E9E3BD.png

              Your help is appreciated; am I using the correct command to update my MagicMirror

              B J 2 Replies Last reply Jan 25, 2019, 3:36 AM Reply Quote 0
              • B Offline
                bhepler Module Developer @KumarTRD
                last edited by bhepler Jan 25, 2019, 3:37 AM Jan 25, 2019, 3:36 AM

                @kumartrd You just tried to remove the same file twice, that’s all. You’re almost there. Try:

                cd ~/MagicMirror
                rm package-lock.json
                

                And while I have you here… please use the Markdown features of the board in the future when posting code and error messages. Thanks.

                1 Reply Last reply Reply Quote 0
                • J Offline
                  justjim1220 Module Developer @KumarTRD
                  last edited by justjim1220 Jan 25, 2019, 4:32 AM Jan 25, 2019, 4:30 AM

                  @kumartrd

                  you will also need to do this:

                  cd ~/MagicMirror/vendor
                  rm package-lock.json
                  

                  "Life's Too Short To Dance With Ugly People"
                  Jim Hallock - 1995

                  B 1 Reply Last reply Jan 26, 2019, 3:31 AM Reply Quote 0
                  • B Offline
                    bhepler Module Developer @justjim1220
                    last edited by Jan 26, 2019, 3:31 AM

                    @justjim1220 He already got that one.

                    1 Reply Last reply Reply Quote 1
                    • K Online
                      karsten13
                      last edited by Jan 28, 2019, 7:56 PM

                      The git pull command fails if files are locally changed, because the pull would override them.
                      With git diff you can see what has changed.

                      If you are not interested to save these local changes you can run git reset --hard. This will revert all changes and after this the git pull should work.

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