Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. NodeJS / npm nach Neustart wieder auf alter Version

    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

    NodeJS / npm nach Neustart wieder auf alter Version

    This topic has been deleted. Only users with topic management privileges can see it.
    • ESP8266
      ESP8266 @Haxe last edited by

      @haxe , den iob Fixer würde ich auch mal durchlaufen lassen.

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

        @haxe

        sudo apt update
        apt policy nodejs
        

        sagt?

        H 1 Reply Last reply Reply Quote 0
        • ESP8266
          ESP8266 last edited by ESP8266

          @haxe , am Tisch zusammengebrochen / eingepennt? 😁

          Hat sich wohl alles zerbombt....

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

            @esp8266 sagte in NodeJS / npm nach Neustart wieder auf alter Version:

            Hat sich wohl alles zerbombt....

            Kann sein. Das Verhalten wäre bei geschredderten Dateisystemen jedenfalls nicht ungewöhnlich.

            1 Reply Last reply Reply Quote 0
            • H
              Haxe @Thomas Braun last edited by

              @thomas-braun said in NodeJS / npm nach Neustart wieder auf alter Version:

              sudo apt update

              Holen:1 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
              OK:2 https://repos.influxdata.com/debian stable InRelease                                         
              Holen:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]                     
              OK:4 https://repos.influxdata.com/debian stretch InRelease                                        
              Holen:5 https://deb.nodesource.com/node_16.x bullseye InRelease [4’586 B]                         
              Holen:6 https://apt.grafana.com stable InRelease [5’983 B]                
              Holen:7 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages [13.2 MB]
              Holen:8 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [313 kB]               
              Holen:9 https://apt.grafana.com stable/main armhf Packages [115 kB]                               
              Es wurden 13.7 MB in 13 s geholt (1’027 kB/s).                                                    
              Paketlisten werden gelesen… Fertig
              Abhängigkeitsbaum wird aufgebaut… Fertig
              Statusinformationen werden eingelesen… Fertig
              Aktualisierung für 26 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
              

              keine Ahnung wo die 26 Pakete wieder herkommen... habe vorhin erst laufen lassen.

              nodejs:
                Installiert:           16.20.2-deb-1nodesource1
                Installationskandidat: 16.20.2-deb-1nodesource1
                Versionstabelle:
               *** 16.20.2-deb-1nodesource1 500
                      500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                      100 /var/lib/dpkg/status
                   12.22.12~dfsg-1~deb11u4 500
                      500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
              
              ESP8266 Thomas Braun 2 Replies Last reply Reply Quote 0
              • ESP8266
                ESP8266 @Haxe last edited by ESP8266

                @haxe , bullseye ist fast eol. Auf Bookworm upgraden.
                Aber dabei alles! neu machen und nicht einfach das System hochziehen.

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

                  @haxe sagte in NodeJS / npm nach Neustart wieder auf alter Version:

                  OK:4 https://repos.influxdata.com/debian stretch InRelease
                  

                  Der Eintrag ist falsch.

                  OK:2 https://repos.influxdata.com/debian stable InRelease
                  

                  ist richtig.

                  sudo apt full-upgrade
                  

                  laufen lassen.

                  H 1 Reply Last reply Reply Quote 0
                  • H
                    Haxe @Thomas Braun last edited by

                    @thomas-braun

                    unten läuft wohl was schief...

                    sudo apt full-upgrade
                    Paketlisten werden gelesen… Fertig
                    Abhängigkeitsbaum wird aufgebaut… Fertig
                    Statusinformationen werden eingelesen… Fertig
                    Paketaktualisierung (Upgrade) wird berechnet… Fertig
                    Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
                      raspinfo
                    Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
                    Die folgenden Pakete werden aktualisiert (Upgrade):
                      bluez chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra curl firmware-atheros
                      firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek grafana
                      gstreamer1.0-plugins-bad libcurl3-gnutls libcurl4 libgstreamer-plugins-bad1.0-0
                      libjavascriptcoregtk-4.0-18 libnghttp2-14 libssh-gcrypt-4 libtiff5 libwebkit2gtk-4.0-37
                      openssh-client openssh-server openssh-sftp-server ssh xserver-common xserver-xorg-core
                    26 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                    Es müssen 316 MB an Archiven heruntergeladen werden.
                    Nach dieser Operation werden 2’650 kB Plattenplatz zusätzlich benutzt.
                    Möchten Sie fortfahren? [J/n] J
                    Holen:1 http://archive.raspberrypi.org/debian bullseye/main armhf bluez armhf 5.55-3.1+rpt2+deb11u1 [844 kB]
                    Holen:3 http://archive.raspberrypi.org/debian bullseye/main armhf chromium-browser-l10n all 120.0.6099.102-rpt1 [6’436 kB]
                    Holen:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf openssh-sftp-server armhf 1:8.4p1-5+deb11u3 [42.8 kB]
                    Holen:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf openssh-server armhf 1:8.4p1-5+deb11u3 [319 kB]
                    Holen:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf openssh-client armhf 1:8.4p1-5+deb11u3 [796 kB]
                    Holen:8 http://archive.raspberrypi.org/debian bullseye/main armhf chromium-browser armhf 120.0.6099.102-rpt1 [110 MB]
                    Holen:6 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf ssh all 1:8.4p1-5+deb11u3 [252 kB]
                    Holen:7 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libnghttp2-14 armhf 1.43.0-1+deb11u1 [65.9 kB]
                    Holen:9 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf curl armhf 7.74.0-1.3+deb11u11 [259 kB]
                    Holen:10 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libcurl4 armhf 7.74.0-1.3+deb11u11 [310 kB]
                    Holen:11 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libcurl3-gnutls armhf 7.74.0-1.3+deb11u11 [306 kB]
                    Holen:12 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf gstreamer1.0-plugins-bad armhf 1.18.4-3+deb11u3 [3’863 kB]
                    Holen:13 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libgstreamer-plugins-bad1.0-0 armhf 1.18.4-3+deb11u3 [2’259 kB]
                    Holen:18 https://apt.grafana.com stable/main armhf grafana armhf 10.2.3 [95.7 MB]                 
                    Holen:14 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libwebkit2gtk-4.0-37 armhf 2.42.2-1~deb11u1+rpi1 [16.0 MB]
                    Holen:15 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libjavascriptcoregtk-4.0-18 armhf 2.42.2-1~deb11u1+rpi1 [2’790 kB]
                    Holen:16 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libssh-gcrypt-4 armhf 0.9.8-0+deb11u1 [190 kB]
                    Holen:17 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libtiff5 armhf 4.2.0-1+deb11u5 [270 kB]
                    Holen:19 http://archive.raspberrypi.org/debian bullseye/main armhf chromium-codecs-ffmpeg-extra armhf 120.0.6099.102-rpt1 [1’024 kB]
                    Holen:20 http://archive.raspberrypi.org/debian bullseye/main armhf firmware-atheros all 1:20230210-5~bpo11+1+rpt2 [16.8 MB]
                    Fehl:20 http://archive.raspberrypi.org/debian bullseye/main armhf firmware-atheros all 1:20230210-5~bpo11+1+rpt2
                      Fehler beim Lesen vom Server - read (104: Die Verbindung wurde vom Kommunikationspartner zurückgesetzt) [IP: 46.235.231.145 80]
                    Holen:21 http://archive.raspberrypi.org/debian bullseye/main armhf firmware-brcm80211 all 1:20230210-5~bpo11+1+rpt2 [5’865 kB]
                    Holen:22 http://archive.raspberrypi.org/debian bullseye/main armhf firmware-libertas all 1:20230210-5~bpo11+1+rpt2 [31.2 MB]
                    Holen:23 http://archive.raspberrypi.org/debian bullseye/main armhf firmware-misc-nonfree all 1:20230210-5~bpo11+1+rpt2 [13.0 MB]
                    Holen:24 http://archive.raspberrypi.org/debian bullseye/main armhf firmware-realtek all 1:20230210-5~bpo11+1+rpt2 [1’508 kB]
                    Holen:25 http://archive.raspberrypi.org/debian bullseye/main armhf xserver-common all 2:1.20.11-1+rpt3+deb11u10 [2’285 kB]
                    Holen:26 http://archive.raspberrypi.org/debian bullseye/main armhf xserver-xorg-core armhf 2:1.20.11-1+rpt3+deb11u10 [3’352 kB]
                    Es wurden 299 MB in 8 min 36 s geholt (580 kB/s).                                                 
                    E: Fehlschlag beim Holen von http://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree/firmware-atheros_20230210-5%7ebpo11%2b1%2brpt2_all.deb Fehler beim Lesen vom Server - read (104: Die Verbindung wurde vom Kommunikationspartner zurückgesetzt) [IP: 46.235.231.145 80]
                    E: Einige Archive konnten nicht heruntergeladen werden; vielleicht »apt-get update« ausführen oder mit »--fix-missing« probieren?
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Haxe last edited by Thomas Braun

                      @haxe

                      Und warum rumpelt da der komplette Desktop-Mumpitz auf deinem Server mit?

                      Warum jetzt von raspberrypi.org die Verbindung zurückgesetzt wird kann ich dir auch nicht sagen.

                      sudo apt clean
                      sudo apt update
                      apt policy firmware-atheros
                      
                      H 1 Reply Last reply Reply Quote 0
                      • H
                        Haxe @Thomas Braun last edited by Haxe

                        @thomas-braun said in NodeJS / npm nach Neustart wieder auf alter Version:

                        apt policy firmware-atheros

                        Desktop: Dachte eigentlich, ich hätte alles ohne installiert und nicht weiter drauf geachtet. Benötigen tue ich den Desktop nicht.

                        sudo apt update
                        OK:1 http://archive.raspberrypi.org/debian bullseye InRelease
                        OK:2 https://repos.influxdata.com/debian stable InRelease                         
                        OK:3 http://raspbian.raspberrypi.org/raspbian bullseye InRelease                  
                        OK:4 https://repos.influxdata.com/debian stretch InRelease                        
                        OK:5 https://apt.grafana.com stable InRelease                                     
                        Holen:6 https://deb.nodesource.com/node_16.x bullseye InRelease [4’586 B]         
                        Es wurden 4’586 B in 2 s geholt (2’930 B/s).
                        Paketlisten werden gelesen… Fertig
                        Abhängigkeitsbaum wird aufgebaut… Fertig
                        Statusinformationen werden eingelesen… Fertig
                        Aktualisierung für 26 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
                        
                        
                        apt policy firmware-atheros
                        firmware-atheros:
                          Installiert:           1:20230210-5~bpo11+1+rpt1
                          Installationskandidat: 1:20230210-5~bpo11+1+rpt2
                          Versionstabelle:
                             1:20230210-5~bpo11+1+rpt2 500
                                500 http://archive.raspberrypi.org/debian bullseye/main armhf Packages
                         *** 1:20230210-5~bpo11+1+rpt1 100
                                100 /var/lib/dpkg/status
                             20210315-3 500
                                500 http://raspbian.raspberrypi.org/raspbian bullseye/non-free armhf Packages
                        
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Haxe last edited by Thomas Braun

                          @haxe

                          Schmeiß die Zeile mit dem Stretch-Eintrag aus der /etc/apt/sources.list.d/influxwatweissich.list raus.

                          H 2 Replies Last reply Reply Quote 0
                          • H
                            Haxe @Thomas Braun last edited by Haxe

                            @thomas-braun

                            Entfernt in

                            /etc/apt/sources.list.d
                            

                            Zeile

                            deb https://repos.influxdata.com/debian stretch stable
                            

                            Ergebnis

                            sudo apt update                         
                            OK:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                            OK:2 http://archive.raspberrypi.org/debian bullseye InRelease                  
                            OK:3 https://apt.grafana.com stable InRelease                                  
                            Holen:4 https://deb.nodesource.com/node_16.x bullseye InRelease [4’586 B]      
                            OK:5 https://repos.influxdata.com/debian stable InRelease                      
                            Es wurden 4’586 B in 1 s geholt (3’647 B/s).           
                            Paketlisten werden gelesen… Fertig
                            Abhängigkeitsbaum wird aufgebaut… Fertig
                            Statusinformationen werden eingelesen… Fertig
                            Aktualisierung für 26 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
                            
                            

                            Lasse nun noch mal laufen

                            sudo apt full-upgrade
                            

                            Ergebnis

                            sudo apt update
                            OK:1 http://archive.raspberrypi.org/debian bullseye InRelease
                            OK:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease               
                            OK:3 https://repos.influxdata.com/debian stable InRelease                      
                            Holen:4 https://deb.nodesource.com/node_16.x bullseye InRelease [4’586 B]      
                            OK:5 https://apt.grafana.com stable InRelease                             
                            Es wurden 4’586 B in 1 s geholt (4’228 B/s).
                            Paketlisten werden gelesen… Fertig
                            Abhängigkeitsbaum wird aufgebaut… Fertig
                            Statusinformationen werden eingelesen… Fertig
                            Alle Pakete sind aktuell.
                            
                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Haxe last edited by

                              @haxe

                              Dann starte die Kiste nun neu und danach ein

                              iob nodejs-update
                              

                              ausführen.

                              1 Reply Last reply Reply Quote 0
                              • H
                                Haxe @Thomas Braun last edited by

                                @thomas-braun said in NodeJS / npm nach Neustart wieder auf alter Version:

                                @haxe

                                Schmeiß die Zeile mit dem Stretch-Eintrag aus der /etc/apt/sources.list.d/influxwatweissich.list raus.

                                Mir viel nebenbei noch auf, dass nach dem Ausführen von iob fix diese Zeile wieder im File drin war, obwohl ich diese gelöscht hatte - warum auch immer.

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

                                  @haxe

                                  Das kann nicht sein, denn iob fix hat mit den .list-Dateien zu influxdb genau gar nichts.

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

                                    @haxe

                                    iob diag
                                    

                                    sagt?

                                    H 1 Reply Last reply Reply Quote 0
                                    • H
                                      Haxe @Thomas Braun last edited by

                                      @thomas-braun

                                      Das sieht gut aus
                                      -v spuckt ebenfalls die passenden Versionen aus. Der Hosttab im iob zeigt ebenfalls die korrekten Versionen. Hier ein Auszug

                                      ======================= SUMMARY =======================
                                      			v.2023-10-10
                                      
                                      
                                         Static hostname: rasp
                                               Icon name: computer
                                        Operating System: Raspbian GNU/Linux 11 (bullseye)
                                                  Kernel: Linux 6.1.21-v8+
                                            Architecture: arm64
                                      
                                      Installation: 		native
                                      Kernel: 		aarch64
                                      Userland: 		armhf
                                      Timezone: 		Europe/Zurich (CET, +0100)
                                      User-ID: 		1000
                                      X-Server: 		true
                                      Boot Target: 		graphical.target
                                      
                                      Pending OS-Updates: 	0
                                      Pending iob updates: 	2
                                      
                                      Nodejs-Installation: 	/usr/bin/nodejs 	v18.19.0
                                      			/usr/bin/node 		v18.19.0
                                      			/usr/bin/npm 		10.2.3
                                      			/usr/bin/npx 		10.2.3
                                      			/usr/bin/corepack 	0.22.0
                                      
                                      Recommended versions are nodejs 18.19.0 and npm 10.2.3
                                      Your nodejs installation is correct
                                      

                                      Ich mache nun einen Neustart und schaue mal, auf was die Versionen dann stehen.

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

                                        @haxe sagte in NodeJS / npm nach Neustart wieder auf alter Version:

                                        X-Server: 		true
                                        Boot Target: 		graphical.target
                                        

                                        Ausschalten...

                                        sudo systemctl set-default multi-user.target
                                        sudo reboot
                                        
                                        H 1 Reply Last reply Reply Quote 0
                                        • H
                                          Haxe @Thomas Braun last edited by

                                          @thomas-braun

                                          Bevor ich das mache kurz hier das iob diag nach dem Neustart. Auszug:

                                          1. Node wieder beim Alten
                                          *** NodeJS-Installation ***
                                          
                                          /home/iobroker/.diag.sh: line 277: nodejs: command not found
                                           	
                                          /usr/bin/node 		v16.20.2
                                          /usr/bin/npm 		8.19.4
                                          /usr/bin/npx 		8.19.4
                                          /usr/bin/corepack 	0.17.0
                                          /home/iobroker/.diag.sh: line 288: nodejs: command not found
                                          *** nodejs is NOT correctly installed ***
                                          
                                          nodejs:
                                            Installed: 16.20.2-deb-1nodesource1
                                            Candidate: 16.20.2-deb-1nodesource1
                                            Version table:
                                           *** 16.20.2-deb-1nodesource1 500
                                                  500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                                                  100 /var/lib/dpkg/status
                                               12.22.12~dfsg-1~deb11u4 500
                                                  500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                                          

                                          Bei den Reps taucht auch hier der Stretch auf:

                                          *** OS-Repositories and Updates ***
                                          Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                                          Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
                                          Get:3 https://deb.nodesource.com/node_16.x bullseye InRelease [4586 B]
                                          Hit:4 https://apt.grafana.com stable InRelease
                                          Hit:5 https://repos.influxdata.com/debian stable InRelease
                                          Hit:6 https://repos.influxdata.com/debian stretch InRelease
                                          Fetched 4586 B in 1s (3091 B/s)
                                          Reading package lists...
                                          Pending Updates: 26
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Haxe last edited by

                                            @haxe sagte in NodeJS / npm nach Neustart wieder auf alter Version:

                                            Auszug:

                                            Gib mal die Langfassung.

                                            Und auch die Ausgabe von

                                            dmesg -T
                                            
                                            H 2 Replies 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

                                            697
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            54
                                            1686
                                            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