Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. HILFE: iobroker läuft nicht mehr

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    HILFE: iobroker läuft nicht mehr

    This topic has been deleted. Only users with topic management privileges can see it.
    • U
      Ulti last edited by

      Hallo zusammen,

      Habe exakt dasselbe Problem. Kann keiner helfen??? 😞

      mfg

      1 Reply Last reply Reply Quote 0
      • Stabilostick
        Stabilostick last edited by

        Evtl. bring die Reinstallation des js-controllers etwas?

        sudo iobroker stop
        sudo npm install -g npm@4
        sudo npm install iobroker.js-controller --production
        sudo iobroker start
        

        Edit: npm eingefügt

        1 Reply Last reply Reply Quote 0
        • M
          Morrio last edited by

          Hallo,

          ich schließe mich den Problemen an. Habe genau die selben Fehlermeldungen.

          Habe mich längere Zeit nicht um meine Installation gekümmert und wollte jetzt wieder einsteigen. Bei den Updates etc ist dann das Problem aufgetreten.

          @Stabilostick:

          Evtl. bring die Reinstallation des js-controllers etwas?

          sudo iobroker stop
          sudo npm install iobroker.js-controller --production
          sudo iobroker start
          ```` `  
          

          Hier kommt bei mir die Fehlermeldung wie im Anhang gezeigt.

          Grüße
          3734_npm_install.png

          1 Reply Last reply Reply Quote 0
          • D
            daniello last edited by

            Wollte mich anschließen .. aber was ich als Log beifügen wollte hat irgendwie dazu geführt, dass ich iobroker wieder starten konnte .. vielleicht hilfts.

            nodejs: v8.11.1

            npm: 6.2.0

            sudo iobroker start

            pi@raspi:~ $ sudo iobroker start
            module.js:549
                throw err;
                ^
            
            Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                at Function.Module._resolveFilename (module.js:547:15)
                at Function.Module._load (module.js:474:25)
                at Function.Module.runMain (module.js:693:10)
                at startup (bootstrap_node.js:188:16)
                at bootstrap_node.js:609:3
            pi@raspi:~ $
            
            

            npm install iobroker .js-controller –production

            > iobroker.js-controller@1.4.2 preinstall /opt/iobroker/node_modules/iobroker.js-controller
            > node lib/preinstall_check.js
            
            NPM version: 6.2.0
            npm version >= 5: disabling package-lock
            
            > unix-dgram@0.2.3 install /opt/iobroker/node_modules/unix-dgram
            > node-gyp rebuild
            
            make: Entering directory '/opt/iobroker/node_modules/unix-dgram/build'
              CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
              SOLINK_MODULE(target) Release/obj.target/unix_dgram.node
              COPY Release/unix_dgram.node
            make: Leaving directory '/opt/iobroker/node_modules/unix-dgram/build'
            
            > iobroker.js-controller@1.4.2 install /opt/iobroker/node_modules/iobroker.js-controller
            > node iobroker.js setup first
            
            + iobroker.js-controller@1.4.2
            added 341 packages from 239 contributors and audited 1773 packages in 94.343s
            found 11 vulnerabilities (8 low, 3 high)
              run `npm audit fix` to fix them, or `npm audit` for details
            
            
            1 Reply Last reply Reply Quote 0
            • Stabilostick
              Stabilostick last edited by

              Habe oben noch

              sudo npm install -g npm@4
              

              eingefügt.

              npm 5.6.0 sollte man gar nicht verwenden. Und mit npm>5.7.0 habe ich wegen automatisch gelöschter Pakete auf Raspberries schlechte Erfahrungen gemacht.

              1 Reply Last reply Reply Quote 0
              • D
                daniello last edited by

                ist 6.2.0 auch böse? Ach so .. sehe grad .. das "Größerzeichen".

                Kann ich mit Deinem Befehl ein Downgrade machen?

                Und wird NPM dann nicht verändert, wenn ich in per Shell ein

                sudo apt-get update && sudo apt-get upgrade -y
                

                absetzte?

                1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 last edited by

                  @daniello:

                  Kann ich mit Deinem Befehl ein Downgrade machen? `
                  Ja.
                  @daniello:

                  Und wird NPM dann nicht verändert, wenn ich in per Shell ein

                  sudo apt-get update && sudo apt-get upgrade -y
                  

                  absetzte? `
                  Ja, wobei es passieren kann, dass hinterher kein NPM mehr existiert.

                  1 Reply Last reply Reply Quote 0
                  • D
                    daniello last edited by

                    stimmt .. das hatte ich schon .. kein NPM .. musste erstmal drauf kommen 😞

                    Danke!

                    1 Reply Last reply Reply Quote 0
                    • D
                      daniello last edited by

                      Hab ich mal gemacht das

                      sudo npm install -g npm@4
                      /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
                      + npm@4.6.1
                      added 297 packages from 135 contributors and updated 2 packages in 26.683s
                      

                      erhalte aber noch immer

                      npm -v 6.2.0

                      1 Reply Last reply Reply Quote 0
                      • Stabilostick
                        Stabilostick last edited by

                        Dann hast du noch ein zweites npm mal ohne -g installiert. Wenn du keine Lust hast, den Fehler zu suchen oder was zu löschen, mach im ioBroker-Ordner noch mal den Befehl ohne -g

                        1 Reply Last reply Reply Quote 0
                        • D
                          daniello last edited by

                          Mit Lust hat das nichts zu tun .. eher mit Ahnungslosigkeit 🙂

                          Hat nichts geändert:

                          pi@raspi:/opt/iobroker $ sudo npm install npm@4
                          + npm@4.6.1
                          added 299 packages from 591 contributors and audited 4433 packages in 50.961s
                          found 80 vulnerabilities (22 low, 44 moderate, 14 high)
                            run `npm audit fix` to fix them, or `npm audit` for details
                          pi@raspi:/opt/iobroker $ npm -v
                          6.2.0
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • Stabilostick
                            Stabilostick last edited by

                            Ups, da war ich zu voreilig. Aber keine Sorge, nichts kaputt.

                            1 Reply Last reply Reply Quote 0
                            • Stabilostick
                              Stabilostick last edited by

                              Tipp mal ein````
                              which npm

                              1 Reply Last reply Reply Quote 0
                              • D
                                daniello last edited by

                                Hatte schon geschaut .. gibt nur einen Eintrag:

                                /usr/local/bin/npm

                                1 Reply Last reply Reply Quote 0
                                • Stabilostick
                                  Stabilostick last edited by

                                  Der hat vorhin aber nach /usr/bin/npm installiert…

                                  1 Reply Last reply Reply Quote 0
                                  • paul53
                                    paul53 last edited by

                                    Die Version 6.2.0 ist wahrscheinlich die in /usr/local/bin (im Suchpfad vorn). Da npm und npx nur (relative) Links sind, solltest Du sie in absolute Links auf die Version 4.6.1 ändern: Austausch der .. vorne gegen /usr. Das musste ich auch machen.

                                    root@rpihm:~# ls -l /usr/local/bin/np*
                                    lrwxrwxrwx 1 root staff 40 Jul 19 20:29 /usr/local/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
                                    lrwxrwxrwx 1 root staff 40 Jul 19 20:29 /usr/local/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
                                    
                                    

                                    EDIT: Sehr einfach mit WinSCP "Verknüpfung bearbeiten"
                                    493_winscp_verkn_pfung_bearbeiten.jpg

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      daniello last edited by

                                      hmm npx wird dan rot .. glaube da passt was nicht.

                                      Mir ist auch nicht ganz klar was ich nach dem ändern auf Absolut machen soll .. nochmal das Downgrade auf npm 4 versuchen?

                                      1 Reply Last reply Reply Quote 0
                                      • paul53
                                        paul53 last edited by

                                        @daniello:

                                        npx wird dan rot .. glaube da passt was nicht. `
                                        Gibt es die Datei /usr/lib/node_modules/npm/bin/npx-cli.js ?

                                        ls -l /usr/lib/node_modules/npm/bin/npx-cli.js
                                        

                                        Dann sollte es funktionieren. Was sagt jetzt ?

                                        npm -v
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          daniello last edited by

                                          Ja .. die Datei gibt es .. wird aber trotzdem rot .. merkwürdig.

                                          npm -v sagt jetzt 4.6.1

                                          Wie kommt das .. warum wurde vorher die 6.x angezeigt .. verwirrt

                                          1 Reply Last reply Reply Quote 0
                                          • paul53
                                            paul53 last edited by

                                            @daniello:

                                            Ja .. die Datei gibt es .. wird aber trotzdem rot .. merkwürdig. `
                                            Was sagt ?

                                            ls -l /usr/local/bin/np*
                                            

                                            @daniello:

                                            npm -v sagt jetzt 4.6.1 `
                                            So sollte es sein.
                                            @daniello:

                                            warum wurde vorher die 6.x angezeigt `
                                            Weil der Link /usr/local/bin/npm auf die Version 6.2.0 gezeigt hatte, die außerdem installiert ist (im Verzeichnis /usr/local).

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            835
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            30
                                            2404
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo