Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. Troubleshooting NodeJS update

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Troubleshooting NodeJS update

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @BananaJoe last edited by Thomas Braun

      @bananajoe

      Ich denke das kann weg.

      cd /opt/iobroker
      npm u canvas
      

      Bei mir liegt das auch erst in der zweiten Ebene:

      echad@chet:~ $ cd /opt/iobroker/
      echad@chet:/opt/iobroker $ npm ls canvas
      iobroker.inst@3.0.0 /opt/iobroker
      ├─┬ iobroker.echarts@1.4.14
      │ ├── canvas@2.11.2
      │ └─┬ jsdom@21.1.1
      │   └── canvas@2.11.2 deduped
      ├─┬ iobroker.iot@1.14.5 (git+ssh://git@github.com/ioBroker/ioBroker.iot.git#3125ef0f84dc12bb0efecf31be08f1448ae62187)
      │ └── canvas@2.11.2 deduped
      └─┬ iobroker.mihome-vacuum@3.10.1
        └── canvas@2.11.2 deduped
      
      echad@chet:/opt/iobroker $
      
      BananaJoe 1 Reply Last reply Reply Quote 0
      • BananaJoe
        BananaJoe Most Active @Thomas Braun last edited by

        @thomas-braun sagte in Troubleshooting NodeJS update:

        npm u canvas

        ich nehme an das stand für

        npm uninstall canvas
        

        sieht jetzt so bei mir aus:

        iobroker@iobroker:/opt/iobroker$ npm ls canvas
        iobroker.inst@2.0.3 /opt/iobroker
        ├─┬ iobroker.echarts@1.4.14
        │ ├── canvas@2.11.2
        │ └─┬ jsdom@21.1.1
        │   └── canvas@2.11.2 deduped
        ├─┬ iobroker.energiefluss@3.6.0 (git+ssh://git@github.com/SKB-CGN/ioBroker.energiefluss.git#1b2f62380b39ac21b8a94853d76b4acf6c395111)
        │ └── canvas@2.11.2 deduped
        └─┬ iobroker.iot@1.14.5
          └── canvas@2.11.2 deduped
        

        Also so wie bei dir?!
        eCharts funktioniert noch (das Senden von Diagrammen per Telegram), also sollte es passen.

        Danke!

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

          Hi!

          Ich wollte gerade auf das aktuelle Node.js V18 updaten und bekomme folgenden Fehler

          meinz@iobroker:~$ sudo apt-get install -y nodejs
          Paketlisten werden gelesen... Fertig
          Abhängigkeitsbaum wird aufgebaut.
          Statusinformationen werden eingelesen.... Fertig
          Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
          Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
          Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
          nicht erstellt wurden oder Incoming noch nicht verlassen haben.
          Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
          
          Die folgenden Pakete haben unerfüllte Abhängigkeiten:
           nodejs : Hängt ab von: libc6 (>= 2.28) aber 2.27-3ubuntu1.6 soll installiert werden
          E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
          
          
          apt policy libc6 libc6-dbg libc6-dev
          

          bring folgende Ausgabe

          meinz@iobroker:~$ apt policy libc6 libc6-dbg libc6-dev
          libc6:
            Installiert:           2.27-3ubuntu1.6
            Installationskandidat: 2.27-3ubuntu1.6
            Versionstabelle:
           *** 2.27-3ubuntu1.6 500
                  500 http://at.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
                  100 /var/lib/dpkg/status
               2.27-3ubuntu1.5 500
                  500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
               2.27-3ubuntu1 500
                  500 http://at.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
          libc6-dbg:
            Installiert:           2.27-3ubuntu1.6
            Installationskandidat: 2.27-3ubuntu1.6
            Versionstabelle:
           *** 2.27-3ubuntu1.6 500
                  500 http://at.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
                  100 /var/lib/dpkg/status
               2.27-3ubuntu1.5 500
                  500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
               2.27-3ubuntu1 500
                  500 http://at.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
          libc6-dev:
            Installiert:           2.27-3ubuntu1.6
            Installationskandidat: 2.27-3ubuntu1.6
            Versionstabelle:
           *** 2.27-3ubuntu1.6 500
                  500 http://at.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
                  100 /var/lib/dpkg/status
               2.27-3ubuntu1.5 500
                  500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
               2.27-3ubuntu1 500
                  500 http://at.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
          
          
          sudo apt update
          

          ergibt

          OK:1 http://at.archive.ubuntu.com/ubuntu bionic InRelease
          OK:2 http://at.archive.ubuntu.com/ubuntu bionic-updates InRelease
          OK:3 http://at.archive.ubuntu.com/ubuntu bionic-backports InRelease
          OK:4 https://deb.nodesource.com/node_18.x bionic InRelease
          Holen:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
          Es wurden 88,7 kB in 2 s geholt (41,9 kB/s).
          Paketlisten werden gelesen... Fertig
          Abhängigkeitsbaum wird aufgebaut.
          Statusinformationen werden eingelesen.... Fertig
          Aktualisierung für 1 Paket verfügbar. Führen Sie »apt list --upgradable« aus, um es anzuzeigen.
          
          
          apt list --upgradable
          

          bring dann

           apt list --upgradable
          Auflistung... Fertig
          nodejs/unbekannt 18.16.0-deb-1nodesource1 amd64 [aktualisierbar von: 16.20.0-deb-1nodesource1]
          N: Es gibt 4 zusätzliche Versionen. Bitte verwenden Sie die Option »-a«, um sie anzuzeigen.
          
          
          iobroker stop
          sudo apt update
          sudo apt full-upgrade
          sudo reboot
          

          Hab ich auch durchlaufen lassen. Danach noch immer das gleiche Problem.

          Vielen Dank für Eure Hilfe.

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

            @meinzisas

            Dein Betriebssystem ist zu alt. Bring das auf Ubuntu 22.04.

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

              @thomas-braun

              Das würde wohl eine Neuinstallation bedeuten, oder?

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

                @meinzisas

                Nicht unbedingt. Zwischen den LTS-Versionen sollte das auch im laufenden Betrieb gehen. Für Details dazu musste mal im Netz suchen.

                MeinzIsAs 1 Reply Last reply Reply Quote 1
                • MeinzIsAs
                  MeinzIsAs @Thomas Braun last edited by

                  @thomas-braun said in Troubleshooting NodeJS update:

                  @meinzisas

                  Nicht unbedingt. Zwischen den LTS-Versionen sollte das auch im laufenden Betrieb gehen. Für Details dazu musste mal im Netz suchen.

                  Ok. Vielen Dank für die schnelle Hilfe.

                  1 Reply Last reply Reply Quote 0
                  • R
                    reini last edited by

                    Hallo, wollte nodejs von 14 auf 18 updaten - wie kann ich das fixen? thx

                    sudo apt update
                    Ign:1 http://security.debian.org/debian-security stretch/updates InRelease
                    Fehl:2 http://security.debian.org/debian-security stretch/updates Release
                      404  Not Found [IP: 199.232.18.132 80]
                    Ign:3 http://ftp.de.debian.org/debian stretch InRelease
                    Ign:4 http://ftp.de.debian.org/debian stretch-updates InRelease
                    Fehl:5 http://ftp.de.debian.org/debian stretch Release
                      404  Not Found
                    Fehl:6 http://ftp.de.debian.org/debian stretch-updates Release
                      404  Not Found
                    OK:7 https://deb.nodesource.com/node_18.x bullseye InRelease
                    Paketlisten werden gelesen... Fertig
                    E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does no longer have a Release file.
                    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
                    N: See apt-secure(8) manpage for repository creation and user configuration details.
                    E: The repository 'http://ftp.de.debian.org/debian stretch Release' does no longer have a Release file.
                    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
                    N: See apt-secure(8) manpage for repository creation and user configuration details.
                    E: The repository 'http://ftp.de.debian.org/debian stretch-updates Release' does no longer have a Release file.
                    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
                    N: See apt-secure(8) manpage for repository creation and user configuration details.
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @reini last edited by Thomas Braun

                      @reini

                      Dein Betriebssystem ist hoffnungslos veraltet.
                      Bring das zunächst auf das 'Bullseye'-Release.

                      Der Sprung ist aber so groß, installier es neu.

                      Wieder diese 'never tatsch a ranning süstäm'-Mär geglaubt?

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User last edited by

                        mir wird angezeigt, dass es ein Punkt-Update gibt. Wenn ich aber nach Anleitung nodejs erst de- und dann installiere bleibt es bei 18.16.0

                        das steht in Info beim ioBroker, und wird letztlich auch bei unten stehendem Terminalbefehl angezeigt.
                        Node.js: v18.16.0(18.16.1)

                        pi@HomeServer01:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                        pi@HomeServer01:~ $ type -P nodejs node npm npx && nodejs -v && node -v && npm -v && npx -v
                        /usr/bin/nodejs
                        /usr/bin/node
                        /usr/bin/npm
                        /usr/bin/npx
                        v18.16.0
                        v18.16.0
                        9.5.1
                        9.5.1
                        

                        einfach noch ein paar Tage warten?
                        das ganze ist kein "Problem", freu mich nur, wenn ich überall immer "Vorne" bin.
                        Danke Euch schon mal

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

                          @hannnes sagte in Troubleshooting NodeJS update:

                          einfach noch ein paar Tage warten?

                          Ja, das ist von nodesource im downstream noch nicht umgepackt worden.
                          Upstream ist es von nodejs.org natürlich schon released worden, daher auch der Hinweis.

                          ? 1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @Thomas Braun last edited by

                            @thomas-braun sagte in Troubleshooting NodeJS update:

                            @hannnes sagte in Troubleshooting NodeJS update:

                            einfach noch ein paar Tage warten?

                            Ja, das ist von nodesource im downstream noch nicht umgepackt worden.
                            Upstream ist es von nodejs.org natürlich schon released worden, daher auch der Hinweis.

                            danke Dir!

                            1 Reply Last reply Reply Quote 0
                            • M
                              M-A-X last edited by M-A-X

                              Hey.
                              Nur ne Verständnisfrage: warum wird bzw wurde das empfohlene Vorgehen zum 'Update' geändert? Die 'alte' Anleitung war im Prinzip doch gar nicht so alt. Einfach, damit die Installation 'sauberer' ist? (alte Anleitung war ja (ggf) sources anpassen, iob stoppen, (Backup), apt Update, Upgrade, fertig).
                              Danke für die Aufklärung.
                              Ab nämlich gerade - aus Gewohnheit - so geupdatet und erst parallel dazu gefunden, dass ein neues Vorgehen empfohlen wird.
                              Ich Frage ausdrücklich NICHT um zu kritisieren, sondern wirklich aus Interesse. Das "hier" beschriebene Vorgehen der kompletten Neuinstallation hätte doch schon immer funktioniert?!. Statt dessen wurde (vor 2? Jahren noch mit 2 Befehlen (curl.....) gearbeitet, dann mit dem von mir "beschriebenen" update->upgrade und jetzt so).
                              Grüße
                              Max

                              Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @M-A-X last edited by Thomas Braun

                                @m-a-x sagte in Troubleshooting NodeJS update:

                                Ab nämlich gerade - aus Gewohnheit - so geupdatet und erst parallel dazu gefunden, dass ein neues Vorgehen empfohlen wird.

                                Was meinst du genau?
                                Es führen mehrere Wege zu einer korrekten Installation.

                                1 Reply Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators @M-A-X last edited by

                                  @m-a-x sagte in Troubleshooting NodeJS update:

                                  Die 'alte'

                                  link bitte!

                                  @m-a-x sagte in Troubleshooting NodeJS update:

                                  geändert

                                  ebenfalls link bitte, damit wir auch vom gleichen reden!

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    M-A-X last edited by M-A-X

                                    @thomas-braun @Homoran
                                    Ich habe diese Methode angewendet (mit nano zum Beispiel die 18er source hinzugefügt und von 16 auf 18 geupdatet, seitdem immer (ohne nano) mit sudo apt Update - > Upgrade).
                                    (https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian)

                                    Die Methode davor finde ich gerade nicht mehr im forum.
                                    Im Prinzip war das ein iobroker stop / Backup mit anschließendem curl Befehl (um die aktuelle source zu bekommen und dann nem 'install nodejs')

                                    Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @M-A-X last edited by

                                      @m-a-x

                                      Das ist kein grundlegender Unterschied. Kann man beides machen.

                                      1 Reply Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @M-A-X last edited by

                                        @m-a-x sagte in Troubleshooting NodeJS update:

                                        seitdem immer (ohne nano) mit sudo apt Update - > Upgrade).

                                        damit bleibst du immer innerhalb der major Version

                                        um auf eine neue major Version (14, 16, 18) zu kommen musst du eine der beiden Vorgehensweisen durchführen.

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          M-A-X @Homoran last edited by

                                          @homoran hey. Ja, das wusste ich ausnahmsweise mal 🙂 ich wollte damit nur beschreiben, wie ich bisher vorgegangen bin.
                                          Danke für die Aufklärung @thomas-braun @Homoran

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

                                            Moin moin,

                                            ich habe einmal mein NodeJS aus folgender Anleitung von 16 auf 18 geupdatet.

                                            https://forum.iobroker.net/topic/64032/update-nodejs-best-practise-supported-16-und-18

                                            Nun bekomme ich solche Fehlermeldungen in meinem System. Habe schon ein wenig gegoogelt, aber nix passendes gefunden. Hat da jemand einen Tipp für mich ?

                                            Gruß André

                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.996	error	instance system.adapter.amazon-dash.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.995	error	Caught by controller[0]: Node.js v18.16.1
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.995	error	Caught by controller[0]: }
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.995	error	Caught by controller[0]: code: 'ERR_DLOPEN_FAILED'
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.995	error	Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:960:12) {
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.995	error	Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1119:32)
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.970	error	Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.970	error	Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1256:14)
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.970	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/pcap/pcap.js:3:21)
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.970	error	Caught by controller[0]: at require (node:internal/modules/cjs/helpers:110:18)
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.970	error	Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1143:19)
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.970	error	Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:960:12)
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.969	error	Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1119:32)
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.969	error	Caught by controller[0]: at Module._extensions..node (node:internal/modules/cjs/loader:1340:18)
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.969	error	Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`).
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.969	error	Caught by controller[0]: NODE_MODULE_VERSION 108. Please try re-compiling or re-installing
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.969	error	Caught by controller[0]: NODE_MODULE_VERSION 93. This version of Node.js requires
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.969	error	Caught by controller[0]: was compiled against a different Node.js version using
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.968	error	Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node'
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.968	error	Caught by controller[0]: ^
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.968	error	Caught by controller[0]: return process.dlopen(module, path.toNamespacedPath(filename));
                                            host.IOBroker-Proxmox
                                            2023-07-01 14:18:03.967	error	Caught by controller[0]: node:internal/modules/cjs/loader:1340
                                            
                                            Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            560
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            nodejs 18 nodejs update
                                            60
                                            504
                                            84500
                                            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