Navigation

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

    NEWS

    • 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 ioBroker richtig updaten-2021/22 Edition

    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      karsten089 last edited by

      Hi zusammen,
      was mache ich falsch? Er sagt, Version 10 ist bereits die aktuellste und die ist schon installiert:

      fdd27638-b6b1-4b44-b8dc-5948000cf31a-image.png

      Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @karsten089 last edited by

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

        was mache ich falsch?

        Du machst einen Screenshot anstelle den Text in Code-Tags zu posten.
        So kann man nicht den Text bearbeiten, wenn man ihn denn überhaupt lesen könnte (am Handy)

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

          @karsten089

          Lies in meiner Signatur wie man nodeJS richtig aktualisiert.

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

            @thomas-braun danke dir

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

              @karsten089
              Läuft das nun?

              which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
               
              
              K 1 Reply Last reply Reply Quote 1
              • K
                karsten089 @Thomas Braun last edited by

                @thomas-braun ja, hat geklappt - vielen Dank dir !

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

                  @karsten089 Zeig mal die Ausgabe.

                  1 Reply Last reply Reply Quote 0
                  • T
                    t1m0 @apollon77 last edited by t1m0

                    Update hat wunderbar funktioniert. Jedoch lässt sich der ble und zigbee nicht wiederherstellen

                    Last login: Mon Oct 25 11:01:39 2021 from 10.0.0.21
                    pi@iobroker:~$ npm -v
                    6.4.1
                    pi@iobroker:~$ iobroker rebuild zigbee --install
                    npm install --loglevel error --production (System call1) in "/opt/iobroker/node_modules/iobroker.zigbee"
                    npm ERR! cb.apply is not a function
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/iobroker/.npm/_logs/2021-10-25T09_35_25_571Z-debug.log
                    
                    Rebuild zigbee done
                    pi@iobroker:~$ iobroker rebuild ble
                    npm rebuild --loglevel error (System call1) in "/opt/iobroker/node_modules/iobroker.ble"
                    npm ERR! cb.apply is not a function
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/iobroker/.npm/_logs/2021-10-25T09_35_36_317Z-debug.log
                    
                    Rebuild ble done
                    pi@iobroker:~$
                    
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @t1m0 last edited by

                      @t1m0

                      Bitte keine Screenshots von Konsolentext sondern in CodeTags eingebettet den Text hier reinkopieren.

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

                        @thomas-braun sorry! Habe ich geändert

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

                          @t1m0
                          Was hast du gemacht?

                          iobroker stop
                          iobroker fix
                          iobroker start
                          

                          iobroker wird NIE im Zusammenhang mit sudo verwendet.

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

                            @thomas-braun
                            Habe ich nicht.... Bin genau nach der Anleitung vorgegangen. Er hat mich nach "sudo" gefragt

                            pi@iobroker:~$ iobroker stop
                            pi@iobroker:~$ iobroker fix
                            library: loaded
                            Library version=2021-08-05
                            
                            ==========================================================================
                            
                                Welcome to the ioBroker installation fixer!
                                Script version: 2021-04-07
                            
                                You might need to enter your password a couple of times.
                            
                            ==========================================================================
                            
                            
                            ==========================================================================
                                Installing prerequisites (1/3)
                            ==========================================================================
                            
                            [sudo] Passwort für pi:
                            OK:1 http://deb.debian.org/debian buster InRelease
                            OK:2 http://security.debian.org/debian-security buster/updates InRelease
                            OK:3 http://deb.debian.org/debian buster-updates InRelease
                            OK:4 https://deb.nodesource.com/node_12.x buster InRelease
                            Paketlisten werden gelesen... Fertig
                            Installed gcc-c++
                            
                            ==========================================================================
                                Checking ioBroker user and directory permissions (2/3)
                            ==========================================================================
                            
                            Created /etc/sudoers.d/iobroker
                            Fixing directory permissions...
                            
                            ==========================================================================
                                Checking autostart (3/3)
                            ==========================================================================
                            
                            Enabling autostart...
                            Autostart enabled!
                            
                            ==========================================================================
                            
                                Your installation was fixed successfully
                                Run iobroker start to start ioBroker again!
                            
                            ==========================================================================
                            
                            pi@iobroker:~$ iobroker start
                            pi@iobroker:~$
                            
                            
                            Homoran 1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @t1m0 last edited by

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

                              Er hat mich nach "sudo" gefragt

                              Hat er?

                              wie genau?

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                t1m0 @Homoran last edited by

                                @homoran
                                Siehe Zeile 20. Hier wurde ich aufgefordert...

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

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

                                  @homoran
                                  Siehe Zeile 20. Hier wurde ich aufgefordert...

                                  ja jetzt!
                                  Aber hast du vorher auch schon (mal) mit sudo gearbeitet?
                                  Dabei geht es um die Befehle die mit iobroker ... beginnen.

                                  Da darf nie sudo vorangesetzt werden.

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

                                    @homoran @t1m0
                                    Auf dem Screenshot war sudo mit iobroker kombiniert zu sehen.

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

                                      @thomas-braun okay.... Bin schon etwas länger dran 😄 Habe alles probiert.
                                      Jetzt aber nochmal wie ihr gesagt habt, komplett ohne sudo. Bekomme aber die gleiche Fehlermeldung

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

                                        @t1m0

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

                                        liefert?
                                        Und von welcher Node-Version bist du gekommen? node10?

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

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

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

                                          von node 10.

                                          root@iobroker:/opt/iobroker# iobroker start
                                          root@iobroker:/opt/iobroker# which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                                          /usr/bin/node
                                          /usr/local/bin/npm
                                          root@iobroker:/opt/iobroker#
                                          
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @t1m0 last edited by

                                            @t1m0

                                            Falsch installiert und wir melden uns nicht als root an.

                                            T 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

                                            526
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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