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 für ioBroker richtig updaten

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    [How-to] Node.js für ioBroker richtig updaten

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

      @crunchip sagte in [How-to] Node.js für ioBroker richtig updaten:

      wenn du backups nur local speicherst, sind die weg wenn du gestern neu installiert hast.
      Ausser du hast mit dem backitup Adapter noch einen anderen Speicherplatz angegeben

      Leider hab ich keinen anderen Ort angegeben.
      Beim Adapter hab ich nur auf Backup gekickt und war fertig.

      Dass die Backups bei einer Neuinstallation mit gelöscht werden, dann hat sich das ganze ja bedauerlicherweise erledigt.

      Werde dann IO Broker heute Abend neu installieren.

      Das Betriebssystem vielleicht zur Sicherheit auch.

      Und dann werde ich Backups mit Pfad auf die Synology einrichten.
      Muss ich aber auch erst mal gucken, wie das geht.
      Aber eins nach dem anderen.

      Nach dem aktuellen Stand sieht ja jetzt so aus als hab ich wirklich scheiße gebaut und alles ist weg.

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

        @romano-drews sagte in [How-to] Node.js für ioBroker richtig updaten:

        Muss ich aber auch erst mal gucken, wie das geht.
        Aber eins nach dem anderen.

        Per NFS (bevorzugt) oder CIFS (wenn es nicht anders geht) den Ordner /opt/iobroker/backups als Mountpunkt für die Synology verwenden.

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

          Hallo, ich könnte mal Hilfe brauchen... bekomme mein nodejs bzw. NPM nicht sauber geupdated.
          Hab jetzt alle Beitrage hier durchgelesen und alles mögliche probiert was hier empfohlen wurde.
          Aber bekomme immer noch folgende Fehlermeldung:

          pi@iobroker:~ $ pi@iobroker:~ $ which nodejs && nodejs -v && which node && node -v && which npm                                        && npm -v && apt policy nodejs
          /usr/bin/nodejs
          v18.17.1
          /usr/bin/node
          v18.17.1
          /usr/bin/npm
          /usr/lib/node_modules/npm/lib/cli.js:35
              throw err
              ^
          
          TypeError: Class extends value undefined is not a constructor or null
              at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/li                                       b/index.js:136:4)
              at Module._compile (node:internal/modules/cjs/loader:1256:14)
              at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
              at Module.load (node:internal/modules/cjs/loader:1119:32)
              at Module._load (node:internal/modules/cjs/loader:960:12)
              at Module.require (node:internal/modules/cjs/loader:1143:19)
              at require (node:internal/modules/cjs/helpers:121:18)
              at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/co                                       ntent/read.js:4:13)
              at Module._compile (node:internal/modules/cjs/loader:1256:14)
              at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
          
          Node.js v18.17.1
          pi@iobroker:~ $
          
          
          
          
          M Thomas Braun 2 Replies Last reply Reply Quote 0
          • M
            michihorn @m0uh last edited by michihorn

            @m0uh Ich mache das eit langer Zeit ohne Probleme nach einer Anleitung aus der "Chip"
            Hier wird allerdings der gesamte RP auf den neusten Stand gebracht.
            1: Öffnen Sie die Konsole ihres Raspberry Pi. (Putty o.ä.)
            2: Geben Sie den Befehl "sudo apt-get update" ein und führen Sie ihn aus.
            3: Im Anschluss geben Sie den Befehl "sudo apt-get upgrade" ein und bestätigen mit "Enter".
            4: Haben Sie genügend freien Speicherplatz, führen Sie das Upgrade mit "Y" aus.
            5: Sobald das Update erfolgreich war, sollten Sie Ihren Raspberry Pi mit dem Befehl "sudo reboot" neustarten.
            Link Text

            Vielleicht hilft das
            Michael

            Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @m0uh last edited by

              @m0uh

              apt policy nodejs
              

              und wenn das passt:

              sudo apt install --reinstall nodejs
              
              M 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @michihorn last edited by

                @michihorn

                Das funktioniert aber nur, wenn die Grundeinstellung sauber ist. Und ein Upgrade auf eine höhere Version funktioniert damit auch nicht.

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

                  @thomas-braun said in [How-to] Node.js für ioBroker richtig updaten:

                  sudo apt install --reinstall nodejs

                  pi@iobroker:~ $
                  apt policy nodejs
                  nodejs:
                    Installed: 18.17.1-deb-1nodesource1
                    Candidate: 18.17.1-deb-1nodesource1
                    Version table:
                   *** 18.17.1-deb-1nodesource1 500
                          500 https://deb.nodesource.com/node_18.x bullseye/main arm64 Packages
                          100 /var/lib/dpkg/status
                       12.22.12~dfsg-1~deb11u4 500
                          500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
                       12.22.12~dfsg-1~deb11u3 500
                          500 http://deb.debian.org/debian bullseye/main arm64 Packages
                  pi@iobroker:~ $ sudo apt install --reinstall nodejs
                  Reading package lists... Done
                  Building dependency tree... Done
                  Reading state information... Done
                  0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
                  Need to get 0 B/28.1 MB of archives.
                  After this operation, 0 B of additional disk space will be used.
                  (Reading database ... 102217 files and directories currently installed.)
                  Preparing to unpack .../nodejs_18.17.1-deb-1nodesource1_arm64.deb ...
                  Unpacking nodejs (18.17.1-deb-1nodesource1) over (18.17.1-deb-1nodesource1) ...
                  Setting up nodejs (18.17.1-deb-1nodesource1) ...
                  Processing triggers for man-db (2.9.4-2) ...
                  pi@iobroker:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                  /usr/bin/nodejs
                  v18.17.1
                  /usr/bin/node
                  v18.17.1
                  /usr/bin/npm
                  /usr/lib/node_modules/npm/lib/cli.js:35
                      throw err
                      ^
                  
                  TypeError: Class extends value undefined is not a constructor or null
                      at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4)
                      at Module._compile (node:internal/modules/cjs/loader:1256:14)
                      at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
                      at Module.load (node:internal/modules/cjs/loader:1119:32)
                      at Module._load (node:internal/modules/cjs/loader:960:12)
                      at Module.require (node:internal/modules/cjs/loader:1143:19)
                      at require (node:internal/modules/cjs/helpers:121:18)
                      at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13)
                      at Module._compile (node:internal/modules/cjs/loader:1256:14)
                      at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
                  
                  Node.js v18.17.1
                  pi@iobroker:~ $
                  
                  

                  leider keine Abhilfe. Hab ich schon mehrfach probiert.

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

                    @thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten:

                    @michihorn

                    Das funktioniert aber nur, wenn die Grundeinstellung sauber ist. Und ein Upgrade auf eine höhere Version funktioniert damit auch nicht.

                    Doch das Upgrade funktioniert!

                    crunchip 1 Reply Last reply Reply Quote 0
                    • crunchip
                      crunchip Forum Testing Most Active @michihorn last edited by

                      @michihorn NEIN, innerhalb, sprich minor version ja, ein upgrade auf eine nächst höhere major version aber nicht

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

                        @m0uh

                        Mal jemals npm von Hand angepackt und upgedatet?

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

                          @michihorn sagte in [How-to] Node.js für ioBroker richtig updaten:

                          nach einer Anleitung aus der "Chip"

                          von wann ist diese Anleitung denn?

                          @michihorn sagte in [How-to] Node.js für ioBroker richtig updaten:

                          den Befehl "sudo apt-get update"

                          benutzt man eigentlich schon länger nicht mehr.

                          apt-get wurde durch ein einfaches apt ersetzt (grob gesagt)

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

                            @thomas-braun Nein, hab alle Updates immer nach der Anleitung hier im Forum gemacht.

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

                              @m0uh

                              Lösch mal den npm cache.

                              sudo -H -u iobroker npm cache clean --force
                              
                              M 1 Reply Last reply Reply Quote 0
                              • M
                                m0uh @Thomas Braun last edited by

                                @thomas-braun Selber Fehler

                                pi@iobroker:~ $ sudo -H -u iobroker npm cache clean --force
                                /usr/lib/node_modules/npm/lib/cli.js:35
                                    throw err
                                    ^
                                
                                TypeError: Class extends value undefined is not a constructor or null
                                    at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4)
                                    at Module._compile (node:internal/modules/cjs/loader:1256:14)
                                    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
                                    at Module.load (node:internal/modules/cjs/loader:1119:32)
                                    at Module._load (node:internal/modules/cjs/loader:960:12)
                                    at Module.require (node:internal/modules/cjs/loader:1143:19)
                                    at require (node:internal/modules/cjs/helpers:121:18)
                                    at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/cacache/lib/content/read.js:4:13)
                                    at Module._compile (node:internal/modules/cjs/loader:1256:14)
                                    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
                                
                                Node.js v18.17.1
                                
                                
                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @m0uh last edited by

                                  @m0uh sagte in [How-to] Node.js für ioBroker richtig updaten:

                                  Mach einen eigenen Thread auf und gib da mal die Ausgabe von

                                  iob diag
                                  

                                  rein. Dürfte zwar sehr zerfetzt aussehen, aber sei's drum.

                                  M M 2 Replies Last reply Reply Quote 0
                                  • M
                                    m0uh @Thomas Braun last edited by

                                    @thomas-braun Erledigt. Siehe:

                                    https://forum.iobroker.net/topic/67912/nodejs-update-von-16-x-auf-18-x-nicht-möglich-npm-fehler

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

                                      @thomas-braun Installation-Setup wird als veraltet angemerkt. Gibt es da was Neues?

                                      Hab es in Deiner Signatur nachvollzogen. ok.

                                      prox@jarvisV313:~$ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
                                      
                                      ================================================================================
                                      ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
                                      ================================================================================
                                      
                                                                 SCRIPT DEPRECATION WARNING                    
                                      
                                        
                                        This script, located at https://deb.nodesource.com/setup_X, used to
                                        install Node.js is deprecated now and will eventually be made inactive.
                                      
                                        Please visit the NodeSource distributions Github and follow the
                                        instructions to migrate your repo.
                                        https://github.com/nodesource/distributions
                                      
                                        The NodeSource Node.js Linux distributions GitHub repository contains
                                        information about which versions of Node.js and which Linux distributions
                                        are supported and how to install it.
                                        https://github.com/nodesource/distributions
                                      
                                      
                                                                SCRIPT DEPRECATION WARNING
                                      
                                      ================================================================================
                                      ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
                                      ================================================================================
                                      
                                      TO AVOID THIS WAIT MIGRATE THE SCRIPT
                                      Continuing in 60 seconds (press Ctrl-C to abort) ...
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @MCU last edited by

                                        @mcu sagte in [How-to] Node.js für ioBroker richtig updaten:

                                        Hab es in Deiner Signatur nachvollzogen. ok.

                                        Ja, da hab ich es schon drin. Und im 'Beta-iob-diag' ist es auch drin.
                                        Ich wollte mir die Tage dann vielleicht auch den iob installer mal anschauen und einen PR schreiben.

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

                                          @thomas-braun Wie kann man denn z.B. nodejs 20 sperren?

                                          Achtung, wenn das Repo mit einer höheren Version nicht deaktiviert wird kommt beim nächsten apt update / apt upgrade natürlich die höhere Version mit.

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

                                            @mcu

                                            Einfach keine Zeile für nodejs@20 anlegen.
                                            Die Versionszweige kommen immer noch aus separaten Einträgen.

                                            ODER man pinnt ein nodejs@18 fest. Ging per 'apt pinning'

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

                                            Support us

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

                                            520
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            installation linux node node.js nodejs windows
                                            106
                                            1105
                                            676982
                                            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