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.

    EBADENGINE npm error eslint/espree - MMM-EarthquakeAlerts

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 6 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.
    • UncleRogerU Offline
      UncleRoger
      last edited by

      My Mirror was down for a while and when I booted it up again, I had some updates to do. These included MMM-EarthquakeAlerts and MMM-BackgroundSlideshow.

      I did a “git pull” and “npm install” for MMM-BackgroundSlideshow and it seemed fine. I did the same for MMM-Traffic and again, it seemed fine. Then I did it for MMM-EarthquakeAlerts and got a bunch of messages after the “npm install” saying “EBADENGINE”:

      npm install
      npm WARN EBADENGINE Unsupported engine {
      npm WARN EBADENGINE   package: '@eslint/config-array@0.23.2',
      npm WARN EBADENGINE   required: { node: '^20.19.0 || ^22.13.0 || >=24' },
      npm WARN EBADENGINE   current: { node: 'v20.9.0', npm: '10.1.0' }
      npm WARN EBADENGINE }
      npm WARN EBADENGINE Unsupported engine {
      npm WARN EBADENGINE   package: '@eslint/config-helpers@0.5.2',
      npm WARN EBADENGINE   required: { node: '^20.19.0 || ^22.13.0 || >=24' },
      npm WARN EBADENGINE   current: { node: 'v20.9.0', npm: '10.1.0' }
      npm WARN EBADENGINE }
      

      and so on. There are a total of 11 sets, all for “@eslint/something” except the last which just says "espree@11.1.1’ for the package.

      I think that I need to update node.js to at least version 20.19 but I’m not sure how to do that. I honestly have no idea how I installed it in the first place except that it was probably via Sam’s excellent scripts?

      If anyone has any suggestions on how to fix this, I’d really appreciate it. I found that I’ve really come to rely on it.

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

        @UncleRoger can you check for either tool?

        n
        Or
        nvm
        See if either responds
        Or get not found

        My upgrade script would have tried to redo npm install for the modules after upgrading node

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        UncleRogerU 1 Reply Last reply Reply Quote 0
        • UncleRogerU Offline
          UncleRoger @sdetweil
          last edited by

          @sdetweil

          nvm was not found but n was – it gave me the option to install 20.8.0 or 20.9.0 so I picked the latter and got a whole lot of “cannot remove” errors. That’s the version I have currently.

          So should I use the upgrade script or have I mucked it up too much for that?

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

            @UncleRoger n stores in the /usr folder, so you have to use sudo for that

            sudo n 20.9
            

            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