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.

    Upgrade

    Scheduled Pinned Locked Moved Bug Hunt
    19 Posts 5 Posters 1.7k Views 5 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 Do not disturb
      sdetweil @karsten13
      last edited by

      @karsten13 when I run

      npm run install-mm I get the dev error, even tho it specifies no dev

      > 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: eslint-plugin-package-json@1.5.0
      npm error notsup Not compatible with your version of node/npm: eslint-plugin-package-json@1.5.0
      npm error notsup Required: {"node":"^22.22.2 || >=24.15.0"}
      npm error notsup Actual:   {"npm":"10.9.4","node":"v22.22.1"}
      npm error A complete log of this run can be found in: /home/sam/.npm/_logs/2026-07-06T17_12_27_381Z-debug-0.log
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      karsten13K 1 Reply Last reply Reply Quote 0
      • karsten13K Offline
        karsten13 @sdetweil
        last edited by

        @sdetweil

        so a normal install without devDependencies should not trigger this error

        I wrote “should”, didn’t test it and this was my expectation to node behavior …

        As node seems to check all dependencies, we need >= 22.22.2, we can edit release notes and forum post if needed …

        S 2 Replies Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @karsten13
          last edited by sdetweil

          @karsten13 bummer… I fixed this is a prior release of something, renamed the devdependencies: entry and then there was nothing to check… what a pita

          fixed my scripts…

          @mumblebaj

          can you rerun, set node back…
          sudo n 22.21.1

          then run upgrade again with force to allow install over the same version

          bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
          

          worked for me… thanks for the heads up

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @karsten13 fixed the release notes

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            karsten13K 1 Reply Last reply Reply Quote 1
            • karsten13K Offline
              karsten13 @sdetweil
              last edited by

              @sdetweil I did it on github, will write a test for this so that we see it prior to release

              1 Reply Last reply Reply Quote 2
              • mumblebajM Offline
                mumblebaj Module Developer @sdetweil
                last edited by

                @sdetweil No worries. I will check tomorrow after work and downgrade node and install again. Will advise

                Check out my modules at: https://github.com/mumblebaj?tab=repositories
                Check my blog-post: https://mumblebaj.xyz/
                Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

                  @mumblebaj if you have nvm or n installed (I detect nvm, install n )

                  do this

                  sudo n
                  

                  it might give you a list, then pick the right one 22.21.1

                  if not there, then

                  sudo n 22.21.1
                  

                  to install it

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  mumblebajM msimon360M 2 Replies Last reply Reply Quote 0
                  • mumblebajM Offline
                    mumblebaj Module Developer @sdetweil
                    last edited by

                    @sdetweil Just ran it quickly and it seems like it installed 22.22.2

                    mumble@pi:~ $ sudo n
                         copying : node/22.21.1
                       installed : v22.21.1 (with npm 10.9.4)
                    mumble@pi:~ $ node -v
                    v22.21.1
                    mumble@pi:~ $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
                    update log will be in /home/mumble/MagicMirror/installers/upgrade.log
                    doing test run = false
                    Node currently installed. Checking version number.
                    Minimum Node version: v22.22.2
                    Installed Node version: v22.21.1
                    installing correct version of node and npm, please wait
                    Check current Node installation ...
                    Node currently installed. Checking version number.
                    Minimum Node version: v22.21.1
                    Installed Node version: v22.22.2
                    No Node.js upgrade necessary.
                    Check current NPM installation ...
                    NPM currently installed. Checking version number.
                    Minimum npm version: V10.9.7
                    Installed npm version: V10.9.7
                    No npm upgrade necessary.
                    
                    
                    upgrading from version 2.37.0 to 2.37.0
                    force: line 762: pm2: command not found
                    some node app still running, please shutdown those apps, maybe MagicMirror, and restart
                    here is a list of those processes
                    

                    Check out my modules at: https://github.com/mumblebaj?tab=repositories
                    Check my blog-post: https://mumblebaj.xyz/
                    Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                    1 Reply Last reply Reply Quote 0
                    • msimon360M Offline
                      msimon360 @sdetweil
                      last edited by

                      @sdetweil Just and FYI, I just tried a fresh install and got the same issue with node.
                      marksimon@digiframe:~ $ git clone https://github.com/MagicMirrorOrg/MagicMirror.git
                      Cloning into ‘MagicMirror’…
                      remote: Enumerating objects: 31023, done.
                      remote: Counting objects: 100% (5/5), done.
                      remote: Compressing objects: 100% (3/3), done.
                      remote: Total 31023 (delta 2), reused 2 (delta 2), pack-reused 31018 (from 2)
                      Receiving objects: 100% (31023/31023), 26.41 MiB | 2.15 MiB/s, done.
                      Resolving deltas: 100% (19515/19515), done.
                      marksimon@digiframe:~ $ cd MagicMirror/
                      marksimon@digiframe:~/MagicMirror $ node --run install-mm
                      npm error code EBADENGINE
                      npm error engine Unsupported engine
                      npm error engine Not compatible with your version of node/npm: eslint-plugin-package-json@1.5.0
                      npm error notsup Not compatible with your version of node/npm: eslint-plugin-package-json@1.5.0
                      npm error notsup Required: {“node”:“^22.22.2 || >=24.15.0”}
                      npm error notsup Actual: {“npm”:“10.9.4”,“node”:“v22.21.1”}

                      Then I tried using the script and it installed node v22.22.2 and looks like it is working.
                      marksimon@digiframe:~/MagicMirror $ bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” force
                      update log will be in /home/marksimon/MagicMirror/installers/upgrade.log
                      doing test run = false
                      Node currently installed. Checking version number.
                      Minimum Node version: v22.22.2
                      Installed Node version: v22.21.1
                      installing correct version of node and npm, please wait
                      Check current Node installation …
                      Node currently installed. Checking version number.
                      Minimum Node version: v22.21.1
                      Installed Node version: v22.22.2

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

                        @msimon360 said:

                        Just and FYI, I just tried a fresh install and got the same issue with node.

                        yes, you didn’t use the install script you did it manually

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 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