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

Update Problem

Scheduled Pinned Locked Moved Solved Troubleshooting
5 Posts 3 Posters 1.3k 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.
  • L Offline
    Lockslay
    last edited by Jul 1, 2024, 3:53 AM

    Hello everyone,

    I wanted to update my Magic Mirror via the console and I get this error message, can someone please help me?

    git pull && npm run install-mm
    Already up to date.

    magicmirror@2.28.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: @eslint/eslintrc@3.1.0
    npm error notsup Not compatible with your version of node/npm: @eslint/eslintrc@3.1.0
    npm error notsup Required: {“node”:“^18.18.0 || ^20.9.0 || >=21.1.0”}
    npm error notsup Actual: {“npm”:“10.8.1”,“node”:“v20.8.0”}
    npm error A complete log of this run can be found in: /root/.npm/_logs/2024-07-01T03_47_31_928Z-debug-0.log

    less /root/.npm/_logs/2024-07-01T03_47_31_928Z-debug-0.log

    0 verbose cli /usr/local/bin/node /usr/local/bin/npm
    1 info using npm@10.8.1
    2 info using node@v20.8.0
    3 silly config load:file:/usr/local/lib/node_modules/npm/npmrc
    4 warn config only Use --omit=dev to omit dev dependencies from the install.
    5 silly config load:file:/home/stefan/MagicMirror/.npmrc
    6 silly config load:file:/root/.npmrc
    7 silly config load:file:/usr/local/etc/npmrc
    8 verbose title npm install
    9 verbose argv “install” “–no-audit” “–no-fund” “–no-update-notifier” “–only” “prod” “–omit” “dev”
    10 verbose logfile logs-max:10 dir:/root/.npm/_logs/2024-07-01T03_47_31_928Z-
    11 verbose logfile /root/.npm/_logs/2024-07-01T03_47_31_928Z-debug-0.log
    12 silly packumentCache heap:247726080 maxSize:61931520 maxEntrySize:30965760
    13 silly logfile start cleaning logs, removing 1 files
    14 silly logfile done cleaning log files
    15 silly idealTree buildDeps
    16 verbose stack Error: Unsupported engine
    16 verbose stack at checkEngine (/usr/local/lib/node_modules/npm/node_modules/npm-install-checks/lib/index.js:14:25)
    16 verbose stack at #checkEngineAndPlatform (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:198:11)
    16 verbose stack at Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:184:41)
    16 verbose stack at async Promise.all (index 1)
    16 verbose stack at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:131:5)
    16 verbose stack at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:150:5)
    16 verbose stack at async Npm.exec (/usr/local/lib/node_modules/npm/lib/npm.js:207:9)
    16 verbose stack at async module.exports (/usr/local/lib/node_modules/npm/lib/cli/entry.js:74:5)
    17 verbose pkgid @eslint/eslintrc@3.1.0
    18 error code EBADENGINE
    19 error engine Unsupported engine
    20 error engine Not compatible with your version of node/npm: @eslint/eslintrc@3.1.0
    21 error notsup Not compatible with your version of node/npm: @eslint/eslintrc@3.1.0
    21 error notsup Required: {“node”:“^18.18.0 || ^20.9.0 || >=21.1.0”}
    21 error notsup Actual: {“npm”:“10.8.1”,“node”:“v20.8.0”}
    22 silly unfinished npm timer reify 1719805654317
    23 silly unfinished npm timer reify:loadTrees 1719805654372
    24 verbose cwd /home/stefan/MagicMirror
    25 verbose os Linux 6.6.31+rpt-rpi-v7
    26 verbose node v20.8.0

    S 1 Reply Last reply Jul 1, 2024, 10:20 AM Reply Quote 0
    • S Away
      sdetweil @Lockslay
      last edited by Jul 1, 2024, 10:20 AM

      @Lockslay yes, you need to uprade nodejs to at least version 20.10

      I think 20.15 is current

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S sdetweil has marked this topic as solved on Jul 2, 2024, 1:15 PM
      • E Offline
        el97
        last edited by Jul 2, 2024, 3:33 PM

        I’m facing the same issue here even though I have the latest version of node.js and npm installed.

        npm error code EBADENGINE
        npm error engine Unsupported engine
        npm error engine Not compatible with your version of node/npm: magicmirror@2.28.0
        npm error notsup Not compatible with your version of node/npm: magicmirror@2.28.0
        npm error notsup Required: {"node":">=20"}
        npm error notsup Actual:   {"npm":"10.8.1","node":"v18.17.1"}
        npm error A complete log of this run can be found in: /root/.npm/_logs/2024-07-02T15_30_26_428Z-debug-0.log
        pi@MagicMirror:~/MagicMirror $ node -v
        v22.4.0
        pi@MagicMirror:~/MagicMirror $ npm -v
        10.8.1
        
        
        S 1 Reply Last reply Jul 2, 2024, 3:38 PM Reply Quote 0
        • S Away
          sdetweil @el97
          last edited by Jul 2, 2024, 3:38 PM

          @el97 I guess the test failed, in package.json says >=20

          I’d install v 20.9.0

          sudo npm install n -g
          sudo n 20.9.0
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply Jul 2, 2024, 3:46 PM Reply Quote 0
          • E Offline
            el97 @sdetweil
            last edited by Jul 2, 2024, 3:46 PM

            @sdetweil I managed to solve it by installing node with these commands below. I tried using nvm earlier with no luck.

            curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
            sudo apt install -y nodejs
            
            1 Reply Last reply Reply Quote -1
            • 1 / 1
            1 / 1
            • First post
              2/5
              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