• 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.

Installing on a Pi Zero

Scheduled Pinned Locked Moved Troubleshooting
175 Posts 33 Posters 179.9k Views 33 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 @RushHour99
    last edited by Aug 3, 2021, 6:57 PM

    @rushhour99 is this with extra modules or just the base?

    can u show the output of

    pm2 logs --lines=100
    

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    R 1 Reply Last reply Aug 3, 2021, 7:59 PM Reply Quote 0
    • R Offline
      RushHour99 @sdetweil
      last edited by RushHour99 Aug 3, 2021, 8:03 PM Aug 3, 2021, 7:59 PM

      @sdetweil said in Installing on a Pi Zero:

      pm2 logs --lines=100

      This just the Magic Mirror base. I haven’t added any extra modules.

      Unfortunately I cannot paste the pm2 logs output. When I try it gets caught in some sort of spam filter and won’t let me post.

      S 1 Reply Last reply Aug 3, 2021, 9:50 PM Reply Quote 0
      • S Offline
        sdetweil @RushHour99
        last edited by sdetweil Aug 3, 2021, 9:52 PM Aug 3, 2021, 9:50 PM

        @rushhour99 u can email to me… same userid on gmail

        also attach /home/pi/install.log

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Aug 3, 2021, 10:28 PM Reply Quote 0
        • R Offline
          RushHour99 @sdetweil
          last edited by Aug 3, 2021, 10:28 PM

          @sdetweil Thanks, error log emailed. Ive done this process before without error ~9 months ago. Maybe the rasbian version or magic mirror version has changed recently that is now causing the problem.

          S 2 Replies Last reply Aug 3, 2021, 10:30 PM Reply Quote 0
          • S Offline
            sdetweil @RushHour99
            last edited by Aug 3, 2021, 10:30 PM

            @rushhour99 there is a new MM version every 2 months…

            I test on my own pi 0 .

            haven’t seen a problem like this

            sent email back, can u send install.log

            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 @RushHour99
              last edited by sdetweil Aug 3, 2021, 10:52 PM Aug 3, 2021, 10:46 PM

              @rushhour99 do this

              sudo npm i -g npm@6
              

              this will downgrade npm to v6

              then

              cd ~/MagicMirror
              rm -rf node_modules
              rm package-lock.json
              npm install --only=prod
              

              and check if the config.js file exists

              ls ~/MagicMirror/config/config,js -laF
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              R 1 Reply Last reply Aug 3, 2021, 10:51 PM Reply Quote 0
              • R Offline
                RushHour99 @sdetweil
                last edited by Aug 3, 2021, 10:51 PM

                @sdetweil said in Installing on a Pi Zero:

                sudo npm -i npm@6

                I got an error. Thanks for helping out, this is a new build so I don’t mind if it gets messed up and I need to start over.

                $ sudo npm -i npm@6
                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! /root/.npm/_logs/2021-08-03T22_48_17_691Z-debug.log

                S 1 Reply Last reply Aug 3, 2021, 10:52 PM Reply Quote 0
                • S Offline
                  sdetweil @RushHour99
                  last edited by Aug 3, 2021, 10:52 PM

                  @rushhour99 typo, sorry

                  sudo npm i -g npm@6
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  R 1 Reply Last reply Aug 3, 2021, 11:30 PM Reply Quote 0
                  • R Offline
                    RushHour99 @sdetweil
                    last edited by Aug 3, 2021, 11:30 PM

                    @sdetweil Thanks!

                    I copied the config.js.sample to config.js before running the downgrade commands.

                    After downgrading and rebooting, the Magic Mirror showed up on my Pi 0 with the default configuration.

                    S 1 Reply Last reply Aug 3, 2021, 11:52 PM Reply Quote 0
                    • S Offline
                      sdetweil @RushHour99
                      last edited by Aug 3, 2021, 11:52 PM

                      @rushhour99 great, thanks for the update

                      I pushed a change to the installer to prevent npm going to v7.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 14
                      • 15
                      • 16
                      • 17
                      • 18
                      • 17 / 18
                      17 / 18
                      • First post
                        161/175
                        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