Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Wie richtig updaten auf Node.js: v8.15.0

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Wie richtig updaten auf Node.js: v8.15.0

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

      Ich habe auf meinem intel NUC ein Proxmox mit einer vm Debian laufen auf dem iobroker installiert ist.

      Noch habe ich

      Node.js v6.13.0 (Es gibt eine neuere Version: v6.16.0 - Recommended version v8.15.0)

      NPM 3.10.10

      Wie Aktualisiere ich das richtig?

      Hatte mir ein snapshoot gemacht und selber schon installiert war dann auch schon auf:

      Node.js: v8.15.0

      NPM: 6.4.1

      Aber dann lief mein dashbutton.adapter nicht mehr und schrieb mir fehler ins LOG

      Bin dann zurück dank snapshoot auf 6.13 und frage dann lieber mal hier wie der richtige weg ist.

      Gruss Danyel

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

        Node updaten und dann im iobroker Verzeichnis

        npm rebuild

        Sollte reichen.

        Gesendet vom Handy …

        1 Reply Last reply Reply Quote 0
        • arteck
          arteck Developer Most Active last edited by

          und das dauert.. so ein rebulid..

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

            Also als root

            curl -sL https://deb.nodesource.com/setup_8.x | bash - apt-get install -y nodejs

            Und danach ein npm rebuild im iobroker Verzeichnis

            Das war es dann?

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

              Sollte 😉

              Gesendet vom Handy …

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

                OK, werde ich heute Abend nach einem snapshot testen.

                1 Reply Last reply Reply Quote 0
                • K
                  Kueppert last edited by

                  @ringdingringding:

                  OK, werde ich heute Abend nach einem snapshot testen. ` Sag Bescheid, wenn es durch hast. Dann mache ich das nach 😜

                  Gesendet von meinem HUAWEI RIO-L01 mit Tapatalk

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

                    Sollte geklappt haben!

                    Ergebniss:

                    Node.js v8.15.0

                    NPM 6.4.1

                    Vorgegangen bin ich so:

                    iobroker stop

                    curl -sL https://deb.nodesource.com/setup_8.x | bash -

                    apt-get install -y nodejs

                    cd /opt/iobroker

                    npm rebuild

                    Dann noch ein reboot hinterher

                    Dann hat iobroker ohne fehler im LOG seinen betrieb wieder aufgenommen.

                    Danke euch

                    Ps.: ohne Gewähr

                    1 Reply Last reply Reply Quote 0
                    • K
                      Kueppert last edited by

                      Huhu,

                      also ich hab es genau so gemacht und habe folgendes als Ausgabe unter putty erhalten (eine Fehlermeldung, ganz unten). Ist das schlimm?? O.o

                      ! root@iobrokerNUC:~# apt-get install -y nodejs
                      ! Paketlisten werden gelesen… Fertig
                      ! Abhängigkeitsbaum wird aufgebaut.
                      ! Statusinformationen werden eingelesen.... Fertig
                      ! Die folgenden Pakete werden aktualisiert (Upgrade):
                      ! nodejs
                      ! 1 aktualisiert, 0 neu installiert, 0 zu entfernen und 75 nicht aktualisiert.
                      ! Es müssen 13,6 MB an Archiven heruntergeladen werden.
                      ! Nach dieser Operation werden 18,7 MB Plattenplatz zusätzlich benutzt.
                      ! Holen:1 https://deb.nodesource.com/node_8.x stretch/main amd64 nodejs amd64 8.15.0-1nodesource1 [13,6 MB]
                      ! Es wurden 13,6 MB in 1 s geholt (9.275 kB/s).
                      ! apt-listchanges: Lese Changelogs…
                      ! (Lese Datenbank ... 38732 Dateien und Verzeichnisse sind derzeit installiert.)
                      ! Vorbereitung zum Entpacken von .../nodejs_8.15.0-1nodesource1_amd64.deb ...
                      ! Detected old npm client, removing...
                      ! Entpacken von nodejs (8.15.0-1nodesource1) über (6.14.2-1nodesource1) ...
                      ! nodejs (8.15.0-1nodesource1) wird eingerichtet ...
                      ! Trigger für man-db (2.7.6.1-2) werden verarbeitet ...
                      ! root@iobrokerNUC:~# cd /opt/iobroker
                      ! root@iobrokerNUC:/opt/iobroker# npm rebuild
                      ! > iobroker@1.1.2 install /opt/iobroker/node_modules/iobroker
                      ! > node lib/prepareSetup.js && node lib/setup.js
                      ! NPM version: 6.4.1
                      ! npm version >= 5: disabling package-lock
                      ! npm install iobroker.discovery@stable --production --save
                      ! npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
                      ! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
                      ! npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                      ! + iobroker.discovery@1.2.4
                      ! removed 217 packages, updated 1 package and audited 7904 packages in 24.955s
                      ! found 51 vulnerabilities (36 low, 4 moderate, 11 high)
                      ! run npm audit fix to fix them, or npm audit for details
                      ! packet folder is: /opt/iobroker/node_modules/iobroker.discovery | exists: true
                      ! npm install iobroker.admin@stable --production --save
                      ! npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
                      ! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
                      ! npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                      ! + iobroker.admin@3.5.10
                      ! removed 158 packages, updated 1 package and audited 7896 packages in 28.246s
                      ! found 51 vulnerabilities (36 low, 4 moderate, 11 high)
                      ! run npm audit fix to fix them, or npm audit for details
                      ! packet folder is: /opt/iobroker/node_modules/iobroker.admin | exists: true
                      ! npm install iobroker.js-controller@stable --production --save
                      ! > iobroker.js-controller@1.4.2 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                      ! > node lib/preinstall_check.js
                      ! NPM version: 6.4.1
                      ! npm version >= 5: disabling package-lock
                      ! > ursa-optional@0.9.10 install /opt/iobroker/node_modules/ursa-optional
                      ! > node rebuild.js
                      ! > iobroker.js-controller@1.4.2 install /opt/iobroker/node_modules/iobroker.js-controller
                      ! > node iobroker.js setup first
                      ! > rsa-compat@1.9.2 postinstall /opt/iobroker/node_modules/rsa-compat
                      ! > node lib/telemetry.js event:install
                      ! npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
                      ! npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
                      ! npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                      ! + iobroker.js-controller@1.4.2
                      ! added 6 packages from 15 contributors, removed 14 packages, updated 18 packages and audited 7624 packages in 33.746s
                      ! found 51 vulnerabilities (36 low, 4 moderate, 11 high)
                      ! run npm audit fix to fix them, or npm audit for details
                      ! packet folder is: /opt/iobroker/node_modules/iobroker.js-controller | exists: true
                      ! Write "./iobroker start" to start the ioBroker
                      ! /usr/bin/env: „node\r“: Datei oder Verzeichnis nicht gefunden
                      ! Auto-start was enabled. Write "update-rc.d -f iobroker.sh remove" to disable auto-start
                      ! iobroker is started. Go to "http://ip-addr:8081" to open the admin UI.
                      ! npm ERR! path /opt/iobroker/node_modules/iobroker.admin/node_modules/body-parser/package.json
                      ! npm ERR! code ENOENT
                      ! npm ERR! errno -2
                      ! npm ERR! syscall open
                      ! npm ERR! enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.admin/node_modules/body-parser/package.json'
                      ! npm ERR! enoent This is related to npm not being able to find a file.
                      ! npm ERR! enoent
                      ! npm ERR! A complete log of this run can be found in:
                      ! npm ERR! /root/.npm/_logs/2019-01-18T21_13_38_870Z-debug.log

                      NACHTRAG: hab ein reinstall.sh gemacht nach der Anleitung auf der Hmepage

                      http://www.iobroker.net/docu/?page_id=8 … js_und_npm

                      Musste vorher auch die Datei manuell anpassen…alles erledigt. Jetzt läuft (bis auf den Zigbee-Adapter) mein System wieder...

                      1 Reply Last reply Reply Quote 0
                      • P
                        pelikano24 last edited by

                        Bei mir das gleiche Problem, alles nach Anleitung erledigt und läuft auch soweit.

                        Nodejs 8.15.0

                        NPM 6.4.1

                        Bis auf den Zigbee Adapter, der will einfach nicht mehr starten.

                        Auszug aus der LOG-Fehlermeldung:

                        "NODE_MODULE_VERSION 57. Please try re-compilling or re-installing

                        This Version of node.js requires was compiled against a different Node.js Version using"

                        Re-compilling und re-installing habe ich ohne Erfolg probiert.

                        Hat jemand ne Idee oder einen Lösungsvorschlag, damit der Zigbee Adapter wieder läuft? Möchte diesen ungern neu installieren, da bei mir ca 30 Geräte und zahlreiche scripte damit verbunden sind.

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

                          Das npm rebuild halbnackt geholfen?

                          Gesendet vom Handy …

                          1 Reply Last reply Reply Quote 0
                          • P
                            pelikano24 last edited by

                            Leider nicht.

                            Die anderen Adapter sind alle wieder auf grün gegangen, bis auf den Zigbee. 😞

                            Er brachte mir beim rebuild auch jede Menge Fehlermeldungen. Ich werde heute abend nochmal alles durchlaufen lassen und hier einen Screenshot posten.

                            Wenn jemand ne Idee hat, was ich abseits der Anleitung noch probieren könnte, um den Adapter wieder zum Laufen zu bekommen wäre ich mega dankbar.

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

                              Dann poste bitte mal das log von npm rebuild

                              1 Reply Last reply Reply Quote 0
                              • K
                                Kueppert last edited by

                                @pelikano24:

                                Bei mir das gleiche Problem, alles nach Anleitung erledigt und läuft auch soweit.

                                Nodejs 8.15.0

                                NPM 6.4.1

                                Bis auf den Zigbee Adapter, der will einfach nicht mehr starten.

                                Auszug aus der LOG-Fehlermeldung:

                                "NODE_MODULE_VERSION 57. Please try re-compilling or re-installing

                                This Version of node.js requires was compiled against a different Node.js Version using"

                                Re-compilling und re-installing habe ich ohne Erfolg probiert.

                                Hat jemand ne Idee oder einen Lösungsvorschlag, damit der Zigbee Adapter wieder läuft? Möchte diesen ungern neu installieren, da bei mir ca 30 Geräte und zahlreiche scripte damit verbunden sind. ` Bei mir hat nach dem 2. Versuch alles geklappt. Musste nur den Stick Mal ziehen und neu dran klemmen…

                                Gesendet von meinem HUAWEI RIO-L01 mit Tapatalk

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

                                  @Kueppert:

                                  NACHTRAG: hab ein reinstall.sh gemacht nach der Anleitung auf der Hmepage

                                  http://www.iobroker.net/docu/?page_id=8 … js_und_npm

                                  Musste vorher auch die Datei manuell anpassen…alles erledigt. Jetzt läuft (bis auf den Zigbee-Adapter) mein System wieder... `

                                  an die Profis, ist das beschriebene aus dem Liink ausreichend, oder muss noch ein
                                  > npm rebuild

                                  ebenfalls ausgeführt werden?

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    pelikano24 last edited by

                                    Ich habe es nun auch hinbekommen.

                                    Bei mir fehlte die Berechtigung, dass der reinstall- Befehl im Iobroker Verzeichnis schreiben konnte.

                                    Befehl:

                                    chmod 777 /opt/iobroker

                                    danach ./reinstall.sh

                                    Nun ist alles auf dem richtigen Stand und Zigbee läuft auch wieder. Dieser Adapter benötigt dringend den reinstall-Befehl für die Zuordnung.

                                    Danke an alle für die Unterstützung

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

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate
                                    FAQ Cloud / IOT
                                    HowTo: Node.js-Update
                                    HowTo: Backup/Restore
                                    Downloads
                                    BLOG

                                    657
                                    Online

                                    31.7k
                                    Users

                                    79.7k
                                    Topics

                                    1.3m
                                    Posts

                                    6
                                    16
                                    2671
                                    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