MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Ix
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    I
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 27
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Error EBADENGINE when installing MM v2.28.0

      @sdetweil said in Error EBADENGINE when installing MM v2.28.0:

      npm run install-mm

      mirror@raspberrypi:~/MagicMirror $ npm run install-mm
      
      > 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: 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-08-04T17_53_51_013Z-debug-0.log
      
      
      posted in Troubleshooting
      I
      Ix
    • RE: Error EBADENGINE when installing MM v2.28.0

      @sdetweil

      mirror@raspberrypi:~ $ npm -v
      10.8.1
      
      posted in Troubleshooting
      I
      Ix
    • RE: Error EBADENGINE when installing MM v2.28.0

      @sdetweil

      first: thanks for answering so fast!

      node -v gives this:

      mirror@raspberrypi:~ $ node -v
      v20.16.0
      

      this is also the version I installed via n
      nevertheless, the wrong version is recognized when trying npm i

      posted in Troubleshooting
      I
      Ix
    • Error EBADENGINE when installing MM v2.28.0

      Hello!
      I have issues updating my MagicMirror to the current version 2.28.0.

      When I run npm install I get this error message:

      mirror@raspberrypi:~/MagicMirror $ sudo npm run install-mm
      
      > 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: 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-08-04T16_49_26_116Z-debug-0.log
      

      seems easy to solve, but I absolutely fail to bring my node to the required version.

      using nvm current I get this answer:

      mirror@raspberrypi:~/MagicMirror $ nvm current
      v20.16.0
      

      Edit: this is what happens if I try and install node via n:

      mirror@raspberrypi:~ $ sudo n lts
        installing : node-v20.16.0
             mkdir : /usr/local/n/versions/node/20.16.0
             fetch : https://nodejs.org/dist/v20.16.0/node-v20.16.0-linux-arm64.tar.xz
           copying : node/20.16.0
      /usr/bin/n: Zeile 746: /usr/local/bin/node: Datei oder Verzeichnis nicht gefunden
         installed :  (with npm 10.8.1)
      

      so it should work… PLEASE help!

      posted in Troubleshooting
      I
      Ix
    • RE: NPM problem "EBADENGINE" which I fail to solve

      @sdetweil

      THANK YOU! This did it, the module is working again, finally!

      You are the best 🙌

      /solved

      posted in Troubleshooting
      I
      Ix
    • RE: NPM problem "EBADENGINE" which I fail to solve

      @sdetweil said in NPM problem "EBADENGINE" which I fail to solve:

      @Ix no

      do

      which node
      

      this will tell the path to the first executable it finds

      ah I over read that.

      here’s the result:

      mirror@raspberrypi:/usr/local/n/versions/node $ which node
      /home/mirror/.nvm/versions/node/v18.18.0/bin/node
      

      well that’s a completely different path… so what should I do now?

      posted in Troubleshooting
      I
      Ix
    • RE: NPM problem "EBADENGINE" which I fail to solve

      @sdetweil said in NPM problem "EBADENGINE" which I fail to solve:

      @Ix said in NPM problem "EBADENGINE" which I fail to solve:

      /usr/local/n/versions/node/18.18.2

      does that directory exist?

      I’ve never had any problem with n, on windows, linux or mac.

      do a

      which node

      so we can see where it is coming from

      here is the result from “a”:

      mirror@raspberrypi:~/MagicMirror/modules/MMM-PublicTransportHafas $ n -a
      
        Error: missing -a|--arch value
      

      @sdetweil said in NPM problem "EBADENGINE" which I fail to solve:

      @Ix note its NOT usr/local/BIN its usr/local/N
      (uppercase fore emphasis here)

      yeah, but see the error message I posted above: it seems to get the directory wrong as well. sry for me being a newbie in this case

      I really appreciate you helping me here!

      edit:
      file is there:

      mirror@raspberrypi:/usr/local/n/versions/node $ ls
      18.18.2  22.2.0
      
      posted in Troubleshooting
      I
      Ix
    • RE: NPM problem "EBADENGINE" which I fail to solve

      @sdetweil said in NPM problem "EBADENGINE" which I fail to solve:

      @Ix said in NPM problem "EBADENGINE" which I fail to solve:

      /usr/local/n/versions/node/18.18.2

      does that directory exist?

      I’ve never had any problem with n, on windows, linux or mac.

      yes I think:

      mirror@raspberrypi:~/MagicMirror/modules $ cd /usr/local/bin
      mirror@raspberrypi:/usr/local/bin $ ls
      corepack  node  npm  npx
      

      node is colored green in this ls

      posted in Troubleshooting
      I
      Ix
    • RE: NPM problem "EBADENGINE" which I fail to solve

      @sdetweil

      I already tried and changed my used version to v18.18 via nvm (what obviously didn’t work)

      Now I installed “n” and tried again with your method.
      Here are the results:

      mirror@raspberrypi:~/MagicMirror/modules $ sudo n 18.18
        installing : node-v18.18.2
             mkdir : /usr/local/n/versions/node/18.18.2
             fetch : https://nodejs.org/dist/v18.18.2/node-v18.18.2-linux-arm64.tar.xz
           copying : node/18.18.2
      /usr/bin/n: Zeile 746: /usr/local/bin/node: Datei oder Verzeichnis nicht gefunden
         installed :  (with npm 9.8.1)
      

      There is an error: “Datei oder Verzeichnis nicht gefunden” which translates into “File or directory not found” (Sry for my German OS 😅)

      so there is another issue

      posted in Troubleshooting
      I
      Ix
    • RE: NPM problem "EBADENGINE" which I fail to solve

      @sdetweil said in NPM problem "EBADENGINE" which I fail to solve:

      I use n, which is a nodejs version of nvm

      sudo mpn install n

      n version
      n list

      I also tried this.
      Here are the results:

      mirror@raspberrypi:~/MagicMirror/modules/MMM-PublicTransportHafas $ n list
      node/22.2.0
      mirror@raspberrypi:~/MagicMirror/modules/MMM-PublicTransportHafas $ n version
      
        Error: invalid version 'version'
      
      
      
      posted in Troubleshooting
      I
      Ix
    • 1 / 1