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.

    NPM problem "EBADENGINE" which I fail to solve

    Scheduled Pinned Locked Moved Solved Troubleshooting
    19 Posts 3 Posters 29.6k 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.
    • I Offline
      Ix @sdetweil
      last edited by

      @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'
      
      
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Ix
        last edited by sdetweil

        @Ix version is the one you want to use

        n 18

        n 18.18

        need sudo to change, as it write to /usr/local/bin which is protected
        (as as nvm does)

        see
        n --help

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        I 1 Reply Last reply Reply Quote 0
        • I Offline
          Ix @sdetweil
          last edited by

          @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

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

            @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

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            I 2 Replies Last reply Reply Quote 0
            • I Offline
              Ix @sdetweil
              last edited by

              @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

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

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

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • I Offline
                  Ix @sdetweil
                  last edited by Ix

                  @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
                  
                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Ix
                    last edited by

                    @Ix no

                    do

                    which node
                    

                    this will tell the path to the first executable it finds

                    on my pi4 with node (from n)
                    is says

                    which node
                    /usr/local/bin/node
                    

                    on my x64 box with n 18
                    it says

                    which node
                    /usr/local/bin/node
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    I S 2 Replies Last reply Reply Quote 0
                    • I Offline
                      Ix @sdetweil
                      last edited by

                      @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?

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

                        @Ix the module author says this is a bug in the lint checker…

                        do this, in the module folder

                        npm i @stylistic/eslint-plugin@1.8.1
                        

                        then npm install

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        I 1 Reply Last reply Reply Quote 0
                        • I Offline
                          Ix @sdetweil
                          last edited by Ix

                          @sdetweil

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

                          You are the best 🙌

                          /solved

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

                            @Ix not me… another user

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • I Ix has marked this topic as solved on
                            • I Ix has marked this topic as solved on

                            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