MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    UNSOLVED After 2.8 I'm having tons of issues. What are the steps from square 1 to get this working?

    Troubleshooting
    3
    46
    4152
    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.
    • G
      Gomalley last edited by

      So I am trying to download the MM software after the update on July 1st. It won’t work anymore. First dependencies didn’t install, then node wasn’t up to date. Please someone help. Help me fix this!!!

      After a whole bunch of trying things I ended up here

      pi@raspberrypi:~/MagicMirror $ pm2 status all
      ┌──────┬────┬──────┬─────────┬────┬─────┬────────┐
      │ Name │ id │ mode │ status  │ ↺  │ cpu │ memory │
      ├──────┼────┼──────┼─────────┼────┼─────┼────────┤
      │ mm   │ 0  │ fork │ errored │ 30 │ 0%  │ 0 B    │
      └──────┴────┴──────┴─────────┴────┴─────┴────────┘
      
      
      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @Gomalley last edited by

        @Gomalley do

        pm2 logs
        

        More than likely u need to do

        npm install
        

        In the MagicMirror folder, and in each module folder that has a package.json file.

        Sam

        Create a working config
        How to add modules

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

          @sdetweil aright. I’ll try that however I’ve done it before and no luck. How would I do it for the other modules and package.json files. All I know what to do is just to type the command

          Npm install
          

          But It doesn’t work

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

            @Gomalley case sensitive, must be

            npm install
            

            Look in the modules folder and each of those for a package.json file.
            And if u find one, then in that folder do

            npm install 
            

            There

            You could also try my update script. I haven’t tried it over an attempted update

            See here
            https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing

            Sam

            Create a working config
            How to add modules

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

              @sdetweil
              So I deleted everything and I started over. On a new load of raspbian without doing the MM bash command, I typed

              npm install
              

              It gave me this:

              pi@raspberrypi:~ $ npm install
              npm WARN npm npm does not support Node.js v10.15.2
              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/
              npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
              npm notice created a lockfile as package-lock.json. You should commit this file.
              npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
              npm WARN pi No description
              npm WARN pi No repository field.
              npm WARN pi No README data
              npm WARN pi No license field.
              
              up to date in 1.599s
              
              

              After this I tried your new code and I got this:

              pi@raspberrypi:~ $ bash -c  "$(curl -sL https://www.dropbox.com/s/4qod39yi8ek0feu/upgrade-script?dl=0)"
              bash: line 24: cd: /home/pi/MagicMirror/installers: No such file or directory
              bash: line 26: cd: OLDPWD not set
              doing test run = true
              bash: line 61: /home/pi/MagicMirror/installers/dumpactivemodules.js: No such file or directory
              update log will be in /home/pi/upgrade.log
              bash: line 70: cd: /home/pi/MagicMirror: No such file or directory
              bash: line 72: cd: css: No such file or directory
              saving custom.css
              cp: cannot stat 'custom.css': No such file or directory
              bash: line 75: cd: OLDPWD not set
              fatal: not a git repository (or any of the parent directories): .git
              fetching latest revisions
              fatal: not a git repository (or any of the parent directories): .git
              MagicMirror git pull failed
              bash: line 183: cd: css: No such file or directory
              restoring custom.css
              cp: cannot stat 'save_custom.css': No such file or directory
              rm: cannot remove 'save_custom.css': No such file or directory
              bash: line 188: cd: OLDPWD not set
              bash: line 210: cd: OLDPWD not set
              

              Should I try running the original bash command?:
              bash -c “$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)”

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

                @Gomalley you are missing some fundamentals.

                THIS is called install

                git clone ....  copies the code from github to your system
                     at this point it will not run
                     you need to change to the MagicMirror folder and execute npm install so that all the additional node 
                        routines needed are loaded onto your system
                

                now, once you have installed

                there are updates every quarter…

                so, then in the MagicMirror folder you need to download the new code OVER the prior code
                so, you do

                cd ~/MagicMirror
                git pull
                

                but we are in the same position as during install…
                routines we need may have changed, or we may have decided to use something different

                so, once again, to get all the updates for other code we use

                cd ~/MagicMirror
                npm install
                

                BUT there is one more step…
                any modules YOU installed may have dependencies too
                SO, they (like MagicMirror) specify those dependencies in a package.json file

                so, we need to look thru ALL the non-default module folders looking for a package.json file
                if we find one, we need to run npm install in that modules folder too.
                repeat til all module folders with a package.json file

                now…

                the install script (raspberry.sh) does the
                git clone
                and
                npm install in tghe MagicMirror folder.

                my update script
                does all the update steps… (I just added a check for the MagicMirror folder being present)
                but you had to have done the install steps first…

                npm install by itself without download any MagicMirror code doesn’t do anything useful, as there is no package.json file in the uses home folder by default.

                Sam

                Create a working config
                How to add modules

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

                  @sdetweil I tried putting npm install into the modules and vendor folders but there weren’t that many json files in that directory.

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

                    @Gomalley no. In the modules/MMM-??? Folders for the modules u have installed in addition to the base MagicMirror

                    Sam

                    Create a working config
                    How to add modules

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

                      @sdetweil when i go to /home/pi/MagicMirror/modules
                      these are the folders present: Default, node_modules, README.md
                      If i further click into default i get a ton more (alert, calendar, clock, compliment s, currentweather, helloworld , newsfeed, …) Other than the magicmirror program, I have not installed anything else

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

                        @Gomalley ok, wasnt clear u had just the base MagicMirror.

                        If you do pm2 logs, what does it show?

                        Also, what does npm -v show?

                        U may need to upgrade npm

                        npm i -g npm
                        

                        Then do the npm install again in the MagicMirror folder

                        Sam

                        Create a working config
                        How to add modules

                        G 2 Replies Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 1 / 5
                        • 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