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 MagicMirror on my Raspberry Pi 0 w2

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    10 Posts 3 Posters 63 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.
    • Y Offline
      Y_Garden
      last edited by

      Hello.

      I’m having trouble installing MagicMirror on my Raspberry Pi zero w2, so I’d like to ask for help.

      I’m using a 5V/3A adapter.

      Currently, Debian 13(trixie) is installed on my Raspberry Pi.

      bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)”

      It keeps rebooting during the installation process.

      Even though I increased the memory to 2GB as swap, it keeps rebooting.

      Then, when I run ‘node --run start’, it outputs ‘sh 1 ./node_modules/.bin/electron not found’.

      I think it’s because it rebooted during the installation.

      After formatting the SD card, reinstalling with the Raspberry Pi Imager, and running the script above, it still reboots.

      I live in Korea, so my response may be delayed.

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Y_Garden
        last edited by sdetweil

        @Y_Garden can you send me the ~/install.log
        Using my userid here at gmail
        Are you trying the 32 bit or 64 bit os image?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        Y 2 Replies Last reply Reply Quote 0
        • Y Offline
          Y_Garden @sdetweil
          last edited by

          @sdetweil

          The log was deleted during the SD card formatting process. When I tried again with a clean Raspberry Pi, it wouldn’t reboot and displayed the error “Could not install dependencies!” I’ll send you the log.

          git is already the newest version (1:2.47.3-0+deb13u1).
          build-essential is already the newest version (12.12).
          unzip is already the newest version (6.0-29).
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          this should be a raspberry pi 02w
          swap control file /etc/dphys-swapfile doesn’t exist
          installed node version is v22.18.0
          installing on trixie
          installed node version = v22.18.0
          ^[[0mNo npm engines section specified in package.json, using default=V10.9.3 …^[[0m
          ^[[96mCheck current Node installation …^[[0m
          ^[[0mNode currently installed. Checking version number.
          ^[[0mMinimum Node version: ^[[1mv22.18.0^[[0m
          ^[[0mInstalled Node version: ^[[1mv22.18.0^[[0m
          ^[[92mNo Node.js upgrade necessary.^[[0m
          ^[[96mCheck current NPM installation …^[[0m
          ^[[0mNPM currently installed. Checking version number.
          ^[[0mMinimum npm version: ^[[1mV10.9.3^[[0m
          ^[[0mInstalled npm version: ^[[1mV10.9.3^[[0m
          ^[[92mNo npm upgrade necessary.^[[0m
          ^[[96mCloning MagicMirror …^[[0m
          ^[[92mCloning MagicMirror Done!^[[0m
          ^[[96mInstalling dependencies …^[[0m

          ^[[91mUnable to install dependencies! ^[[0m

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

            @sdetweil

            yes

            $cat /proc/device-tree/model
            Raspberry Pi Zero 2 W Rev 1.0
            $uname -a
            Linux raspberrypi 6.12.47+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1 (2025-09-16) aarch64 GNU/Linux
            $cat /etc/issue
            Debian GNU/Linux 13 \n \l
            $cat /etc/release
            PRETTY_NAME=“Debian GNU/Linux 13 (trixie)”
            NAME=“Debian GNU/Linux”
            VERSION_ID=“13”
            VERSION=“13 (trixie)”
            VERSION_CODENAME=trixie
            DEBIAN_VERSION_FULL=13.2
            ID=debian
            HOME_URL=“https://www.debian.org/”
            SUPPORT_URL=“https://www.debian.org/support”
            BUG_REPORT_URL=“https://bugs.debian.org/”
            $getconf LONG_BIT
            64

            1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @Y_Garden
              last edited by

              @Y_Garden interesting. I thought I pushed a fix for this a couple weeks ago

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              Y 1 Reply Last reply Reply Quote 0
              • Y Offline
                Y_Garden @sdetweil
                last edited by

                @sdetweil

                When I deleted the duplicated MagicMirror and ran the script again, the Raspberry Pi rebooted.

                install starting - Thu Nov 20 05:12:44 GMT 2025
                installing on aarch64 processor system
                the os is PRETTY_NAME=“Debian GNU/Linux 13 (trixie)” NAME=“Debian GNU/Linux” VERSION_ID=“13” VERSION=“13 (trixie)” VERS>
                total used free shared buff/cache available
                Mem: 416 204 101 3 166 211
                Swap: 16799 129 16670
                ^[[96mUpdating packages …^[[0m
                Hit:1 http://deb.debian.org/debian trixie InRelease Hit:2 http://deb.debian.org/debian trixie-updates InRelease Hit:3 h>
                apt-get update completed ok
                Reading package lists…
                Building dependency tree…
                Reading state information…
                pv is already the newest version (1.9.31-1).
                0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                apt-get upgrade started
                Reading package lists…
                Building dependency tree…
                Reading state information…
                Calculating upgrade…
                0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                apt-get upgrade result =rc=0 Reading package lists…
                Building dependency tree…
                Reading state information…
                Calculating upgrade…
                0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                ^[[96mInstalling helper tools …^[[0m
                Reading package lists…
                Building dependency tree…
                Reading state information…
                curl is already the newest version (8.14.1-2+deb13u2).
                wget is already the newest version (1.25.0-2).
                git is already the newest version (1:2.47.3-0+deb13u1).
                build-essential is already the newest version (12.12).
                unzip is already the newest version (6.0-29).
                0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                this should be a raspberry pi 02w
                installed node version is v22.18.0
                installing on trixie
                installed node version = v22.18.0
                ^[[0mNo npm engines section specified in package.json, using default=V10.9.3 …^[[0m
                ^[[96mCheck current Node installation …^[[0m
                ^[[0mNode currently installed. Checking version number.
                ^[[0mMinimum Node version: ^[[1mv22.18.0^[[0m
                ^[[0mInstalled Node version: ^[[1mv22.18.0^[[0m
                ^[[92mNo Node.js upgrade necessary.^[[0m
                ^[[96mCheck current NPM installation …^[[0m
                ^[[0mNPM currently installed. Checking version number.
                ^[[0mMinimum npm version: ^[[1mV10.9.3^[[0m
                ^[[0mInstalled npm version: ^[[1mV10.9.3^[[0m
                ^[[92mNo npm upgrade necessary.^[[0m
                ^[[96mCloning MagicMirror …^[[0m
                ^[[92mCloning MagicMirror Done!^[[0m
                ^[[96mInstalling dependencies …^[[0m

                Ah… if you solved it a few weeks ago, I’ll take a look at what other people have posted about the same problem.

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @Y_Garden
                  last edited by

                  @Y_Garden I solved the installing correct version of node problem.

                  The reboot is happening inside npm, none of our code
                  Maybe a heat or power problem?
                  2w is short on ram, and trixie is bigger

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • emloweE Online
                    emlowe Module Developer
                    last edited by

                    My experience trying to run MM on a system with 512MB of RAM is really poor. I found it pretty frustrating really.

                    S 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @emlowe
                      last edited by

                      @emlowe yes, and the later os images are getting bigger and bigger

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      emloweE 1 Reply Last reply Reply Quote 0
                      • emloweE Online
                        emlowe Module Developer @sdetweil
                        last edited by

                        @sdetweil I did find dietPi (https://dietpi.com/) to be the best distro for ease of installation, generally small, and still up to date - they keep up to date with Debian

                        1 Reply Last reply Reply Quote 1
                        • 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