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 5.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.
    • bheplerB Offline
      bhepler Module Developer @KumarTRD
      last edited by bhepler

      @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
      • justjim1220J Offline
        justjim1220 Module Developer @KumarTRD
        last edited by justjim1220

        @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

        bheplerB 1 Reply Last reply Reply Quote 0
        • bheplerB Offline
          bhepler Module Developer @justjim1220
          last edited by

          @justjim1220 He already got that one.

          1 Reply Last reply Reply Quote 1
          • karsten13K Offline
            karsten13
            last edited by

            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

              @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
              • 2 / 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