Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [How-to] Node.js ioBroker richtig updaten-2021/22 Edition

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    [How-to] Node.js ioBroker richtig updaten-2021/22 Edition

    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Frank06347 @Homoran last edited by

      @homoran sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

      @frank06347 sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

      Ist das so richtig?

      ja!
      https://forum.iobroker.net/post/848055

      Alles klar ... Fehler im Admin .... vielen Dank für schnelle Antwort!
      Viele Grüße
      Frank

      Glasfaser 1 Reply Last reply Reply Quote 0
      • Glasfaser
        Glasfaser @Frank06347 last edited by

        @frank06347 sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

        Alles klar ... Fehler im Admin ....

        Nur zur Klärung , das ist kein Fehler vom ADMIN !

        Deshalb habe ich hier :

        ... es soll nur verhindert werden : "verleitet nur zu unnötigen Installations/Upgrade-Versuchen."

        https://github.com/ioBroker/ioBroker.admin/issues/1663

        Glasfaser-io created this issue in ioBroker/ioBroker.admin

        closed Admin Anzeige NPM Version wird falsch geholt #1663

        1 Reply Last reply Reply Quote 2
        • T
          torstenhe last edited by torstenhe

          Schönen guten Morgen,

          wollte euch mein Erfolgserlebnis in Bezug auf Node.js mitteilen.

          kurz zur Vorgeschichte. Mein iobroker lief jetzt mehr als ein Jahr unter Windows auf einem Surface 1. Bisher habe ich immer alles hinbekommen und er lief 24 / 7 ohne Probleme, egal welches Update, es lief einfach super.

          Jetzt bin ich auf proxmox gewechselt und einem Surface Pro 7 mit mit Displayschaden umgezogen. Als OS habe ich ubuntu server gewählt, 4 Cores und 4 GB RAM.

          Im ioBroker unter Windows Backup gezogen und im Ubuntu Server eingespielt. Hat erst mal länger gedauert, hatte da am Anfang etwas Probleme mit, läuft aber jetzt und das sehr performant.

          Dann Conbee ii usb durchgereicht, alles installiert und Backup eingespielt. Lief auf anhieb.

          Bis hierher alles gut gelaufen und es läuft auch alles.

          Dann habe ich gesehen das meine Node.js Version noch auf v12.22.9 ist.

          Ich hab glaub ich alles durch was man so machen kann. Snapshots sei dank, so kam ich immer wieder zurück. 🙂 Aber nichts hatte geholfen. Stichwort "Broken-Pipe".

          Nur das folgende konnte mir helfen:

          iobroker stop
          cd /opt/iobroker
          sudo npm cache verify
          sudo chown -R iobroker /opt/iobroker
          sudo apt update -y && sudo apt upgrade -y
          sudo apt-get purge nodejs -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y
          sudo curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
          sudo apt-get install -y nodejs
          sudo chown -R iobroker /opt/iobroker
          iobroker stop
          npm install -y iobroker.js-controller --unsafe-perm --production --save --prefix
          curl -sL https://iobroker.net/fix.sh | bash -
          npm rebuild
          iobroker update
          iobroker upgrade self
          iobroker upgrade -y
          iobroker start
          

          Vielleicht hilft das dem ein oder anderen noch. 🙂

          LG

          Torsten

          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @torstenhe last edited by

            @torstenhe

            Ehrlich gesagt: Recht wirr.

            T 1 Reply Last reply Reply Quote 0
            • T
              torstenhe @Thomas Braun last edited by

              @thomas-braun

              Mag sein, läuft aber jetzt. 🙄

              1 Reply Last reply Reply Quote 0
              • A
                Andre105 last edited by Andre105

                Moin,
                Ist es jetzt ratsam auf Node.js 16 zu wechseln?
                Wenn ja, wie war das noch mit den Befehlen?

                b5cb1ba3-7075-4571-947e-9bee4b99b48e-image.png

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Andre105 last edited by

                  @andre105

                  Ja.

                  HowTo in meiner Signatur.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    Andre105 @Thomas Braun last edited by

                    @thomas-braun
                    Muss ich das auch beachten?

                    HINWEIS: ACHTUNG BEIM UPGRADE AUF NODE.js 16!!!
                    
                    Ein Upgrade auf die Version 16 / npm 8 erfordert im Vorfeld einen sauberen 'npm tree'!!!.
                    

                    Bei mir steht das:

                    andre105@iobroker:~$ cd /opt/iobroker
                    npm ls | grep -E 'github|ERR'
                    [sudo] Passwort für andre105:
                    │ │ │ ├── github-from-package@0.0.0
                    npm ERR! peer dep missing: buffer@>=6.0.3, required by crc@4.1.1
                    npm ERR! extraneous: libmime@5.0.0 /opt/iobroker/node_modules/node-red-node-email/node_modules/libmime
                      │ │ │   ├── github-from-package@0.0.0 deduped
                    andre105@iobroker:/opt/iobroker$
                    
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Andre105 last edited by

                      @andre105

                      Nein, sollte kein Problem sein.

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        Andre105 @Thomas Braun last edited by

                        @thomas-braun
                        Hat geklappt 👍

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Andre105 last edited by

                          @andre105

                          sudo ln -s /usr/bin/node /usr/bin/nodejs
                          uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                          

                          sagt?

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            Andre105 @Thomas Braun last edited by

                            @thomas-braun

                            The programs included with the Debian GNU/Linux system are free software;
                            the exact distribution terms for each program are described in the
                            individual files in /usr/share/doc/*/copyright.
                            
                            Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                            permitted by applicable law.
                            Last login: Sat Sep 17 19:12:00 2022 from 192.168.178.28
                            andre105@iobroker:~$ sudo ln -s /usr/bin/node /usr/bin/nodejs
                            uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v                                                      && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update &&                                                      apt policy nodejs
                            [sudo] Passwort für andre105:
                            ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden:                                                      Die Datei existiert bereits
                            x86_64
                            /usr/bin/nodejs
                            /usr/bin/node
                            /usr/bin/npm
                            v16.17.0
                            v16.17.0
                            8.15.0
                            4.0.23
                            andre105
                            andre105 dialout cdrom floppy sudo audio dip video plugdev netdev iobroker
                            /home/andre105
                            OK:1 http://phoscon.de/apt/deconz bullseye InRelease
                            OK:2 http://security.debian.org/debian-security bullseye-security InRelease
                            OK:3 https://deb.nodesource.com/node_16.x bullseye InRelease
                            OK:4 http://ftp.de.debian.org/debian bullseye InRelease
                            OK:5 http://ftp.de.debian.org/debian bullseye-updates InRelease
                            Paketlisten werden gelesen… Fertig
                            Abhängigkeitsbaum wird aufgebaut… Fertig
                            Statusinformationen werden eingelesen… Fertig
                            Alle Pakete sind aktuell.
                            nodejs:
                              Installiert:           16.17.0-deb-1nodesource1
                              Installationskandidat: 16.17.0-deb-1nodesource1
                              Versionstabelle:
                             *** 16.17.0-deb-1nodesource1 500
                                    500 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages
                                    100 /var/lib/dpkg/status
                                 12.22.12~dfsg-1~deb11u1 500
                                    500 http://security.debian.org/debian-security bullseye-security/main am                                                     d64 Packages
                                 12.22.5~dfsg-2~11u1 500
                                    500 http://ftp.de.debian.org/debian bullseye/main amd64 Packages
                            andre105@iobroker:~$
                            
                            
                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Andre105 last edited by

                              @andre105

                              Passt. Der npm tree ist auch sauber?

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                Andre105 @Thomas Braun last edited by

                                @thomas-braun

                                andre105@iobroker:~$ cd /opt/iobroker
                                npm ls | grep -E 'github|ERR'
                                andre105@iobroker:/opt/iobroker$
                                
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @Andre105 last edited by

                                  @andre105

                                  Prima.Viel Spaß mit nodejs 16.

                                  A 1 Reply Last reply Reply Quote 0
                                  • A
                                    Andre105 @Thomas Braun last edited by

                                    @thomas-braun

                                    Super, wie immer Danke für die Hilfe.

                                    Ich muss auch immer am Ball bleiben.
                                    Jetzt kommt die dunkle Jahreszeit,da kann man sie wieder mehr mit beschäftigen.

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

                                      Hi Zusammen,

                                      bekomme das Update auf 16 nicht hin:

                                       curl -sL https://deb.nodesource.com/setup_16.x | sudo -E                                                                                                                                                              bash -
                                      
                                      ## Installing the NodeSource Node.js 16.x repo...
                                      
                                      
                                      ## Populating apt-get cache...
                                      
                                      + apt-get update
                                      Holen:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]
                                      Holen:2 http://www.deb-multimedia.org buster InRelease [17,8 kB]
                                      Holen:3 http://archive.raspberrypi.org/debian buster InRelease [32,6 kB]
                                      Holen:4 https://deb.nodesource.com/node_14.x buster InRelease [4.584 B]
                                      Ign:5 https://repos.influxdata.com/raspbian buster InRelease
                                      Fehl:6 https://repos.influxdata.com/raspbian buster Release
                                        404  Not Found [IP: 2600:9000:223e:9000:11:fe8d:7d40:93a1 443]
                                      Holen:7 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13,                                                                                                                                                             0 MB]
                                      Holen:8 http://archive.raspberrypi.org/debian buster/main armhf Packages [392 kB                                                                                                                                                             ]
                                      Holen:9 https://deb.nodesource.com/node_14.x buster/main armhf Packages [782 B]
                                      Paketlisten werden gelesen... Fertig
                                      E: Das Depot »https://repos.influxdata.com/raspbian buster Release« enthält kein                                                                                                                                                             e Release-Datei.
                                      N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art dur                                                                                                                                                             chgeführt werden, daher ist es standardmäßig deaktiviert.
                                      N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfigur                                                                                                                                                             ation finden Sie in der Handbuchseite apt-secure(8).
                                      N: Für das Depot »http://www.deb-multimedia.org buster InRelease« wurde der »Ver                                                                                                                                                             sion«-Wert von »10.12« in »10.13« geändert.
                                      Error executing command, exiting
                                      

                                      Wie kann ich das Update durchführen / den Fehler beheben?

                                      Danke und Gruß,

                                      Claus

                                      J 1 Reply Last reply Reply Quote 0
                                      • J
                                        Jan1 @Claus1985 0 last edited by

                                        @claus1985-0 sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                                        Holen:9 https://deb.nodesource.com/node_14.x buster/main armhf Packages [782 B]

                                        Editiere die nodesource.list unter /etc/apt/ und schreib da 16 rein, dann macht er automatisch das Update auf 16 😉

                                        Claus1985 0 Thomas Braun 2 Replies Last reply Reply Quote 0
                                        • Claus1985 0
                                          Claus1985 0 @Jan1 last edited by

                                          @jan1 Danke für die schnelle Antwort, allerdings habe ich im Verzeichnis keine nodesource.list:

                                          /etc/apt $ dir
                                          apt.conf.d   listchanges.conf  sources.list    trusted.gpg   trusted.gpg.d
                                          auth.conf.d  preferences.d     sources.list.d  trusted.gpg~
                                          
                                          J 1 Reply Last reply Reply Quote 0
                                          • J
                                            Jan1 @Claus1985 0 last edited by

                                            @claus1985-0
                                            Jou, Fehler von mir. Liegt in sources.list.d

                                            Claus1985 0 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

                                            693
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            97
                                            812
                                            295856
                                            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