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.

    Help with Update to 2.7.0

    Scheduled Pinned Locked Moved Solved Troubleshooting
    13 Posts 5 Posters 6.5k 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
      Kenny
      last edited by

      Sorry if this is an obvious question. I tried to update to 2.7.0.

      From the MagicMirror folder, I type git pull && npm install

      But the only response I see is “Updating de57daa…b508a62”. The I get the prompt back in a couple seconds.

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

        @Kenny try it one at a time

        git pull
        

        then

        npm install
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • K Offline
          Kenny
          last edited by Kenny

          @sdetweil : Thanks. I gave that a try.

          git pull

          Updating de57daa…b508a62

          npm install

          [installs MagicMirror 2.6.0]

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

            @Kenny could u do

            git remote -v

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • K Offline
              Kenny
              last edited by

              git remote -v

              RESPONSE:
              origin https://github.com/MichMich/MagicMirror.git (fetch)
              origin https://github.com/MichMich/MagicMirror.git (push)

              1 Reply Last reply Reply Quote 0
              • CyruS1337C Offline
                CyruS1337 Project Sponsor
                last edited by

                Run the following command in the MagicMirror folder

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

                Then execute in the folder the usual command for the upload

                git pull && npm install
                

                Now it should work

                Atelier-Made-in-iKiA 1 Reply Last reply Reply Quote 2
                • K Offline
                  Kenny
                  last edited by

                  Thanks for the help @sdetweil and @CyruS1337. The latest suggestion gave me the same "Updating … " response.

                  I just renamed my MagicMirror folder and did a clean install. Everything is working great again. THANKS!

                  1 Reply Last reply Reply Quote 0
                  • Atelier-Made-in-iKiA Offline
                    Atelier-Made-in-iKi @CyruS1337
                    last edited by

                    @CyruS1337 said in Help with Update to 2.7.0:

                    Run the following command in the MagicMirror folder

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

                    Then execute in the folder the usual command for the upload

                    git pull && npm install
                    

                    Now it should work

                    @CyruS1337 this solved the firt install command but…

                    ownloading tmp-2822-0-electron-v3.0.13-linux-armv7l.zip
                    Error: read ECONNRESET
                    /home/pi/MagicMirror/node_modules/electron/install.js:49
                      throw err
                      ^
                    
                    Error: read ECONNRESET
                        at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
                    npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
                    npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.
                    
                    npm ERR! code ELIFECYCLE
                    npm ERR! errno 1
                    npm ERR! electron@3.0.13 postinstall: `node install.js`
                    npm ERR! Exit status 1
                    npm ERR! 
                    npm ERR! Failed at the electron@3.0.13 postinstall script.
                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/pi/.npm/_logs/2019-04-05T19_09_38_688Z-debug.log
                    pi@raspberrypi:~/MagicMirror $ 
                    pi@raspberrypi:~/MagicMirror $ npm start
                    
                    > magicmirror@2.7.1 start /home/pi/MagicMirror
                    > sh run-start.sh
                    
                    run-start.sh: 4: run-start.sh: electron: not found
                    npm ERR! file sh
                    npm ERR! code ELIFECYCLE
                    npm ERR! errno ENOENT
                    npm ERR! syscall spawn
                    npm ERR! magicmirror@2.7.1 start: `sh run-start.sh`
                    npm ERR! spawn ENOENT
                    npm ERR! 
                    npm ERR! Failed at the magicmirror@2.7.1 start script.
                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                    
                    

                    if an idea
                    thanks
                    Jean-Philippe

                    1 Reply Last reply Reply Quote 0
                    • swvalentiS Offline
                      swvalenti Project Sponsor
                      last edited by

                      pi@raspberrypi:~ $ cd MagicMirror
                      pi@raspberrypi:~/MagicMirror $ git remote -v
                      origin	https://github.com/MichMich/MagicMirror.git (fetch)
                      origin	https://github.com/MichMich/MagicMirror.git (push)
                      pi@raspberrypi:~/MagicMirror $ 
                      pi@raspberrypi:~/MagicMirror $ rm package-lock.json
                      pi@raspberrypi:~/MagicMirror $ rm vendor/package-lock.json 
                      pi@raspberrypi:~/MagicMirror $ git pull && npm install
                      Updating de57daa..b508a62
                      pi@raspberrypi:~/MagicMirror $ 
                      
                      

                      Still have the same issue and can’t update…any help would be appreciated.

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

                        @swvalenti said in Help with Update to 2.7.0:

                        git pull && npm install

                        ok, lets try this

                        git stash
                        git pull
                        

                        if ok, then npm install

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • swvalentiS Offline
                          swvalenti Project Sponsor
                          last edited by

                          pi@raspberrypi:~ $ cd MagicMirror
                          pi@raspberrypi:~/MagicMirror $ git stash
                          fatal: Unable to create '/home/pi/MagicMirror/.git/index.lock': File exists.
                          
                          Another git process seems to be running in this repository, e.g.
                          an editor opened by 'git commit'. Please make sure all processes
                          are terminated then try again. If it still fails, a git process
                          may have crashed in this repository earlier:
                          remove the file manually to continue.
                          Cannot save the current index state
                          pi@raspberrypi:~/MagicMirror $ git pull
                          Updating de57daa..b508a62
                          pi@raspberrypi:~/MagicMirror $ npm install
                          
                          > magicmirror@2.6.0 install /home/pi/MagicMirror
                          > cd vendor && npm install
                          
                          npm notice created a lockfile as package-lock.json. You should commit this file.
                          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
                          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                          
                          audited 220 packages in 11.323s
                          found 4 low severity vulnerabilities
                            run `npm audit fix` to fix them, or `npm audit` for details
                          
                          > magicmirror@2.6.0 postinstall /home/pi/MagicMirror
                          > sh installers/postinstall/postinstall.sh && npm run install-fonts
                          
                          MagicMirror installation successful!
                          
                          > magicmirror@2.6.0 install-fonts /home/pi/MagicMirror
                          > cd fonts && npm install
                          
                          audited 1 package in 2.065s
                          found 0 vulnerabilities
                          
                          npm notice created a lockfile as package-lock.json. You should commit this file.
                          npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.
                          
                          audited 2427 packages in 54.343s
                          found 12 vulnerabilities (6 low, 6 moderate)
                            run `npm audit fix` to fix them, or `npm audit` for details
                          pi@raspberrypi:~/MagicMirror $ 
                          
                          

                          still not working…

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

                            @swvalenti said in Help with Update to 2.7.0:

                            /home/pi/MagicMirror/.git/index.lock

                            ok, erase that file, or rename it out of the way

                            then
                            git pull

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 1
                            • swvalentiS Offline
                              swvalenti Project Sponsor
                              last edited by

                              Thanks @sdetweil had to remove all the .json/locks and the .git after I had to enable show hidden files as I couldn’t find same. You da man Sam.

                              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