Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Node.js für ioBroker update klappt nicht

    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

    Node.js für ioBroker update klappt nicht

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

      Hallo zusammen,

      ich bin der Anleitung im Forum gefolgt aber es hat leider nicht funktioniert.
      Aktuell habe ich Node 12.22.7

      christian@ioBroker:~$ iobroker stop
      christian@ioBroker:~$ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
      
      ## Installing the NodeSource Node.js 14.x repo...
      
      
      ## Populating apt-get cache...
      
      + apt-get update
      Holen:1 http://security.debian.org/debian-security buster/updates InRelease [65,4 kB]
      Holen:2 http://deb.debian.org/debian buster InRelease [122 kB]               
      Holen:3 http://deb.debian.org/debian buster-updates InRelease [51,9 kB]      
      OK:4 https://deb.nodesource.com/node_12.x buster InRelease
      Paketlisten werden gelesen... Fertig
      E: Für das Depot »http://security.debian.org/debian-security buster/updates InRelease« wurde der »Suite«-Wert von »stable« in »oldstable« 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.
      N: Für das Depot »http://deb.debian.org/debian buster InRelease« wurde der »Version«-Wert von »10.6« in »10.11« geändert.
      E: Für das Depot »http://deb.debian.org/debian buster InRelease« wurde der »Suite«-Wert von »stable« in »oldstable« 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.
      E: Für das Depot »http://deb.debian.org/debian buster-updates InRelease« wurde der »Suite«-Wert von »stable-updates« in »oldstable-updates« 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
      christian@ioBroker:~$ 
      
      

      Es wird auch ein Error angezeigt aber das verstehe ich nicht.

      Kann mir bitte jemand helfen
      Gruß

      haselchen mickym 2 Replies Last reply Reply Quote 0
      • haselchen
        haselchen Most Active @bauzi last edited by haselchen

        @bauzi

        Was ergibt

        cd /opt
        cd iobroker
        
        which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
        
        B 1 Reply Last reply Reply Quote 0
        • bahnuhr
          bahnuhr Forum Testing Most Active last edited by bahnuhr

          Die Fehler hatte ich auch.

          Lass das get weg und bestätige die Befehle einzeln.
          Dann klappt es.

          Bei mir hat es so geklappt:

          sudo apt update
          sudo apt upgrade
          sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
          sudo apt-get install -y nodejs
          
          Thomas Braun B 2 Replies Last reply Reply Quote 0
          • mickym
            mickym Most Active @bauzi last edited by mickym

            @bauzi das update würde ich ganz einfach machen:

            Gehe in das Verzeichnis:

            cd /etc/apt/sources.list.d
            

            dann editierst Du die Datei nodesource.list:

            sudo nano nodesource.list
            

            Anstelle von 12 gibst Du 14 ein:

            deb https://deb.nodesource.com/node_14.x buster main
            deb-src https://deb.nodesource.com/node_14.x buster main
            

            Wenn Du schon auf bullseye bist - heisst es bei Dir hinten halt bullseye statt buster, aber das änderst Du ja nicht. Du änderst nur die 2 in die 4 und das war es schon. 🙂

            Wenn Du das erledigt hast, dann lässt aktualisierst Du Dein System einfach mit:

            sudo apt update
            sudo apt upgrade
            
            B 1 Reply Last reply Reply Quote 0
            • B
              bauzi @mickym last edited by

              @mickym
              sorry Ich habe nicht mitgeteilt, dass ich Debian auf Proxmox VM habe

              bahnuhr mickym 2 Replies Last reply Reply Quote 0
              • bahnuhr
                bahnuhr Forum Testing Most Active @bauzi last edited by

                @bauzi sagte in Node.js für ioBroker update klappt nicht:

                @mickym
                sorry Ich habe nicht mitgeteilt, dass ich Debian auf Proxmox VM habe

                hab ich auch.

                1 Reply Last reply Reply Quote 0
                • mickym
                  mickym Most Active @bauzi last edited by mickym

                  @bauzi ist aber das gleiche. Ob Dein debian in einer VM oder auf dem raspi läuft ist egal.

                  1 Reply Last reply Reply Quote 0
                  • B
                    bauzi @haselchen last edited by

                    @haselchen said in Node.js für ioBroker update klappt nicht:

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

                    christian@ioBroker:~$ cd /opt
                    christian@ioBroker:/opt$ cd iobroker
                    christian@ioBroker:/opt/iobroker$ which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                    /usr/bin/nodejs
                    /usr/bin/node
                    /usr/bin/npm
                    v12.22.7
                    v12.22.7
                    
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @bahnuhr last edited by Thomas Braun

                      @bahnuhr sagte in Node.js für ioBroker update klappt nicht:

                      Die Fehler hatte ich auch.

                      Das sind keine 'Fehler', apt-get ist nur etwas anderes als apt.
                      Wenn man da mit apt hantiert funktioniert das auch. Leider steht in der Anleitung von @apollon77 die Version mit apt-get drin.
                      In meinem HowTo passt es allerdings.

                      bahnuhr 1 Reply Last reply Reply Quote 0
                      • bahnuhr
                        bahnuhr Forum Testing Most Active @Thomas Braun last edited by

                        @thomas-braun sagte in Node.js für ioBroker update klappt nicht:

                        Das sind keine 'Fehler', apt-get ist nur etwas anderes als apt.

                        Da magst du Recht haben.
                        Aber wenn man als Laie dies eingibt und es klappt nicht, dann empfindet man dies als Fehler.
                        Es hat ja nicht geklappt.

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

                          @bauzi

                          sudo apt update
                          sudo apt dist-upgrade
                          
                          1 Reply Last reply Reply Quote 0
                          • B
                            bauzi @bahnuhr last edited by

                            @bahnuhr said in Node.js für ioBroker update klappt nicht:

                            sudo apt-get install -y nodejs

                            So habe das jetzt gemacht und noch den Biobroker fixer laufen lassen.
                            Versionen sind nun auf dem neusten Stand.

                            Jetzt noch alle Funktionen prüfen, dann bin ich durch.

                            Vielen vielen Dank and alle die so top helfen.

                            Gruß

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

                              @bauzi

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

                              Und nix abschneiden. Volle Ein- und Ausgaben.

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

                                @thomas-braun

                                ich habe das gleiche Problem, es läuft kein Script:

                                which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                                /usr/bin/node
                                /usr/bin/npm
                                
                                

                                das ist mein gesamtes Ergebnis, ich habe nichts abgeschnitten.

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

                                  @buchner51

                                  sudo ln -s /usr/bin/node /usr/bin/nodejs
                                  

                                  Und dann nochmal das von davor.

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

                                    @thomas-braun sagte in Node.js für ioBroker update klappt nicht:

                                    sudo ln -s /usr/bin/node /usr/bin/nodejs

                                    which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                                    /usr/bin/nodejs
                                    /usr/bin/node
                                    /usr/bin/npm
                                    v14.18.2
                                    v14.18.2
                                    6.14.15
                                    OK:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                                    OK:2 http://archive.raspberrypi.org/debian bullseye InRelease
                                    OK:3 https://deb.nodesource.com/node_14.x bullseye InRelease
                                    Paketlisten werden gelesen… Fertig
                                    Abhängigkeitsbaum wird aufgebaut… Fertig
                                    Statusinformationen werden eingelesen… Fertig
                                    Alle Pakete sind aktuell.
                                    OK:1 http://archive.raspberrypi.org/debian bullseye InRelease
                                    OK:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                                    OK:3 https://deb.nodesource.com/node_14.x bullseye InRelease
                                    Paketlisten werden gelesen… Fertig
                                    Abhängigkeitsbaum wird aufgebaut… Fertig
                                    Statusinformationen werden eingelesen… Fertig
                                    Alle Pakete sind aktuell.
                                    nodejs:
                                      Installiert:           14.18.2-deb-1nodesource1
                                      Installationskandidat: 14.18.2-deb-1nodesource1
                                      Versionstabelle:
                                     *** 14.18.2-deb-1nodesource1 500
                                            500 https://deb.nodesource.com/node_14.x bullseye/main armhf Packages
                                            100 /var/lib/dpkg/status
                                         12.22.5~dfsg-2~11u1 500
                                            500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                                    
                                    

                                    hier nochmal alles.

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

                                      @buchner51
                                      Ja, das passt. Und was ist dein Problem?

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

                                        @thomas-braun
                                        Blockly im ioBroker läuft nicht, es bringt jedes Script einen Fehler:

                                        22:41:02.511 error javascript.0 (8184) script.js.iqontroll.Abfall compile failed: at script.js.iqontroll.Abfall:10

                                        Im log steht folgendes:

                                        javascript.0
                                        2021-12-22 22:41:02.517 error at processImmediate (internal/timers.js:466:21)

                                        javascript.0
                                        2021-12-22 22:41:02.517 error at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.javascript/main.js:1311:17)

                                        javascript.0
                                        2021-12-22 22:41:02.516 error at /opt/iobroker/node_modules/iobroker.javascript/main.js:1832:17

                                        javascript.0
                                        2021-12-22 22:41:02.516 error at prepareScript (/opt/iobroker/node_modules/iobroker.javascript/main.js:1731:37)

                                        javascript.0
                                        2021-12-22 22:41:02.515 error at createVM (/opt/iobroker/node_modules/iobroker.javascript/main.js:1482:28)

                                        javascript.0
                                        2021-12-22 22:41:02.515 error at Object.createScript (vm.js:262:10)

                                        javascript.0
                                        2021-12-22 22:41:02.514 error at new Script (vm.js:102:7)

                                        javascript.0
                                        2021-12-22 22:41:02.513 error SyntaxError: Unexpected token '/'

                                        javascript.0
                                        2021-12-22 22:41:02.513 error ^

                                        javascript.0
                                        2021-12-22 22:41:02.512 error function say ( message , alexas = '24bd6505' ) / / use alexas = ['#YOUR ALEXA ID 1#', '#YOUR ALEXA ID 2#'] für die Standard-Sprachausgabe von mehreren Geräten (auch # ersetzen)

                                        javascript.0
                                        2021-12-22 22:41:02.511 error script.js.iqontroll.Abfall compile failed: at script.js.iqontroll.Abfall:10

                                        ich hatte Probleme nach einem Update und hab alles neu aufgesetzt.

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

                                          @buchner51 sagte in Node.js für ioBroker update klappt nicht:

                                          ich hatte Probleme nach einem Update und hab alles neu aufgesetzt.

                                          hast du scripte unter global?

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            buchner51 @Homoran last edited by

                                            @homoran
                                            ja, ich werde Wahnsinnig.

                                            jetzt hab ich extra drauf geachtet das ich da kein rein schiebe.

                                            Man sieht ja auch global nur mit der Expertenansicht.

                                            Das muss wohl beim Import passiert sein.

                                            Danke für die Hilfe.

                                            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

                                            918
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            13
                                            92
                                            18753
                                            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