MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Update got me cannot lock ref

    Troubleshooting
    2
    7
    512
    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.
    • sweup
      sweup last edited by

      Got this error message when trying to update, I tried some Google suggestions but none worked. Any suggestions?

      pi@raspberrypi:~/MagicMirror $ git pull && npm install
      error: cannot lock ref 'refs/tags/v2.13.0': unable to resolve reference 'refs/tags/v2.13.0': reference broken
      From https://github.com/MichMich/MagicMirror
       ! [new tag]           v2.13.0    -> v2.13.0  (unable to update local ref)
      error: cannot lock ref 'refs/tags/v2.14.0': unable to resolve reference 'refs/tags/v2.14.0': reference broken
       ! [new tag]           v2.14.0    -> v2.14.0  (unable to update local ref)
      
      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @sweup last edited by

        @sweup try this

        git remote prune origin

        Sam

        Create a working config
        How to add modules

        sweup 1 Reply Last reply Reply Quote 0
        • sweup
          sweup @sdetweil last edited by

          @sdetweil said in Update got me cannot lock ref:

          git remote prune origin

          thx, I tried this

          pi@raspberrypi:~/MagicMirror $ git remote prune origin
          pi@raspberrypi:~/MagicMirror $ git pull && npm install
          error: cannot lock ref 'refs/tags/v2.13.0': unable to resolve reference 'refs/tags/v2.13.0': reference broken
          From https://github.com/MichMich/MagicMirror
           ! [new tag]           v2.13.0    -> v2.13.0  (unable to update local ref)
          error: cannot lock ref 'refs/tags/v2.14.0': unable to resolve reference 'refs/tags/v2.14.0': reference broken
           ! [new tag]           v2.14.0    -> v2.14.0  (unable to update local ref)
          
          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @sweup last edited by sdetweil

            @sweup ok

            cd ~/MagicMirror
            rm .git/refs/tags/v2.13.0
            rm .git/refs/tags/v2.14.0
            then the purge refs command again
            

            Sam

            Create a working config
            How to add modules

            sweup 1 Reply Last reply Reply Quote 0
            • sweup
              sweup @sdetweil last edited by

              @sdetweil

              Thanks! I had to make a git stash but then it worked out.

              Unrelated - is it “safe” to update Node.js and do a sudo apt update and sudo apt upgrade of the Rpi, or could I expect issues? Sorry for noob Qs

              npm WARN npm npm does not support Node.js v10.23.1
              npm WARN npm You should probably upgrade to a newer version of node as we
              npm WARN npm can't make any promises that npm will work with this version.
              npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
              npm WARN npm You can find the latest version at https://nodejs.org/
              
              
              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @sweup last edited by

                @sweup ignore the warning, use as is

                Sam

                Create a working config
                How to add modules

                sweup 1 Reply Last reply Reply Quote 0
                • sweup
                  sweup @sdetweil last edited by

                  @sdetweil ok, thanks for your help!

                  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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy