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 @Thomas Braun last edited by

      @Thomas-Braun

      ja die mein ich das muss man erstmal wissen, soll ich das ausführen?

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

        @saeft_2003
        Ich würde erstmal die Optionen a) und b) versuchen.

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

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

          @saeft_2003
          Ich würde erstmal die Optionen a) und b) versuchen.

          a würde ich gerne aber wenn ich updaten will auf js controller 3.x dann kommt das obwohl es mir in der host übersicht angezeigt wird

          pi@raspberrypi:~ $ iobroker upgrade self
          
          Host    "raspberrypi"    is up to date.
          
           
          
          1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 last edited by

            Wo steht Ihr denn? Aber das allerwichtigste: Welche zigbee Version ist im Einsatz?

            S 1 Reply 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:

              Wo steht Ihr denn? Aber das allerwichtigste: Welche zigbee Version ist im Einsatz?

              zigbee adapter 1.1.1

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

                Auf der Konsole

                cd /opt/iobroker/node_modules/@serialport/bindings/
                und dort

                npm rebuild

                Bitte mal versuchen

                S 1 Reply 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:

                  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
                                            • First post
                                              Last post

                                            Support us

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

                                            795
                                            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