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.
    • P
      pi_noob15 @MCU last edited by pi_noob15

      Wollte gerade von meiner nodejs version 12.22.7 auf die 14.8.1 aktualisieren, jedoch nicht möglich

       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://archive.raspberrypi.org/debian buster InRelease [32,6 kB]
      OK:2 http://packages.microsoft.com/repos/code stable InRelease
      Holen:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]
      OK:4 https://deb.nodesource.com/node_12.x buster InRelease
      Paketlisten werden gelesen... Fertig
      E: Für das Depot »http://raspbian.raspberrypi.org/raspbian 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://archive.raspberrypi.org/debian buster InRelease« wurde der »Suite«-Wert von »testing« 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.
      Error executing command, exiting
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @pi_noob15 last edited by Thomas Braun

        @pi_noob15

        sudo apt update
        sudo apt upgrade
        

        Rückfragen bestätigen.
        apt-get sollte nicht mehr verwendet werden.

        P 1 Reply Last reply Reply Quote 0
        • P
          pi_noob15 @Thomas Braun last edited by

          @thomas-braun
          merci 👏

          1 Reply Last reply Reply Quote 0
          • C
            ChrisVogels last edited by

            Hallo Zusammen,

            beim Update bekomme ich immer einen Hinweis, das eine Datei "libqt5qml5" einen Fehler macht.

            Habt Ihr einen Tip, was das sein könnte?

            pi@raspberrypi:/opt/iobroker $ sudo apt-get install -y nodejs
            Paketlisten werden gelesen... Fertig
            Abhängigkeitsbaum wird aufgebaut.
            Statusinformationen werden eingelesen.... Fertig
            Probieren Sie »apt --fix-broken install«, um dies zu korrigieren.
            Die folgenden Pakete haben unerfüllte Abhängigkeiten:
            deconz : Hängt ab von: libqt5qml5 soll aber nicht installiert werden
            E: Unerfüllte Abhängigkeiten. Versuchen Sie »apt --fix-broken install« ohne Angabe eines Pakets (oder geben Sie eine Lösung an).

            Gruß Christian

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

              @chrisvogels

              sudo apt update
              apt policy deconz
              

              Bitte in CodeTags posten

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

                Ich bin gerade dabei ein Raspberry für einen Freund fertig zu machen. Ich habe nodejs auf meinem Pi heruntergeladen und auch installiert aber leider findet er bei nodejs -v keine Version an was kann es liegen.
                npm -v findet er

                Glasfaser Homoran 2 Replies Last reply Reply Quote 0
                • Glasfaser
                  Glasfaser @Basti97 last edited by

                  @basti97

                  Hiermit :

                  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
                  
                  Basti97 1 Reply Last reply Reply Quote 0
                  • Basti97
                    Basti97 Most Active @Glasfaser last edited by

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

                    @basti97

                    Hiermit :

                    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
                    

                    Super vielen Dank das hat funktioniert. 🙂 Was ein kleiner Text alles beheben kann.

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

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

                      Ich habe nodejs auf meinem Pi heruntergeladen und auch installiert

                      warum einzeln?
                      das macht der iobroker Installer direkt mit - in der aktuell empfohlenen Version

                      Basti97 2 Replies Last reply Reply Quote 0
                      • Basti97
                        Basti97 Most Active @Homoran last edited by

                        @homoran Ich hatte eine leere Rasbian image gehabt. Und bei dem Befehl nodejs -v usw kam "der Befehl wurde nicht gefunden"

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

                          @homoran vielleicht lag es auch daran das meine Internetverbindung nicht sehr stabil ist wegen der Telekom. Ich hatte gestern bei anderen Updates auch Probleme gehabt.

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

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

                            Ich hatte eine leere Rasbian image gehabt.
                            bei dem Befehl nodejs -v usw kam "der Befehl wurde nicht gefunden"

                            das ist die optimale Voraussetzung.

                            anschließend nur Zeitzone, und Sprache, bei Bedarf noch Hostname anpassen und dann curl -sLf https://iobroker.net/install.sh | bash - ausführen und fertig

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

                              @homoran Ach da braucht man vorher kein extra nodejs und curl mehr installieren. Gut wieder was neues kennengelernt. Wo ich zuletzt mal einen Rpi installiert hatte ich das noch gemacht.

                              Was vielleicht in Ordnung wäre, ist das man hier im Forum eine neue Installationsanleitung mal postet. Da ich gesehen habe das im Internet massig an Anleitung gibt. Die nicht mehr funktionieren oder veraltet ist.

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

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

                                und curl

                                curl sollte bei raspberrypi OS mit drauf sein
                                bei Debian müsste es noch installiert werden

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

                                Was vielleicht in Ordnung wäre

                                ist das hier in Ordnung?

                                mit dem aktuellen Installer von ioBroker (siehe unten) wird auf einem System ohne node.js automatisch die aktuell empfohlene Version von node.js mit installiert! Eine vorherige separate Installation von node.js ist somit nicht mehr nötig.

                                https://www.iobroker.net/#de/documentation/install/linux.md

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

                                  @homoran Ja das ist ein richtig gute Installation die muss ich mir mal merken. 🙂 🙂
                                  Sehr gut geschrieben.

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

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

                                    die muss ich mir mal merken

                                    die gibt es seit etwa 7 Jahren

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

                                      @homoran Achso ehrlich gesagt habe ich die noch nicht gefunden. Ich hätte noch eine Frage wie würdest du ein iobroker System aktualisieren (anderer Pi) wo der JS Controller, node, npm und nodejs sehr alt (welche Version genau muss ich erst noch gucken).
                                      Würde da in diesen Fall auch der Befehl reichen:
                                      curl -sLf https://iobroker.net/install.sh | bash -

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

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

                                        Würde da in diesen Fall auch der Befehl reichen:

                                        Nein.
                                        Da würde ich erstmal schauen wie da der genaue Stand ist (auch des Betriebssystems selber). Abhängig davon dann vermutlich 'per Hand' auf nodeJS@14 gehen. Und dann alles andere auch hochziehen.

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

                                          @basti97 Sag mal wie alt genau... dann muss man mal sehen. Der Installer hilft da eher nicht

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

                                            @thomas-braun Ok da muss ich mal gucken jetzt der rpi wo ich iob installiert habe. War erstmal so als test für mich und später für einen Freund 🙂

                                            Das sind die empfohlene Versionen oder.

                                            b7c1aa95-e7e8-4314-8f16-70d180f531ae-grafik.png

                                            e83bc856-1e56-4d5d-ab4b-8179669c6443-grafik.png

                                            Thomas Braun 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

                                            830
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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