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.

    Error on update to MM 2.11.0

    Scheduled Pinned Locked Moved Solved Troubleshooting
    32 Posts 2 Posters 9.1k Views 2 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.
    • S Offline
      sdetweil @killing joke
      last edited by

      @killing-joke said in Error on update to MM 2.11.0:

      I git pulled the MM.

      AND did an npm install
      correct?

      (I wish u had used my upgrade script)
      see https://github.com/sdetweil/MagicMirror_scripts

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      K 1 Reply Last reply Reply Quote 0
      • K Offline
        killing joke @sdetweil
        last edited by

        @sdetweil
        thanks for the very quick reply.

        I don´t know, but when I try to start the MM with “npm start” the following error occurs which let me think it didn´t installed it properly?!

        pi@raspberrypi:~ $ npm start
        npm ERR! code ENOENT
        npm ERR! syscall open
        npm ERR! path /home/pi/package.json
        npm ERR! errno -2
        npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
        npm ERR! enoent This is related to npm not being able to find a file.
        npm ERR! enoent 
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /home/pi/.npm/_logs/2021-11-14T17_51_18_189Z-debug.log
        pi@raspberrypi:~ $ 
        

        If my MM works again, I will definitly use your script to update it in the future. ;-)

        Best Regards from Germany

        Daniel

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

          @killing-joke you have to be in the MagicMirror folder to do npm start… you are in the users (pi) root

          cd MagicMirror
          npm start

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            killing joke @sdetweil
            last edited by

            @sdetweil
            I could facepalm me so hard for my last post since I want to hurry up my own post.
            Anyway, of course i have to be in the MM folder. but then it occurs the error which i wrote in my first code.
            How can I check the status of my npm?

            S 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @killing joke
              last edited by

              @killing-joke

              npm -v
              node -v

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              K 1 Reply Last reply Reply Quote 0
              • K Offline
                killing joke @sdetweil
                last edited by

                @sdetweil
                npm version 6.14.5
                node version 9.11.2

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

                  @killing-joke

                  to update manually you did

                  ~/MagicMirror
                  git pull
                  npm install 
                  

                  right?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  K 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @killing joke
                    last edited by

                    @killing-joke no… that won’t do…

                    best thing is to run my upgrade script

                    see https://github.com/sdetweil/MagicMirror_scripts

                    and use force, instead of apply (because u already have the mm code pulled down)

                    bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      killing joke @sdetweil
                      last edited by

                      @sdetweil
                      I “git pulled” it in my MM folder but I didn´t installed npm again. I thought it is independent from the MM.
                      installed it again know but following occurs

                      pi@raspberrypi:~/MagicMirror $ npm install
                      
                      > magicmirror@2.11.0 install /home/pi/MagicMirror
                      > echo "Installing vendor files ...
                      " && cd vendor && npm install --loglevel=error
                      
                      Installing vendor files ...
                      
                      
                      > @fortawesome/fontawesome-free@5.15.4 postinstall /home/pi/MagicMirror/vendor/node_modules/@fortawesome/fontawesome-free
                      > node attribution.js
                      
                      Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
                      License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
                      
                      added 1 package from 1 contributor, removed 74 packages, updated 5 packages and audited 9 packages in 11.012s
                      found 0 vulnerabilities
                      
                      
                      > magicmirror@2.11.0 postinstall /home/pi/MagicMirror
                      > npm run install-fonts && echo "MagicMirror installation finished successfully! 
                      "
                      
                      
                      > magicmirror@2.11.0 install-fonts /home/pi/MagicMirror
                      > echo "Installing fonts ...
                      " && cd fonts && npm install --loglevel=error
                      
                      Installing fonts ...
                      
                      updated 1 package and audited 1 package in 2.515s
                      found 0 vulnerabilities
                      
                      MagicMirror installation finished successfully! 
                      
                      audited 1172 packages in 61.47s
                      
                      70 packages are looking for funding
                        run `npm fund` for details
                      
                      found 88 vulnerabilities (4 low, 42 moderate, 40 high, 2 critical)
                        run `npm audit fix` to fix them, or `npm audit` for details
                      
                      

                      afterwards the same error occurs as in the first post described.

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

                        @killing-joke said in Error on update to MM 2.11.0:

                        magicmirror@2.11.0

                        but u still have 2.11 installed

                        so the git pull failed

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        K 1 Reply Last reply Reply Quote 0
                        • K Offline
                          killing joke @sdetweil
                          last edited by killing joke

                          @sdetweil
                          funny, but when i go into the MM folder and type “git pull” it says it´s the latest software… (in German)

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

                            @killing-joke do

                            cd MagicMirror
                            git remote -v
                            grep version package.json

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            K 1 Reply Last reply Reply Quote 0
                            • K Offline
                              killing joke @sdetweil
                              last edited by killing joke

                              @sdetweil result as followed

                              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 $ grep version package.json
                                "version": "2.11.0",
                              pi@raspberrypi:~/MagicMirror $ 
                              
                              
                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @killing joke
                                last edited by

                                @killing-joke said in Error on update to MM 2.11.0:

                                “version”: “2.11.0”,

                                definitely NOT the latest

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                S K 2 Replies Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @sdetweil
                                  last edited by

                                  @sdetweil please run my script…

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • K Offline
                                    killing joke @sdetweil
                                    last edited by killing joke

                                    @sdetweil
                                    ok, i will do

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

                                      @killing-joke please run my script…

                                      https://forum.magicmirror.builders/topic/15862/error-on-update-to-mm-2-11-0/9?_=1636915152762

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      K 1 Reply Last reply Reply Quote 0
                                      • K Offline
                                        killing joke @sdetweil
                                        last edited by

                                        @sdetweil

                                        pi@raspberrypi:~/MagicMirror $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
                                        No LSB modules are available.
                                        doing test run = false
                                        update log will be in /home/pi/MagicMirror/installers/upgrade.log
                                        Check current Node installation ...
                                        Node currently installed. Checking version number.
                                        Minimum Node version: v14.0.0
                                        Installed Node version: v9.11.2
                                        Node should be upgraded.
                                        A Node process is currently running. Can't upgrade.
                                        Please quit all Node processes and restart the installer.
                                        pi 813 764 0 19:45 ? 00:00:00 sh -c DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js pi 817 813 0 19:45 ? 00:00:00 node ./node_modules/.bin/electron js/electron.js pi 876 817 0 19:45 ? 00:00:05 /home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js pi 882 876 0 19:45 ? 00:00:00 /home/pi/MagicMirror/node_modules/electron/dist/electron --type=zygote pi 968 882 0 19:46 ? 00:00:00 /home/pi/MagicMirror/node_modules/electron/dist/electron --type=zygote pi 1133 876 0 19:46 ? 00:00:00 /home/pi/MagicMirror/node_modules/electron/dist/electron --type=gpu-process --field-trial-handle=16961185687081278422,14233476580341739937,131072 --disable-features=LayoutNG,SpareRendererForSitePerProcess --gpu-preferences=IAAAAAAAAAAgAAAgAAAAAAAAYAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --service-request-channel-token=5596814612634470352 pi 1946 1944 0 20:03 pts/0 00:00:00 grep node
                                        
                                        

                                        how can I end a Node process to try again?

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

                                          @killing-joke

                                          pm2 stop all

                                          then

                                          ps -ef | grep node | grep -v color
                                          

                                          it should return no output

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          K 1 Reply Last reply Reply Quote 0
                                          • K Offline
                                            killing joke @sdetweil
                                            last edited by

                                            @sdetweil

                                            pi@raspberrypi:~/MagicMirror $ pm2 stop all
                                            [PM2] Applying action stopProcessId on app [all](ids: 0)
                                            [PM2] [MagicMirror](0) ✓
                                            ┌─────────────┬────┬──────┬─────┬─────────┬─────────┬────────┬─────┬────────┬──────┬──────────┐
                                            │ App name    │ id │ mode │ pid │ status  │ restart │ uptime │ cpu │ mem    │ user │ watching │
                                            ├─────────────┼────┼──────┼─────┼─────────┼─────────┼────────┼─────┼────────┼──────┼──────────┤
                                            │ MagicMirror │ 0  │ fork │ 0   │ stopped │ 0       │ 0      │ 0%  │ 0 B    │ pi   │ disabled │
                                            └─────────────┴────┴──────┴─────┴─────────┴─────────┴────────┴─────┴────────┴──────┴──────────┘
                                             Use `pm2 show <id|name>` to get more details about an app
                                            pi@raspberrypi:~/MagicMirror $ ps -ef | grep node | grep -v color
                                            pi@raspberrypi:~/MagicMirror $ 
                                            
                                            
                                            S 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
                                            • 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