• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

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

Scheduled Pinned Locked Moved Unsolved Troubleshooting
46 Posts 3 Posters 15.0k 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.
  • S Offline
    sdetweil @Gomalley
    last edited by Aug 6, 2019, 8:56 PM

    @Gomalley only

    cd ~/MagicMirror
    npm install
    

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    G 1 Reply Last reply Aug 6, 2019, 10:48 PM Reply Quote 0
    • G Offline
      Gomalley @sdetweil
      last edited by Aug 6, 2019, 10:48 PM

      @sdetweil

      pi@raspberrypi:~/MagicMirror $ npm install
      
      > magicmirror@2.8.0 install /home/pi/MagicMirror
      > cd vendor && npm install
      
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
      
      audited 220 packages in 21.352s
      found 5 vulnerabilities (4 low, 1 high)
        run `npm audit fix` to fix them, or `npm audit` for details
      
      > magicmirror@2.8.0 postinstall /home/pi/MagicMirror
      > sh installers/postinstall/postinstall.sh && npm run install-fonts
      
      MagicMirror installation successful!
      
      > magicmirror@2.8.0 install-fonts /home/pi/MagicMirror
      > cd fonts && npm install
      
      audited 1 package in 1.151s
      found 0 vulnerabilities
      
      audited 3592 packages in 97.711s
      found 0 vulnerabilities
      
      pi@raspberrypi:~/MagicMirror $ 
      

      Looks good. What should I do next?, Try to start the mirror?

      S 1 Reply Last reply Aug 7, 2019, 12:24 AM Reply Quote 0
      • S Offline
        sdetweil @Gomalley
        last edited by Aug 7, 2019, 12:24 AM

        @Gomalley yes, start it up

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        G 1 Reply Last reply Aug 7, 2019, 12:31 AM Reply Quote 0
        • G Offline
          Gomalley @sdetweil
          last edited by Aug 7, 2019, 12:31 AM

          @sdetweil I was able to start up he mirror by doing

          cd ~ /MagicMirror
          npm start
          

          The mirror started up like usual but it didn’t restart after I exited out of it.

          S 1 Reply Last reply Aug 7, 2019, 3:25 AM Reply Quote 0
          • S Offline
            sdetweil @Gomalley
            last edited by Aug 7, 2019, 3:25 AM

            @Gomalley ok, now try

            pm2 list
            

            If something is there, try

            pm2 start ???
            

            Where name is whatever was shown

            If nothing, use my new script, see link in troubleshooting section

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            G 2 Replies Last reply Aug 7, 2019, 3:42 AM Reply Quote 0
            • G Offline
              Gomalley @sdetweil
              last edited by Aug 7, 2019, 3:42 AM

              @sdetweil

              pm2 list
              

              gave me error messages so I ran the updated script and keeps coming up with an error for shelljs

              pi@raspberrypi:~ $ pm2 list
              [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
              internal/modules/cjs/loader.js:583
                  throw err;
                  ^
              
              Error: Cannot find module 'shelljs'
                  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
                  at Function.Module._load (internal/modules/cjs/loader.js:507:25)
                  at Module.require (internal/modules/cjs/loader.js:637:17)
                  at require (/usr/local/lib/node_modules/pm2/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
                  at module.exports.Client.launchDaemon (/usr/local/lib/node_modules/pm2/lib/Client.js:244:7)
                  at /usr/local/lib/node_modules/pm2/lib/Client.js:103:10
                  at /usr/local/lib/node_modules/pm2/lib/Client.js:311:14
                  at process._tickCallback (internal/process/next_tick.js:61:11)
              pi@raspberrypi:~ $ bash -c  "$(curl -sL  https://www.dropbox.com/s/cy2z7lbkpifcbrk/fixuppm2.sh?dl=0)"
              bash: line 26: 1: command not found
              internal/modules/cjs/loader.js:583
                  throw err;
                  ^
              
              Error: Cannot find module 'shelljs'
                  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
                  at Function.Module._load (internal/modules/cjs/loader.js:507:25)
                  at Module.require (internal/modules/cjs/loader.js:637:17)
                  at require (/usr/local/lib/node_modules/pm2/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
                  at module.exports.Client.launchDaemon (/usr/local/lib/node_modules/pm2/lib/Client.js:244:7)
                  at /usr/local/lib/node_modules/pm2/lib/Client.js:103:10
                  at /usr/local/lib/node_modules/pm2/lib/Client.js:311:14
                  at process._tickCallback (internal/process/next_tick.js:61:11)
              internal/modules/cjs/loader.js:583
                  throw err;
                  ^
              
              Error: Cannot find module 'shelljs'
                  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
                  at Function.Module._load (internal/modules/cjs/loader.js:507:25)
                  at Module.require (internal/modules/cjs/loader.js:637:17)
                  at require (/usr/local/lib/node_modules/pm2/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
                  at detectInitSystem (/usr/local/lib/node_modules/pm2/lib/API/Startup.js:50:11)
                  at API.CLI.startup (/usr/local/lib/node_modules/pm2/lib/API/Startup.js:186:27)
                  at Command.<anonymous> (/usr/local/lib/node_modules/pm2/bin/pm2:705:9)
                  at Command.listener (/usr/local/lib/node_modules/pm2/node_modules/commander/index.js:315:8)
                  at Command.emit (events.js:189:13)
                  at Command.parseArgs (/usr/local/lib/node_modules/pm2/node_modules/commander/index.js:651:12)
              [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
              internal/modules/cjs/loader.js:583
                  throw err;
                  ^
              
              Error: Cannot find module 'shelljs'
                  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
                  at Function.Module._load (internal/modules/cjs/loader.js:507:25)
                  at Module.require (internal/modules/cjs/loader.js:637:17)
                  at require (/usr/local/lib/node_modules/pm2/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
                  at module.exports.Client.launchDaemon (/usr/local/lib/node_modules/pm2/lib/Client.js:244:7)
                  at /usr/local/lib/node_modules/pm2/lib/Client.js:103:10
                  at /usr/local/lib/node_modules/pm2/lib/Client.js:311:14
                  at process._tickCallback (internal/process/next_tick.js:61:11)
              [PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
              internal/modules/cjs/loader.js:583
                  throw err;
                  ^
              
              Error: Cannot find module 'shelljs'
                  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
                  at Function.Module._load (internal/modules/cjs/loader.js:507:25)
                  at Module.require (internal/modules/cjs/loader.js:637:17)
                  at require (/usr/local/lib/node_modules/pm2/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
                  at module.exports.Client.launchDaemon (/usr/local/lib/node_modules/pm2/lib/Client.js:244:7)
                  at /usr/local/lib/node_modules/pm2/lib/Client.js:103:10
                  at /usr/local/lib/node_modules/pm2/lib/Client.js:311:14
                  at process._tickCallback (internal/process/next_tick.js:61:11)
              pi@raspberrypi:~ $ 
              
              

              I’ve run into this “cannot find shelljs” error before

              1 Reply Last reply Reply Quote 0
              • G Offline
                Gomalley @sdetweil
                last edited by Aug 7, 2019, 3:52 AM

                @sdetweil
                Is it possibly the version of raspbian that is messing this up because it use to work before they released the latest version of raspbian and before MM 2.8 as well.

                S 1 Reply Last reply Aug 7, 2019, 10:36 PM Reply Quote 0
                • S Offline
                  sdetweil @Gomalley
                  last edited by sdetweil Aug 8, 2019, 12:44 AM Aug 7, 2019, 10:36 PM

                  @Gomalley pm2 needs to be reinstalled, cause the npm version changed.

                  lets try my new pm2 fixup script…

                  bash -c "$(curl -sL  https://www.dropbox.com/s/cy2z7lbkpifcbrk/fixuppm2.sh?dl=0)"
                  

                  I’ve added your problems to the list it handles

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  G 1 Reply Last reply Aug 8, 2019, 1:31 AM Reply Quote 0
                  • G Offline
                    Gomalley @sdetweil
                    last edited by Aug 8, 2019, 1:31 AM

                    @sdetweil
                    Thank you! The mirror now autostarts!
                    So all this time I was doing it on a Lexar micro sd card. It actually froze on the startup page so I threw in a 16gb Ultra sandisk amd started the process all over.
                    Heres the steps that I followed:

                    pm2 logs
                    
                    npm i -g npm
                    
                    cd ~
                    sudo chown -R pi .
                    
                    pm2 logs
                    
                    npm i -g npm
                    
                    sudo npm i -g npm
                    
                    cd ~/MagicMirror
                    npm install
                    
                    pm2 list
                    
                    bash -c "$(curl -sL  https://www.dropbox.com/s/cy2z7lbkpifcbrk/fixuppm2.sh?dl=0)"
                    

                    Thank you again for your help!

                    S 1 Reply Last reply Aug 8, 2019, 2:43 AM Reply Quote 0
                    • S Offline
                      sdetweil @Gomalley
                      last edited by Aug 8, 2019, 2:43 AM

                      @Gomalley glad that it’s working.
                      My new installer might have avoided all the rework after git clone

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 3 / 5
                      3 / 5
                      • First post
                        26/46
                        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