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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    Diskussion zum HowTo nodejs-Installation und upgrade

    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      Wildbill @skorpil last edited by

      @skorpil Schau ein Stück weiter oben in die Signatur von @Thomas-Braun . Da gibt es einen Link zu einem NodeJS Fixer Skript.
      Das aktualisiert Dir auf die aktuelle Version 18.18.0 (die Du auch verwenden solltest).

      Gruss, Jürgen

      S 2 Replies Last reply Reply Quote 0
      • S
        skorpil @Wildbill last edited by

        @wildbill Dankeschön, das hatte ich offenbar überlesen. Ich werde es so versuchen.

        1 Reply Last reply Reply Quote 0
        • S
          skorpil @Wildbill last edited by

          @wildbill feedback is breakfast for champions: hat funktioniert. Danke!

          1 Reply Last reply Reply Quote 0
          • M
            mcreuter last edited by Samson71

            Hey so sieht es aus wenn ich die Installation nochmal durchgehe:

            Von allein wollte der nicht auf die neuste Version!

            System latest offizelles Docker Image...

            Ich hoffe das es damit gerade gezogen und aktuell ist.

            Vielleicht kann mir jemand das bestätigen??

            DANKE

            root@iobroker:/opt/iobroker# uname -m && type -P nodejs node npm npx corepack && nodejs -v && node -v && npm -v && npx -v && corepack -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt 
            update &> /dev/null && sudo apt update && apt policy nodejs 
            x86_64
            /usr/bin/nodejs
            /usr/bin/node
            /usr/bin/npm
            /usr/bin/npx
            /usr/bin/corepack
            v18.18.0
            v18.18.0
            9.8.1
            9.8.1
            0.19.0
            5.0.12
            root
            root
            
            /opt/iobroker
            Hit:1 http://deb.debian.org/debian bullseye InRelease
            Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease
            Hit:3 http://deb.debian.org/debian bullseye-updates InRelease           
            Hit:4 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.
            nodejs:
              Installed: 18.18.0-1nodesource1
              Candidate: 18.18.0-1nodesource1
              Version table:
             *** 18.18.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                    100 /var/lib/dpkg/status
                 18.17.1-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.17.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.16.1-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.16.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.15.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.14.2-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.14.1-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.14.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.13.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.12.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.11.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.10.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.9.1-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.9.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.8.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.7.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.6.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.5.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.4.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.3.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.2.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.1.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 18.0.0-1nodesource1 500
                    500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
                 12.22.12~dfsg-1~deb11u4 500
                    500 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages
                 12.22.12~dfsg-1~deb11u3 500
                    500 http://deb.debian.org/debian bullseye/main amd64 Packages
            root@iobroker:/opt/iobroker#
            

            Mod-EDIT: Code in Code-Tags setzen!

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

              @mcreuter

              Beim Docker zieht man sich i. A. einen frischen aus dem Regal.

              M 1 Reply Last reply Reply Quote 0
              • M
                mcreuter @Thomas Braun last edited by

                @thomas-braun

                Was meinst du damit genau?

                Der Docker Container Manager zieht sich immer das latest Image und migriert diese direkt.
                https://registry.hub.docker.com/r/iobroker/iobroker/

                Aber updaten tut sich da kein Node und npm.... Habe das immer manuell gemacht bisher...
                Nur jetzt über die neue Methode von dir, da die alte nicht mehr ging :_)

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

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

                  Aber updaten tut sich da kein Node und npm.... Habe das immer manuell gemacht bisher...

                  Ich hab ja keine Aktien in den Dingern, aber die kommen eigentlich immer mit passender Umgebung vorgekocht daher. Ich glaube in der Version 9 des Docker-Images ist dann auch nodejs@18.18.0 eingebacken.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mcreuter @Thomas Braun last edited by

                    @thomas-braun Ok, kein Ding kann man ja buanet mal fragen...
                    https://github.com/buanet/ioBroker.docker

                    JA kann sein, die V9 ist als Beta pre Release schon in arbeit mit Debian 12 soweit ich das gesehen habe 🙂
                    https://github.com/buanet/ioBroker.docker/tree/v9.0.0-beta.1

                    • Änderungen:

                      remove special settings script and env for zwave (#377)
                      simplify ci/ reduce gh actions
                      ignore errors in "silent cleanup" on first start (#369)
                      cleanup/ restructure repo
                      update nodejs setup process
                      update base image to debian 12 (bookworm)

                      improve security by avoiding root (exept startup script itself)
                      restrict iobroker commanline commands (start/ stop/ node fix)
                      integrate maintenance script into iobroker command
                      move container config files location

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

                      Auch bei mir hat der normale Befehl per update und upgrade nicht zum Erfolg geführt. Ich habe dann den Link von @thomas-braun genutzt und den iob node fix laufen lassen. Das hat geklappt. Verstanden habe ich es aber nicht, da die Pfade ja scheinbar richtig waren und frühere Updates immer funktioniert haben.
                      Vielen Dank an alle Helfer!

                      ioBroker nodejs fixer 2023-09-24
                      
                      Recommended nodejs-version is: 18.18.0
                      Checking your installation now. Please be patient!
                      
                      Your current setup is:
                      /usr/bin/nodejs         v18.17.1
                      /usr/bin/node           v18.17.1
                      /usr/bin/npm            9.6.7
                      /usr/bin/npx            9.6.7
                      /usr/bin/corepack       0.18.0
                      
                      We found these nodejs versions available for installation:
                      
                      nodejs:
                        Installed: 18.17.1-deb-1nodesource1
                        Candidate: 18.17.1-deb-1nodesource1
                        Version table:
                       *** 18.17.1-deb-1nodesource1 500
                              500 https://deb.nodesource.com/node_18.x bullseye/main arm64 Packages
                              100 /var/lib/dpkg/status
                           12.22.12~dfsg-1~deb11u4 500
                              500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
                           12.22.12~dfsg-1~deb11u3 500
                              500 http://deb.debian.org/debian bullseye/main arm64 Packages
                      
                      
                      
                      Nothing to do - Your installation is using the correct paths.
                      
                      You are running nodejs v18.17.1. Do you want to install recommended version 18.18.0?
                      
                      Press <y> to continue or any other key to quit
                      Trying to fix your installation now. Please be patient.
                      Waiting for ioBroker to shut down - Give me a minute...
                      ############################################################
                      
                      *** These repos are active on your system:
                      Hit:1 http://deb.debian.org/debian bullseye InRelease
                      Get:2 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
                      Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
                      Get:4 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
                      Hit:5 https://repos.influxdata.com/debian stable InRelease
                      Get:6 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [314 kB]
                      Get:7 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [308 kB]
                      Fetched 694 kB in 2s (399 kB/s)
                      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 bullseye InRelease
                      Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
                      Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
                      Hit:4 https://repos.influxdata.com/debian stable InRelease
                      Hit:5 http://archive.raspberrypi.org/debian bullseye InRelease
                      Get:6 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB]
                      Get:7 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages [5267 B]
                      Get:8 https://deb.nodesource.com/node_18.x nodistro/main arm64 Packages [5262 B]
                      Fetched 22.7 kB in 2s (9910 B/s)
                      Reading package lists... Done
                      
                      Installing the recommended nodejs version now!
                      (Reading database ... 50588 files and directories currently installed.)
                      Preparing to unpack .../nodejs_18.18.0-1nodesource1_arm64.deb ...
                      Detected old npm client, removing...
                      Unpacking nodejs (18.18.0-1nodesource1) over (18.17.1-deb-1nodesource1) ...
                      Setting up nodejs (18.18.0-1nodesource1) ...
                      Processing triggers for man-db (2.9.4-2) ...
                      
                      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.
                      
                      pi@raspberrypi:/opt/iobroker $
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Jack01 last edited by

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

                        Verstanden habe ich es aber nicht, da die Pfade ja scheinbar richtig waren und frühere Updates immer funktioniert haben.

                        Der Aufbau der Paketquelle hat sich geändert und daher muss entsprechend in deinem System auch einiges umgestellt werden. Neue Versionen von nodejs kommen nur noch über das neue Repository.

                        Das node-fix-Skript nimmt dir das weitgehend ab.

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          Jack01 @Thomas Braun last edited by

                          @thomas-braun OK, Danke.
                          Ist das so dann OK für künftige Updates oder muß ich jetzt noch etwas manuell anpassen?

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

                            @jack01

                            Künftige Updates laufen jetzt wieder wie gehabt über den üblichen

                            sudo apt update
                            sudo apt full-upgrade
                            

                            Weg mit.

                            J 1 Reply Last reply Reply Quote 1
                            • J
                              Jack01 @Thomas Braun last edited by

                              @thomas-braun Na das ist ja ein cooles Script. Kannte ich noch garnicht.

                              ======================= SUMMARY =======================
                                                   v.2023-06-20
                              
                              
                                 Static hostname: raspberrypi
                                       Icon name: computer
                                      Machine ID: 620e922bf61543a9808841485d366ecc
                                         Boot ID: 14db67d510ce44cea2db1fdd81b8c10d
                                Operating System: Debian GNU/Linux 11 (bullseye)
                                          Kernel: Linux 6.1.21-v8+
                                    Architecture: arm64
                              
                              Installation:           native
                              Kernel:                 aarch64
                              Userland:               arm64
                              Timezone:               Europe/Berlin (CEST, +0200)
                              User-ID:                1000
                              X-Server:               false
                              Boot Target:            multi-user.target
                              
                              Pending OS-Updates:     0
                              Pending iob updates:    0
                              
                              Nodejs-Installation:    /usr/bin/nodejs         v18.18.0
                                                      /usr/bin/node           v18.18.0
                                                      /usr/bin/npm            9.8.1
                                                      /usr/bin/npx            9.8.1
                              
                              Recommended versions are nodejs 18.x.y and npm 9.x.y
                              Your nodejs installation is correct
                              
                              MEMORY:
                                             total        used        free      shared  buff/cache   available
                              Mem:            3.8G        1.9G        142M        0.0K        1.7G        1.8G
                              Swap:            99M         26M         73M
                              Total:          3.9G        1.9G        216M
                              
                              Active iob-Instances:   25
                              Active repo(s): stable
                              
                              ioBroker Core:          js-controller           5.0.12
                                                      admin                   6.10.1
                              
                              ioBroker Status:        iobroker is running on this host.
                              
                              
                              Objects type: jsonl
                              States  type: redis
                              
                              Status admin and web instance:
                              + system.adapter.admin.0                  : admin                 : raspberrypi                              -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                              + system.adapter.web.0                    : web                   : raspberrypi                              -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                              
                              Objects:                9583
                              States:                 8935
                              
                              Size of iob-Database:
                              
                              16M     /opt/iobroker/iobroker-data/objects.jsonl
                              1.8M    /opt/iobroker/iobroker-data/states.jsonl
                              
                              
                              
                              =================== END OF SUMMARY ====================
                              
                              1 Reply Last reply Reply Quote 0
                              • L
                                LJSven last edited by

                                Ich bekomme auf meinem Tinkerboard nodejs 16 nicht installiert. Es kommt immer diese Meldung

                                Get:1 https://deb.nodesource.com/node_16.x stretch/main armhf nodejs armhf 16.20.2-1nodesource1 [24.2 MB]
                                Err:1 https://deb.nodesource.com/node_16.x stretch/main armhf nodejs armhf 16.20.2-1nodesource1
                                  Writing more data than expected (24245194 > 24241614)
                                  Hashes of expected file:
                                

                                Was muss ich machen? Ratlos

                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  Jan1 @LJSven last edited by

                                  @ljsven

                                  1. Stretch ist tot
                                  2. Node 16 ist alt und 18 empfohlen

                                  Somit erstmal das OS auf der Kiste auf den aktuellen Stand bringen, der Rest sollte dann automatisch laufen

                                  L 1 Reply Last reply Reply Quote 0
                                  • L
                                    LJSven @Jan1 last edited by

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

                                    @ljsven

                                    1. Stretch ist tot
                                    2. Node 16 ist alt und 18 empfohlen

                                    Somit erstmal das OS auf der Kiste auf den aktuellen Stand bringen, der Rest sollte dann automatisch laufen

                                    Welches Image soll ich installieren? Hast du einen Link?

                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      Jan1 @LJSven last edited by Jan1

                                      @ljsven
                                      Ich habe kein Tinkerboard und natürlich ein aktuelles Image 😉
                                      Wobei Image??? kann man das Ding nicht manuell einrichten?

                                      L 1 Reply Last reply Reply Quote 0
                                      • L
                                        LJSven @Jan1 last edited by

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

                                        @ljsven
                                        Ich habe kein Tinkerboard und natürlich ein aktuelles Image 😉
                                        Wobei Image??? kann man das Ding nicht manuell einrichten?

                                        Ich meinte eher das passende OS für die Kiste. Ich war der Meinung, dass ich das aktuelle habe

                                        J 1 Reply Last reply Reply Quote 0
                                        • J
                                          Jan1 @LJSven last edited by

                                          @ljsven
                                          Du hast mit Stretch Debian 9 am Start und aktuell wäre Bookworm Debian 12. Also 3 Versionen über deinem, vermeintlich aktuellen Strech 🙂

                                          L 1 Reply Last reply Reply Quote 0
                                          • L
                                            LJSven @Jan1 last edited by

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

                                            @ljsven
                                            Du hast mit Stretch Debian 9 am Start und aktuell wäre Bookworm Debian 12. Also 3 Versionen über deinem, vermeintlich aktuellen Strech 🙂

                                            Verstehe ich ja… aber ich weiß nicht, welches Image ich genau brauche. Das ist meine Kiste ->

                                            IMG_5205.jpeg

                                            J 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

                                            343
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

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