Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Diskussion zum HowTo nodejs-Installation und upgrade

    NEWS

    • [erledigt] 15. 05. Wartungsarbeiten am ioBroker Forum

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Diskussion zum HowTo nodejs-Installation und upgrade

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @skorpil last edited by

      @skorpil sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

      Anleitung zum Update auf Bookworm posten?

      Schau in meine Threads rein. Hab ich mal irgendwann beschrieben.

      S 1 Reply Last reply Reply Quote 1
      • S
        skorpil @Thomas Braun last edited by

        @thomas-braun aber war das nicht ausschließlich raspian bezogen?

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

          @skorpil

          Nein, es ist allgemein auf ein Upgrade auf Bookworm bezogen. Zu Raspberry OS steht sogar drin, dass man das dieses Mal besser komplett neuinstalliert.

          https://forum.iobroker.net/topic/65655/upgrade-von-debian-11-bullseye-auf-12-bookworm

          S 1 Reply Last reply Reply Quote 1
          • S
            skorpil @Thomas Braun last edited by

            @thomas-braun sorry, dann hatte ich nicht gut gelesen. Danke u. frohe Weihnachten u. DANKE für gute Beratung u. Betreuung von uns allen!

            W 1 Reply Last reply Reply Quote 0
            • W
              Willi-Wunder @skorpil last edited by Willi-Wunder

              Hi,
              bring gerade mal alle Systeme auf den aktuellen Stand, Bookworm installiert. Allerdings zeigt er mir bei NPM einen Fehler an. iob fix + iob nodejs-update bereits ausgeführt.

              Nodefixer:

              ioBroker nodejs fixer 2023-10-13
              
              Recommended nodejs-version is: 18.19.0
              Checking your installation now. Please be patient!
              
              Your current setup is:
              /usr/bin/nodejs         v18.19.0
              /usr/bin/node           v18.19.0
              /home/iobroker/.nodejs-update.sh: line 130: npm: command not found
              
              /home/iobroker/.nodejs-update.sh: line 131: npx: command not found
              
              /home/iobroker/.nodejs-update.sh: line 147: npm: command not found
              /home/iobroker/.nodejs-update.sh: line 148: npx: command not found
              
              *** nodejs is NOT correctly installed ***
              We found these nodejs versions available for installation:
              
              nodejs:
                Installed: 18.19.0+dfsg-6~deb12u1
                Candidate: 18.19.0+dfsg-6~deb12u1
                Version table:
               *** 18.19.0+dfsg-6~deb12u1 500
                      500 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages
                      100 /var/lib/dpkg/status
                   18.19.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.18.2-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.18.1-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.18.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.17.1-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.17.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.16.1-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.16.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.15.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.14.2-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.14.1-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.14.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.13.0+dfsg1-1 500
                      500 http://deb.debian.org/debian bookworm/main arm64 Packages
                   18.13.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.12.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.11.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.10.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.9.1-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.9.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.8.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.7.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.6.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.5.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.4.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.3.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.2.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.1.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                   18.0.0-1nodesource1 500
                      500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
              
              
              
              Your nodejs-Installation seems to be faulty. Shall we try to fix it?
              Press <y> to continue or any other key to quit
              
              Fixing your nodejs setup
              *** Deleting  ***
              rm: cannot remove '': No such file or directory
              *** Deleting  ***
              rm: cannot remove '': No such file or directory
              
              Wrong paths have been fixed. Run 'iob diag' or 'iob node-fix' again to check if your installation is fine now
              Nothing to do - Your version is the recommended one.
              
              You can now keep your whole system up-to-date using the usual 'sudo apt update && sudo apt full-upgrade' commands.
              Please DO NOT USE node version managers like 'nvm', 'n' and others in parallel. They will break your current installation!
              
              

              Bei Eingabe npm -v kommt das hier:

              pi@iobroker:~ $ npm -v
              -bash: eval: -v: invalid option
              eval: usage: eval [arg ...]
              
              

              Was kann ich hier jetzt tun? War eigentlich alles richtig installiert gewesen und wurde auch richtig im iobroker angezeigt. Wodurch das jetzt passiert ist weiß ich leider nicht......

              Das wurde auch bereits ausgeführt sudo apt update && sudo apt full-upgrade

              pi@iobroker:~ $ sudo apt update && sudo apt full-upgrade
              Hit:1 http://deb.debian.org/debian bookworm InRelease
              Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
              Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
              Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease
              Hit:5 https://repos.influxdata.com/debian stable InRelease
              Hit:6 https://apt.grafana.com stable InRelease
              Hit:7 https://deb.nodesource.com/node_18.x nodistro InRelease
              Reading package lists... Done
              Building dependency tree... Done
              Reading state information... Done
              All packages are up to date.
              Reading package lists... Done
              Building dependency tree... Done
              Reading state information... Done
              Calculating upgrade... Done
              0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Willi-Wunder last edited by Thomas Braun

                @willi-wunder

                sudo apt install nodejs=18.19.0-1nodesource1
                
                W 1 Reply Last reply Reply Quote 0
                • W
                  Willi-Wunder @Thomas Braun last edited by

                  @thomas-braun sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                  sudo apt install nodes=18.19.0-1nodesource1

                  pi@iobroker:~ $ sudo apt install nodes=18.19.0-1nodesource1
                  Reading package lists... Done
                  Building dependency tree... Done
                  Reading state information... Done
                  E: Unable to locate package nodes
                  
                  
                  Thomas Braun 2 Replies Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Willi-Wunder last edited by

                    @willi-wunder

                    sudo apt install nodejs=18.19.0-1nodesource1
                    
                    1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Willi-Wunder last edited by Thomas Braun

                      @willi-wunder

                      Beziehungsweise:

                      iob nodejs-update 18
                      

                      und das Repo nochmal richtig anlegen lassen.

                      W 1 Reply Last reply Reply Quote 0
                      • W
                        Willi-Wunder @Thomas Braun last edited by Willi-Wunder

                        @thomas-braun sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                        iob nodejs-upgrade 18

                        pi@iobroker:~ $ iob nodejs-upgrade 18
                        /usr/bin/bash: warning: setlocale: LC_ALL: cannot change locale (de_DE)
                        iobroker [command]
                        
                        

                        Aufruf npm -v klappt aber wieder, V10.2.3 wird wieder angezeigt. 👍
                        Was war beim zweiten Befehl sudo apt install nodejs=18.19.0-1nodesource1 anders? Putze gleich nochmal meine Brille, aber sehe da gerade keinen Unterschied, ging aber damit. (Ahhh, hast "js" ergänzt)

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Willi-Wunder last edited by

                          @willi-wunder

                          Sorry, mein Fehler.
                          Muss

                          iob nodejs-update 18
                          

                          lauten.

                          W 1 Reply Last reply Reply Quote 1
                          • W
                            Willi-Wunder @Thomas Braun last edited by

                            @thomas-braun
                            TOP, vielen Dank. Jetzt sollte es passen.

                            ioBroker nodejs fixer 2023-10-13
                            You requested to intall latest version from nodejs v18 tree.
                            
                            Your current setup is:
                            /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
                            
                            We found these nodejs versions available for installation:
                            
                            nodejs:
                              Installed: 18.19.0-1nodesource1
                              Candidate: 18.19.0-1nodesource1
                              Version table:
                                 18.19.0+dfsg-6~deb12u1 500
                                    500 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages
                             *** 18.19.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                    100 /var/lib/dpkg/status
                                 18.18.2-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.18.1-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.18.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.17.1-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.17.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.16.1-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.16.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.15.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.14.2-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.14.1-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.14.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.13.0+dfsg1-1 500
                                    500 http://deb.debian.org/debian bookworm/main arm64 Packages
                                 18.13.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.12.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.11.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.10.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.9.1-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.9.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.8.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.7.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.6.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.5.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.4.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.3.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.2.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.1.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                                 18.0.0-1nodesource1 1001
                                    500 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages
                            
                            
                            
                            Nothing to do - Your installation is using the correct paths.
                            
                            You are running nodejs v18.19.0. Do you want to install latest version from nodejs v.18 tree?
                            
                            Press <y> to continue or any other key to quit
                            Trying to update your installation now. Please be patient.
                            find: '/run/user/1000/doc': Permission denied
                            find: '/run/user/1000/gvfs': Permission denied
                            Waiting for ioBroker to shut down - Give me a minute...
                            ############################################################
                            
                            *** These repos are active on your system:
                            Hit:1 http://deb.debian.org/debian bookworm InRelease
                            Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
                            Hit:3 http://archive.raspberrypi.com/debian bookworm InRelease
                            Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
                            Hit:5 https://apt.grafana.com stable InRelease
                            Hit:6 https://repos.influxdata.com/debian stable InRelease
                            Reading package lists... Done
                            
                            *** Installing ca-certificates, curl and gnupg, just in case they are missing.
                            
                            *** Creating new /etc/apt/sources.list.d/nodesource.list and pinning source
                            
                            deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
                            Package: nodejs
                            Pin: origin deb.nodesource.com
                            Pin-Priority: 1001
                            
                            *** These repos are active after the adjustments:
                            Hit:1 http://deb.debian.org/debian bookworm InRelease
                            Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
                            Hit:3 https://repos.influxdata.com/debian stable InRelease
                            Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease
                            Hit:5 http://deb.debian.org/debian bookworm-updates InRelease
                            Hit:6 https://apt.grafana.com stable InRelease
                            Get:7 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB]
                            Get:8 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages [6613 B]
                            Get:9 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages [6656 B]
                            Fetched 25.4 kB in 2s (13.0 kB/s)
                            Reading package lists... Done
                            
                            Installing the recommended nodejs version now!
                            
                            Installing the recommended nodejs version!
                            
                            We tried our best to fix your nodejs. Please run iob diag again to verify.
                            
                            *** RESTARTING ioBroker NOW! ***
                             Please refresh or restart your browser in a few moments.
                            
                            

                            Beim ausführen des Befehls kam noch am Anfang......

                            pi@iobroker:~ $ iob nodejs-update 18
                            /usr/bin/bash: warning: setlocale: LC_ALL: cannot change locale (de_DE)
                            bash: warning: setlocale: LC_ALL: cannot change locale (de_DE)
                            ioBroker node-update v2023-10-13 is starting. Please be patient!
                            /usr/bin/bash: warning: setlocale: LC_ALL: cannot change locale (de_DE)
                            
                            

                            Hat das noch etwas zu sagen?

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Willi-Wunder last edited by

                              @willi-wunder sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                              Hat das noch etwas zu sagen?

                              Nein, ist für dich nicht wichtig.

                              W 1 Reply Last reply Reply Quote 1
                              • W
                                Willi-Wunder @Thomas Braun last edited by

                                @thomas-braun
                                Dann danke für deine erneute Hilfe 👍

                                1 Reply Last reply Reply Quote 0
                                • J
                                  JoSbg last edited by

                                  Hallo

                                  Wollt gerade das Update von v16 auf v18 machen. Leider scheitere ich schon beim ersten Schritt "Altlasten entfernen".

                                  sudo rm `sudo find / -name nodesource.gpg`
                                  

                                  Es werden da eine Menge Ordner aufgelistet, aber bei allen kommt "Permission denied"

                                  iobroker@CT101:~$ sudo rm `sudo find / -name nodesource.gpg`
                                  find: '/proc/tty/driver': Permission denied
                                  find: '/sys/kernel/debug': Permission denied
                                  find: '/sys/fs/fuse/connections/41': Permission denied
                                  find: '/sys/fs/fuse/connections/38': Permission denied
                                  ...
                                  

                                  iobroker läuft bei mir auf Proxmox mit Debian.

                                  Glasfaser 1 Reply Last reply Reply Quote 0
                                  • Glasfaser
                                    Glasfaser @JoSbg last edited by

                                    @josbg sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                                    Wollt gerade das Update von v16 auf v18

                                    "Altlasten entfernen".

                                    Was machst du da !?

                                    schau ein paar .... Beiträge über deine !

                                    iob stop
                                    iob fix  
                                    iob nodejs-update
                                    sudo reboot
                                    
                                    J 1 Reply Last reply Reply Quote 1
                                    • J
                                      JoSbg @Glasfaser last edited by

                                      @glasfaser

                                      Danke hat so natürlich funktioniert.

                                      Manchmal sieht man den Wald vor lauter Bäumen nicht.

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Stefan_NK last edited by

                                        Hallo Zusammen,

                                        ich habe einen Raspi4 für Testzwecke komplett neu aufgesetzt und den iobroker installiert.

                                        curl -sLf https://iobroker.net/install.sh | bash -
                                        

                                        Ich habe jetzt in der Übersicht folgende Versionen:
                                        Node.js: v18.19.0
                                        NPM: 9.2.0(10.2.3)

                                        Wie kann ich denn die NPM-Version auf 19.x updaten? Ich habe dazu leider nichts gefunden, was mir weitergeholfen hätte.

                                        LG Stefan

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

                                          @stefan_nk

                                          npm wird gar nicht separat installiert.
                                          Mach es danach:

                                          https://forum.iobroker.net/topic/71478/plötzliche-probleme-durch-nodejs-dfsg-version-npm-fehlt

                                          Hinterher per

                                          iob nodejs-update
                                          

                                          schauen ob das dann senkrecht installiert wurde.

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            Stefan_NK @Thomas Braun last edited by

                                            @thomas-braun sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                                            iob nodejs-update

                                            Hat funktioniert. Vielen Dank Thomas

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            Support us

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

                                            787
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            nodejs
                                            91
                                            844
                                            169209
                                            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