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.

    MagicMirror is Failing to start at all

    Scheduled Pinned Locked Moved Solved Troubleshooting
    18 Posts 4 Posters 880 Views 4 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
      Sampleswow
      last edited by

      This is my code line in terminal,
      pi@raspberrypi:~/MagicMirror $ npm start

      magicmirror@2.32.0 start
      node --run start:x11

      node: bad option: --run
      pi@raspberrypi:~/MagicMirror $

      I checked my node version its v20.19.3
      and my Npm version is 11.5.1
      No idea’s whats going on here i know it pulled this after i did an update on something i don’t remember what though as i did it one day before leaving for work and then came back to this without time to dive into it

      pi@raspberrypi:~/MagicMirror $ sudo npm run install-mm

      magicmirror@2.32.0 install-mm
      npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev

      npm error code EBADENGINE
      npm error engine Unsupported engine
      npm error engine Not compatible with your version of node/npm: magicmirror@2.32.0
      npm error notsup Not compatible with your version of node/npm: magicmirror@2.32.0
      npm error notsup Required: {“node”:“>=22.14.0”}
      npm error notsup Actual: {“npm”:“10.9.2”,“node”:“v20.19.4”}
      npm error A complete log of this run can be found in: /root/.npm/_logs/2025-07-27T18_19_13_346Z-debug-0.log
      pi@raspberrypi:~/MagicMirror $

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

        @Sampleswow awesome

        edit the package.json
        and change the “start”
        to “startx”
        then add this line after

        "start":"DISPLAY=${DISPLAY:=:0} ./node_modules/.bin/electron js/electron.js",
        

        then

        npm start
        

        should start your MagicMirror

        this was the way it was before this release

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @Sampleswow we need node 22.14 minimum
          You have node 20

          See the release notes
          https://forum.magicmirror.builders/post/127151

          If you had used the upgrade script it would have done this for you

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil
            pi@raspberrypi:~/MagicMirror $ bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” apply
            update log will be in /home/pi/MagicMirror/installers/upgrade.log
            doing test run = false
            Node currently installed. Checking version number.
            Minimum Node version: v22.14.0
            Installed Node version: v24.4.1
            Check current Node installation …
            Node currently installed. Checking version number.
            Minimum Node version: v22.14.0
            Installed Node version: v24.4.1
            No Node.js upgrade necessary.
            Check current NPM installation …
            NPM currently installed. Checking version number.
            Minimum npm version: V10.9.2
            Installed npm version: V11.4.2
            No npm upgrade necessary.

            want /var/swap=200MByte, checking existing: keeping it
            saving custom.css
            local version 2.32.0 already same as master 2.32.0
            restoring custom.css
            pi@raspberrypi:~/MagicMirror $

            Still will not start

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

              @Sampleswow IMG_1964.png

              Because you did this manually the script will abort if the same version is already

              I provide another option, instead of apply use
              force
              At the end of the command

              I don’t document this because I dont want everyone using force and getting into more trouble.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil
                So i used the force protocol and it took some time and did some things. after it was done i attempted to start the MM using both the old way and they way the release notes said and i still get this,

                pi@raspberrypi:~ $ cd MagicMirror
                pi@raspberrypi:~/MagicMirror $ npm start

                magicmirror@2.32.0 start
                node --run start:x11

                node: bad option: --run
                pi@raspberrypi:~/MagicMirror $ node --run
                node: --run requires an argument
                pi@raspberrypi:~/MagicMirror $

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

                  @Sampleswow can you show the output of

                  node -v

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @sdetweil
                    pi@raspberrypi:~ $ node -v
                    v24.4.1
                    pi@raspberrypi:~ $ cd MagicMirror
                    pi@raspberrypi:~/MagicMirror $ node -v
                    v24.4.1

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

                      @Sampleswow thanks

                      Try this

                      sudo n 22.14
                      hash -r
                      node -v
                      

                      You should get 22.14 or 22.15

                      Then try npm start in the MagicMirror folder

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @sdetweil
                        pi@raspberrypi:~ $ sudo n 22.14
                        copying : node/22.14.0
                        installed : v22.14.0 (with npm 10.9.2)
                        pi@raspberrypi:~ $ hash -r
                        pi@raspberrypi:~ $ node -v
                        v22.14.0
                        pi@raspberrypi:~ $ cd MagicMirror
                        pi@raspberrypi:~/MagicMirror $ npm start

                        magicmirror@2.32.0 start
                        node --run start:x11

                        node: bad option: --run
                        pi@raspberrypi:~/MagicMirror $

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

                          @karsten13 have any debug advice here?

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          karsten13K 1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 2 / 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