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.
    • S
      saeft_2003 Most Active @apollon77 last edited by

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

      npm rebuild

      hab ich gemacht bringt nichts fehler noch vorhanden. ich habe auf einem slave auch den adapter mit node 12 laufen es muss irgendwie gehen...

      root@iobroker:~# iobroker stop
      root@iobroker:~# cd /opt/iobroker/node_modules/@serialport/bindings/
      root@iobroker:/opt/iobroker/node_modules/@serialport/bindings# npm rebuild
      @serialport/parser-readline@8.0.6 /opt/iobroker/node_modules/@serialport/binding                                                                                                                                                             s/node_modules/@serialport/parser-readline
      @serialport/parser-delimiter@8.0.6 /opt/iobroker/node_modules/@serialport/bindin                                                                                                                                                             gs/node_modules/@serialport/parser-delimiter
      bindings@1.5.0 /opt/iobroker/node_modules/@serialport/bindings/node_modules/bind                                                                                                                                                             ings
      debug@4.1.1 /opt/iobroker/node_modules/@serialport/bindings/node_modules/debug
      ms@2.1.2 /opt/iobroker/node_modules/@serialport/bindings/node_modules/ms
      nan@2.14.1 /opt/iobroker/node_modules/@serialport/bindings/node_modules/nan
      prebuild-install@5.3.3 /opt/iobroker/node_modules/@serialport/bindings/node_modu                                                                                                                                                             les/prebuild-install
      expand-template@2.0.3 /opt/iobroker/node_modules/@serialport/bindings/node_modul                                                                                                                                                             es/expand-template
      pump@3.0.0 /opt/iobroker/node_modules/@serialport/bindings/node_modules/pump
      root@iobroker:/opt/iobroker/node_modules/@serialport/bindings#
      
      
      S 1 Reply Last reply Reply Quote 0
      • S
        saeft_2003 Most Active @saeft_2003 last edited by saeft_2003

        zum glück habe ich voher von der vm ein backup gemacht ist jetzt wieder eingespielt und läuft wieder alles mit node 10. Ich kann die andere vm mit node 12 aber wieder starten, da ich sehr gerne dieses problem lösen würde... Was hast du noch für eine idee @apollon77?

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

          Anstelle "npm rebuild" mach mal ein "npm install --production" in dem Ordner

          S 2 Replies Last reply Reply Quote 0
          • S
            saeft_2003 Most Active @apollon77 last edited by

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

            Anstelle "npm rebuild" mach mal ein "npm install --production" in dem Ordner

            Alles klar probiere ich morgen und melde mich dann. Vielen Dank soweit. Gute Nacht 😴

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

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

              /opt/iobroker/node_modules/@serialport

              läche das ding mit

              rm -R /opt/iobroker/node_modules/@serialport
              

              adapter stoppen nicht vergessen

              und installiere den Zigbee Adapter neu vom GIT dann werden die abhängigkeiten alle neu aufgebaut

              S 1 Reply Last reply Reply Quote 1
              • S
                saeft_2003 Most Active @apollon77 last edited by

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

                npm install --production

                hab ich gemacht bringt den selben Fehler...

                root@iobroker:~# iobroker stop
                root@iobroker:~# cd /opt/iobroker
                root@iobroker:/opt/iobroker# npm install --production
                
                > iobroker.inst@2.0.2 install /opt/iobroker
                > node lib/checkVersions.js
                
                NPM version: 6.14.4
                
                > iobroker.inst@2.0.2 postinstall /opt/iobroker
                > node lib/install.js
                
                
                
                ╭─────────────────────────────────────────────────────────╮
                │                                                         │
                │ Manual installation of ioBroker is no longer supported  │
                │ on Linux, OSX and FreeBSD!                              │
                │ Please refer to the documentation on how to install it! │
                │ https://github.com/ioBroker/ioBroker/wiki/Installation  │
                │                                                         │
                ╰─────────────────────────────────────────────────────────╯
                
                
                npm ERR! code ELIFECYCLE
                npm ERR! errno 100
                npm ERR! iobroker.inst@2.0.2 postinstall: `node lib/install.js`
                npm ERR! Exit status 100
                npm ERR!
                npm ERR! Failed at the iobroker.inst@2.0.2 postinstall script.
                npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                
                npm ERR! A complete log of this run can be found in:
                npm ERR!     /home/iobroker/.npm/_logs/2020-05-31T07_23_43_761Z-debug.log
                root@iobroker:/opt/iobroker#
                
                

                und das log gibt es nicht im iobroker ordner sind nur dateien von mir aber kein Ordner .npm. Und jetzt?

                Unbenannt.jpg

                1 Reply Last reply Reply Quote 0
                • S
                  saeft_2003 Most Active @arteck last edited by saeft_2003

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

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

                  /opt/iobroker/node_modules/@serialport

                  läche das ding mit

                  rm -R /opt/iobroker/node_modules/@serialport
                  

                  adapter stoppen nicht vergessen

                  und installiere den Zigbee Adapter neu vom GIT dann werden die abhängigkeiten alle neu aufgebaut

                  Läche? Meinst du lösche? Wenn ich den zigbee Adapter neu installiere, sind dann alle meine gespeicherten geräte weg? Weil es sind ca. 45 Stück...

                  Wäre es dann so richtig?

                  Zigbee stoppen —> Befehl rm-R .... in Konsole eingeben —> Auf die Github Katze —> zigbee Adapter wählen (installieren oder updaten) —> upload

                  1 Reply Last reply Reply Quote 0
                  • S
                    saeft_2003 Most Active last edited by

                    @arteck @apollon77 @Glasfaser @Thomas-Braun

                    Das hier und die installation über GIT war die Lösung für mein Problem. Vielen Dank arteck!!!!

                    rm -R /opt/iobroker/node_modules/@serialport
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S
                      saeft_2003 Most Active @saeft_2003 last edited by

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

                      @arteck @apollon77 @Glasfaser @Thomas-Braun

                      Das hier und die installation über GIT war die Lösung für mein Problem. Vielen Dank arteck!!!!

                      rm -R /opt/iobroker/node_modules/@serialport
                      

                      @apollon77

                      Willst du das bei bekannte Probleme bei npm rebuild mit aufnehmen? Kann natürlich sein dass das bei mir ein Einzelfall wahr, aber vielleicht kommen noch mehr die das Problem haben... weil ich möchte jedem das Stundenlange Fehlersuche ersparen, wenn das Problem innerhalb von 3 Minuten mit der Anleitung von arteck erledigt sein kann.

                      1 Reply Last reply Reply Quote 0
                      • U
                        Unbekannt last edited by

                        Hallo zusammen, ich hoffe ihr könnt mir behilflich sein.

                        Ich habe einen Master-Slave Verbund und das Update von Node.js 10 auf 12 beim Slave Raspberry hat prima geklappt, jedoch beim Master bekomme ich, nachdem ich

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

                        eingebe, die folgende Fehlermeldung:

                        pi@ioBroker:/opt/iobroker $ curl -sL https://deb.nodesource.com/setup_12.x | bash -
                        
                        ## Installing the NodeSource Node.js 12.x repo...
                        
                        
                        ## Populating apt-get cache...
                        
                        + apt-get update
                        Paketlisten werden gelesen... Fertig
                        E: Sperrdatei /var/lib/apt/lists/lock konnte nicht geöffnet werden. - open (13: Keine Berechtigung)
                        E: Das Verzeichnis /var/lib/apt/lists/ kann nicht gesperrt werden.
                        W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/pkgcache.bin - RemoveCaches (13: Keine Berechtigung)
                        W: Problem beim Entfernen (unlink) der Datei /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Keine Berechtigung)
                        Error executing command, exiting
                        pi@ioBroker:/opt/iobroker $
                        

                        Ich habe anschließend den Istall fixer drüber laufen lassen und es anschließend nochmal probiert - leider mit gleichem Ergebnis.

                        Könnt ihr mir bitte hierbei helfen?
                        Gruß Markus

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

                          @Unbekannt
                          Das ist kein Problem mit dem ioBroker / Fixer, das liegt 'tiefer'.

                          nodejs -v && which nodejs && node -v && which node && npm -v && which npm && apt policy nodejs
                          
                          sudo whoami
                          

                          [Edit:] Zu kompliziert gedacht, da fehlt nur ein 'sudo' vor bash -

                          1 Reply Last reply Reply Quote 0
                          • S
                            saeft_2003 Most Active @Unbekannt last edited by

                            @Unbekannt

                            probier mal mit sudo.

                            curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                            
                            1 Reply Last reply Reply Quote 0
                            • U
                              Unbekannt last edited by Unbekannt

                              ich habe es mit

                              curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                              

                              probiert:

                              hier das Ergebnis:

                              pi@ioBroker:/opt/iobroker $ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                              
                              ## Installing the NodeSource Node.js 12.x repo...
                              
                              
                              ## Populating apt-get cache...
                              
                              + apt-get update
                              OK:1 http://archive.raspberrypi.org/debian buster InRelease
                              Holen:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]
                              OK:3 https://deb.nodesource.com/node_10.x buster InRelease
                              Paketlisten werden gelesen... Fertig
                              E: Für das Depot »http://raspbian.raspberrypi.org/raspbian buster InRelease« wurde der »Suite«-Wert von »testing« in »stable« geändert.
                              N: Sie müssen dies explizit bestätigen, bevor Aktualisierungen von diesem Depot angewendet werden können. Lesen Sie die apt-secure(8)-Handbuchseite, wenn Sie weitere Informationen benötigen.
                              Error executing command, exiting
                              pi@ioBroker:/opt/iobroker $
                              
                              

                              Bei

                              nodejs -v && which nodejs && node -v && which node && npm -v && which npm && apt policy nodejs
                              

                              gibt es diese Infos:

                              pi@ioBroker:/opt/iobroker $ nodejs -v && which nodejs && node -v && which node && npm -v && which npm && apt policy nodejs
                              v10.21.0
                              /usr/bin/nodejs
                              v10.21.0
                              /usr/bin/node
                              6.14.4
                              /usr/bin/npm
                              nodejs:
                                Installiert:           10.21.0-1nodesource1
                                Installationskandidat: 10.21.0-1nodesource1
                                Versionstabelle:
                               *** 10.21.0-1nodesource1 500
                                      500 https://deb.nodesource.com/node_10.x buster/main armhf Packages
                                      100 /var/lib/dpkg/status
                                   10.15.2~dfsg-2+rpi1 500
                                      500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                              pi@ioBroker:/opt/iobroker $
                              
                              

                              Und

                              sudo whoami
                              

                              zeigt root

                              Gruß Markus

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

                                @Unbekannt

                                sudo apt-get update --allow-releaseinfo-change
                                sudo apt update
                                sudo apt dist-upgrade
                                curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                                sudo apt update 
                                sudo apt upgrade
                                
                                1 Reply Last reply Reply Quote 0
                                • U
                                  Unbekannt last edited by

                                  @Thomas-Braun

                                  vielen Dank. Ich habe die Befehle abgearbeitet und nun die aktuelle Version drauf. Danke.

                                  Ich habe leider keine Ahnung was ich da grade gemacht habe, könntest du das bitte erläutern? Damit ich den Hintergrund ein wenig verstehe und mir beim nächsten Mal selbst helfen kann?

                                  Gruß Markus

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

                                    @Unbekannt
                                    Kein Problem.
                                    Mit

                                    sudo apt-get update --allow-releaseinfo-change
                                    

                                    hast du den (mittlerweile eigentlich von 'apt' abgelösten) Paketmanager 'apt-get' angewiesen, dass es okay ist, dass deine Installationsquellen für Buster von 'testing' auf 'stable' umdeklariert wurden. Das verhindert dann künftig die Meldung, die hier z. B. vom Installationsskript ausgelöst wurde.

                                    In den nächsten beiden Zeilen werden alle auf dem System vorhandenen Pakete/Programme aktualisiert.
                                    Mit

                                    curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                                    

                                    wird dann die Paketquelle / das Repository von node12 sauber angelegt.
                                    Mit den letzten beiden Zeilen wird dann nochmal das komplette System (inkl. node12) auf den letzten Stand gebracht.

                                    Zeig mal die Ausgabe von

                                    nodejs -v && which nodejs && node -v && which node && npm -v && which npm && apt policy nodejs
                                    

                                    Dann kann man sagen ob jetzt alles gerade ist.

                                    1 Reply Last reply Reply Quote 1
                                    • U
                                      Unbekannt last edited by

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

                                      nodejs -v && which nodejs && node -v && which node && npm -v && which npm && apt policy nodejs

                                      
                                      v12.18.0
                                      /usr/bin/nodejs
                                      v12.18.0
                                      /usr/bin/node
                                      6.14.4
                                      /usr/bin/npm
                                      nodejs:
                                        Installiert:           12.18.0-1nodesource1
                                        Installationskandidat: 12.18.0-1nodesource1
                                        Versionstabelle:
                                       *** 12.18.0-1nodesource1 500
                                              500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                                              100 /var/lib/dpkg/status
                                           10.19.0~dfsg1-1+rpi1 500
                                              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                                      
                                      

                                      Sieht soweit gut aus denke ich. Danke auch für deine Erklärungen 🙂

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

                                        @Unbekannt
                                        Ja, schaut gut aus.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          toki1973 last edited by

                                          Hallo, ich bekomme einen Zertifikats Fehler beim Update-Versuch aus einer Proxmox VM heraus.

                                          + apt-get update
                                          OK:1 http://deb.debian.org/debian buster InRelease
                                          OK:2 http://security.debian.org/debian-security buster/updates InRelease
                                          Holen:3 http://deb.debian.org/debian buster-updates InRelease [51,9 kB]
                                          Holen:4 http://download.proxmox.com/debian/pve stretch InRelease [3.052 B]
                                          OK:5 https://deb.nodesource.com/node_10.x buster InRelease
                                          Fehl:4 http://download.proxmox.com/debian/pve stretch InRelease
                                            Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0D9A1950E2EF0603
                                          Paketlisten werden gelesen... Fertig
                                          W: GPG-Fehler: http://download.proxmox.com/debian/pve stretch InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 0D9A1950E2EF0603
                                          E: Das Depot »http://download.proxmox.com/debian/pve stretch InRelease« ist nicht signiert.
                                          N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert.
                                          N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
                                          Error executing command, exiting
                                          root@iobrokernuc:/opt/iobroker# curl -sL https://deb.nodesource.com/setup_12.x | sudo -
                                          sudo: -: Befehl nicht gefunden
                                          root@iobrokernuc:/opt/iobroker# curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
                                          
                                          ## Installing the NodeSource Node.js 12.x repo...
                                          
                                          
                                          ## Populating apt-get cache...
                                          
                                          
                                          
                                          
                                          harrym Thomas Braun 2 Replies Last reply Reply Quote 0
                                          • harrym
                                            harrym @toki1973 last edited by

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

                                            NO_PUBKEY 0D9A1950E2EF0603

                                            na dann füg doch den key von proxmox hinzu. steht ja alles im howto vom install für proxmox ....

                                            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

                                            802
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

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