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

New install - (npm run install-mm) - returns errors

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 2 Posters 553 Views 2 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.
  • L Offline
    lostagain
    last edited by Dec 18, 2024, 7:39 PM

    Hi, brand new user and no experience with Pi programming.

    Running Pi4 with 64bit new install. Pi all updated.

    Following instructions (have tried 6 times) all goes well until I enter the “npm run install-mm” and each time I get the following.

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

    magicmirror@2.29.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.29.0
    npm error notsup Not compatible with your version of node/npm: magicmirror@2.29.0
    npm error notsup Required: {“node”:“>=20.9.0 <21 || 22”}
    npm error notsup Actual: {“npm”:“11.0.0”,“node”:“v23.4.0”}
    npm error A complete log of this run can be found in: /root/.npm/_logs/2024-12-18T19_34_41_408Z-debug-0.log
    leehill@raspberrypi:~/MagicMirror $

    what am I doing wrong?? Thanks!!

    S 1 Reply Last reply Dec 18, 2024, 7:52 PM Reply Quote 0
    • S Offline
      sdetweil @lostagain
      last edited by Dec 18, 2024, 7:52 PM

      @lostagain said in New install - (npm run install-mm) - returns errors:

      npm error notsup Actual: {“npm”:“11.0.0”,“node”:“v23.4.0”}

      yes, we don’t support node 23 until next release, Jan 1.

      the 'easiest way back is

      sudo npm install n -g
      sudo n 22
      hash -r
      

      then start install again

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      L 1 Reply Last reply Dec 18, 2024, 8:00 PM Reply Quote 0
      • L Offline
        lostagain @sdetweil
        last edited by Dec 18, 2024, 8:00 PM

        @sdetweil said in New install - (npm run install-mm) - returns errors:

        sudo npm install n -g

        Sam, you’re a genius!!! Thank you so much, been tearing my hair out with that!!

        S 1 Reply Last reply Dec 18, 2024, 8:03 PM Reply Quote 0
        • L lostagain has marked this topic as solved on Dec 18, 2024, 8:01 PM
        • S Offline
          sdetweil @lostagain
          last edited by Dec 18, 2024, 8:03 PM

          @lostagain if you had used my installer script, it would have installed the correct version of node (listed as 1st alternative install choice)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          L 1 Reply Last reply Dec 18, 2024, 8:07 PM Reply Quote 0
          • L Offline
            lostagain @sdetweil
            last edited by Dec 18, 2024, 8:07 PM

            @sdetweil Good to know (I’ll remember that next time!!) thank you

            S 1 Reply Last reply Dec 18, 2024, 8:17 PM Reply Quote 0
            • S Offline
              sdetweil @lostagain
              last edited by Dec 18, 2024, 8:17 PM

              @lostagain my upgrade script will do it too between releases

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                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