• 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.8k 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.
  • 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 Offline
                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
                • K Offline
                  KumarTRD @Ultimatum22
                  last edited by May 2, 2019, 1:46 AM

                  @Ultimatum22 hey there went to do the most current update and ran into the same issue with the vendor/package-lock.json package so I ran the removal script as stated below and it worked and now my pi is updated… I remember you brought up that I should have that package in a gitignore file how do I move it over?

                  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 Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy