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.

    Mirror Update Permissions Error

    Scheduled Pinned Locked Moved Troubleshooting
    18 Posts 3 Posters 5.5k 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.
    • X Offline
      xxLulaBelle @sdetweil
      last edited by

      @sdetweil thank you will try this.

      1 Reply Last reply Reply Quote 0
      • X Offline
        xxLulaBelle
        last edited by

        I tried the above as suggested but get this error now:

        chown: invalid option – ‘r’
        Try ‘chown --help’ for more information.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @xxLulaBelle
          last edited by

          @xxLulaBelle look at the help, does it need capital R, not near my computer

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • X Offline
            xxLulaBelle
            last edited by

            Apologies I don’t speak the language so I don’t understand it unfortunately but I did a capital R and got the following:

            chown: invalid option – ‘r’
            Try ‘chown --help’ for more information.

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @xxLulaBelle
              last edited by

              @xxLulaBelle
              like this notice the dash - in front of the r

              sudo chown -R pi ~/.npm
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              X 1 Reply Last reply Reply Quote 0
              • X Offline
                xxLulaBelle @sdetweil
                last edited by

                Hi,

                Now getting this when I try to update.

                pi@raspberrypi:~/MagicMirror $ git pull && npm install
                Updating 447c0bf…018cb91
                error: Your local changes to the following files would be overwritten by merge:
                package-lock.json
                package.json
                Please commit your changes or stash them before you merge.
                Aborting

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @xxLulaBelle
                  last edited by sdetweil

                  @xxLulaBelle we don’t care about the package-lock.json file

                  but the package.json maybe

                  do

                  git diff package.json
                  

                  to see what was changed.

                  my update script, from here, https://github.com/sdetweil/MagicMirror_scripts, might have helped.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • X Offline
                    xxLulaBelle
                    last edited by

                    @sdetweil said in Mirror Update Permissions Error:

                    git diff package.json

                    pi@raspberrypi:~ $ git diff package.json
                    Not a git repository
                    To compare two paths outside a working tree:
                    usage: git diff [–no-index]

                    1 Reply Last reply Reply Quote 0
                    • X Offline
                      xxLulaBelle
                      last edited by

                      Sorry realised I hadn’t opened Mirror…

                      diff --git a/package.json b/package.json
                      index 317969e…10a0407 100644
                      — a/package.json
                      +++ b/package.json
                      @@ -39,7 +39,7 @@
                      “chai”: “^4.1.2”,
                      “chai-as-promised”: “^7.1.1”,
                      “current-week-number”: “^1.0.7”,

                      • “danger”: “^3.1.3”,
                      • “danger”: “^10.2.0”,
                        “grunt”: “latest”,
                        “grunt-eslint”: “latest”,
                        “grunt-jsonlint”: “latest”,
                        @@ -48,7 +48,7 @@
                        “grunt-yamllint”: “latest”,
                        “http-auth”: “^3.2.3”,
                        “jsdom”: “^11.6.2”,
                      • “mocha”: “^7.0.0”,
                      • “mocha”: “^8.0.1”,
                        “mocha-each”: “^1.1.0”,
                        “mocha-logger”: “^1.0.6”,
                        “spectron”: “^8.0.0”,
                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @xxLulaBelle
                        last edited by

                        @xxLulaBelle what version r u on?

                        grep version package.json

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • X Offline
                          xxLulaBelle
                          last edited by

                          I have no idea Sam. Honestly complete newb, don’t know what I’m donig half the time :man_facepalming_light_skin_tone:

                          mumblebajM S 2 Replies Last reply Reply Quote 0
                          • mumblebajM Offline
                            mumblebaj Module Developer @xxLulaBelle
                            last edited by

                            @xxLulaBelle usually when I have this issue i run the following the the MagicMirror folder:

                            git reset --hard
                            then
                            git pull && npm install
                            That works for me and I am able to update

                            Check out my modules at: https://github.com/mumblebaj?tab=repositories
                            Check my blog-post: https://mumblebaj.xyz/
                            Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @xxLulaBelle
                              last edited by

                              @xxLulaBelle from the mm folder do

                              grep version package.json
                              

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @mumblebaj
                                last edited by

                                @mumblebaj that works, but. he made a change. let’s not lose this if it’s important.

                                use my script anyhow. solves lots of other problems with modules too

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                mumblebajM 1 Reply Last reply Reply Quote 0
                                • mumblebajM Offline
                                  mumblebaj Module Developer @sdetweil
                                  last edited by

                                  @sdetweil I agree, your scripts works wonders.

                                  Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                  Check my blog-post: https://mumblebaj.xyz/
                                  Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                                  1 Reply Last reply Reply Quote 0
                                  • X Offline
                                    xxLulaBelle
                                    last edited by

                                    Ok thanks all, will try :) Sorry for being clueless :man_facepalming_light_skin_tone:

                                    1 Reply Last reply Reply Quote 0

                                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                    With your input, this post could be even better 💗

                                    Register Login
                                    • 1 / 1
                                    • 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