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@Smart Living Forum Solingen, 14.06. - Agenda added

    • 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.
    • M
      MacQuire @Thomas Braun last edited by

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

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

      Hab ich was falsch gemacht?

      Das sehe ich noch nicht. Bitte Ein- und Ausgaben zu den letzten drei Befehlszeilen von mir.

      pi@raspberrypi:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs
      ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
      pi@raspberrypi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
      armv7l
      /usr/bin/nodejs
      /usr/bin/node
      /usr/bin/npm
      v16.17.1
      v16.17.1
      8.15.0
      3.3.22
      pi
      pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker
      /home/pi
      OK:1 http://phoscon.de/apt/deconz buster InRelease
      OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
      OK:3 http://archive.raspberrypi.org/debian buster InRelease
      OK:4 https://deb.nodesource.com/node_16.x buster InRelease
      Paketlisten werden gelesen... Fertig
      Abhängigkeitsbaum wird aufgebaut.
      Statusinformationen werden eingelesen.... Fertig
      Alle Pakete sind aktuell.
      nodejs:
        Installiert:           16.17.1-deb-1nodesource1
        Installationskandidat: 16.17.1-deb-1nodesource1
        Versionstabelle:
       *** 16.17.1-deb-1nodesource1 500
              500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
              100 /var/lib/dpkg/status
           10.24.0~dfsg-1~deb10u2 500
              500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
      pi@raspberrypi:~ $ ls -l /home/pi/.gnupg
      insgesamt 8
      drwx------ 2 pi pi 4096 Mär  4  2021 private-keys-v1.d
      -rw------- 1 pi pi   32 Okt 15 14:13 pubring.kbx
      pi@raspberrypi:~ $
      
      1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @MacQuire last edited by

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

        3.3.22

        Ist eine steinalte js-controller-Version. Upgraden!

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

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

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

          3.3.22

          Ist eine steinalte js-controller-Version. Upgraden!

          Das hattest Du mir hier in diesem Beitrag schon gesagt ....

          https://forum.iobroker.net/topic/57945/sourceanalytix-probleme-adapter-zu-installieren/24

          Deshalb bin ich das Ganze ja jetzt angegangen ....
          Erst jetzt das Upgrade auf 16.17.1

          Und jetzt folgt das js-controller Update

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

            @macquire

            Zuerst die Adapter, dann der js-Controller.

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

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

              @macquire

              Zuerst die Adapter, dann der js-Controller.

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

              @macquire

              Zuerst die Adapter, dann der js-Controller.

              pi@raspberrypi:~ $ iobroker update -u
              Used repository: Stable (default)
              hash unchanged, use cached sources
              update done
              Controller "js-controller" : 4.0.23   , installed 3.3.22 [Updateable]
              
              

              Bis auf den js-controller sind alle uptodate

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

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

                Bis auf den js-controller sind alle uptodate

                Ja dann ran...

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

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

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

                  Bis auf den js-controller sind alle uptodate

                  Ja dann ran...

                  Fertig....

                  pi@raspberrypi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                  armv7l
                  /usr/bin/nodejs
                  /usr/bin/node
                  /usr/bin/npm
                  v16.17.1
                  v16.17.1
                  8.15.0
                  4.0.23
                  pi
                  pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker
                  /home/pi
                  OK:1 http://phoscon.de/apt/deconz buster InRelease
                  OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
                  OK:3 http://archive.raspberrypi.org/debian buster InRelease
                  OK:4 https://deb.nodesource.com/node_16.x buster InRelease
                  Paketlisten werden gelesen... Fertig
                  Abhängigkeitsbaum wird aufgebaut.
                  Statusinformationen werden eingelesen.... Fertig
                  Alle Pakete sind aktuell.
                  nodejs:
                    Installiert:           16.17.1-deb-1nodesource1
                    Installationskandidat: 16.17.1-deb-1nodesource1
                    Versionstabelle:
                   *** 16.17.1-deb-1nodesource1 500
                          500 https://deb.nodesource.com/node_16.x buster/main armhf Packages
                          100 /var/lib/dpkg/status
                       10.24.0~dfsg-1~deb10u2 500
                          500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                  

                  Noch irgend welche Tipps?

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

                    @macquire

                    Schaut jetzt rund aus.

                    In Kürze dürfte aber ein Upgrade auf Debian 'Bullseye' anstehen. Buster ist kurz vor dem 'End Of Life'. Nur mal so zur Vorwarnung.

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

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

                      @macquire

                      Schaut jetzt rund aus.

                      In Kürze dürfte aber ein Upgrade auf Debian 'Bullseye' anstehen. Buster ist kurz vor dem 'End Of Life'. Nur mal so zur Vorwarnung.

                      Alles klar - ist das jetzt schon möglich?

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

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

                        Alles klar - ist das jetzt schon möglich?

                        Natürlich. Bullseye ist schon über ein Jahr die aktuelle stable-Version.
                        Die Releases überlappen sich ja genau deswegen. Dann hat man ein Jahr Zeit den Absprung zu planen.

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

                          @thomas-braun

                          Natürlich. Bullseye ist schon über ein Jahr die aktuelle stable-Version.
                          Die Releases überlappen sich ja genau deswegen. Dann hat man ein Jahr Zeit den Absprung zu planen.

                          Alles klar.... damit werde ich mich morgen Nacht beschäftigen - jetzt bin ich erst mal froh, dass das jetzt hier alles geklappt hat 😉

                          Vielen, vielen Dank für Deine super Hilfe, Deine Zeit und Deine Geduld !!!!!

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

                            @macquire

                            Dazu hatte ich auch schon mal wasgeschrieben:

                            https://forum.iobroker.net/topic/47213/upgrade-von-debian-10-buster-auf-11-bullseye

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

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

                              @macquire

                              Dazu hatte ich auch schon mal wasgeschrieben:

                              https://forum.iobroker.net/topic/47213/upgrade-von-debian-10-buster-auf-11-bullseye

                              Da bin ich grad schon bei der Suche drauf gestossen 😉

                              1 Reply Last reply Reply Quote 0
                              • D
                                djsirius last edited by

                                Hallo.

                                ich habe gestern auf meinem Slave Raspberry Pi 3b Debian Buster ein Nodejs update auf 16.17.1 gemacht.

                                Leider ist die NPM Version noch immer auf Version 6.14.8.

                                Wie bekomme ich das hin, dass alles wieder richtig ist?

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

                                  @djsirius

                                  Du hast doch in deinem anderen Thread schon eine Antwort erhalten.

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    djsirius @Thomas Braun last edited by

                                    @thomas-braun ja, das stimmt, aber leider komme ich nicht weiter

                                    Jetzt habe ich sehr wahrscheinlich irgendwas zerschossen! 😞

                                    pi@ioBroker-RasPi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                                    /usr/bin/nodejs
                                    v16.17.1
                                    /usr/bin/node
                                    v16.17.1
                                    /usr/bin/npm
                                    /usr/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/index.js:110
                                    class SocksProxyAgent extends agent_base_1.Agent {
                                                                               ^
                                    
                                    TypeError: Class extends value undefined is not a constructor or null
                                        at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/index.js:110:44)
                                        at Module._compile (node:internal/modules/cjs/loader:1126:14)
                                        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
                                        at Module.load (node:internal/modules/cjs/loader:1004:32)
                                        at Function.Module._load (node:internal/modules/cjs/loader:839:12)
                                        at Module.require (node:internal/modules/cjs/loader:1028:19)
                                        at require (node:internal/modules/cjs/helpers:102:18)
                                        at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/make-fetch-happen/lib/agent.js:174:29)
                                        at Module._compile (node:internal/modules/cjs/loader:1126:14)
                                        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
                                        at Module.load (node:internal/modules/cjs/loader:1004:32)
                                        at Function.Module._load (node:internal/modules/cjs/loader:839:12)
                                        at Module.require (node:internal/modules/cjs/loader:1028:19)
                                        at require (node:internal/modules/cjs/helpers:102:18)
                                        at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/make-fetch-happen/lib/remote.js:7:18)
                                        at Module._compile (node:internal/modules/cjs/loader:1126:14)
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @djsirius last edited by

                                      @djsirius
                                      Mach in dem anderen Thread weiter. Dieser hier ist schon lang genug.

                                      K 1 Reply Last reply Reply Quote 0
                                      • K
                                        Kusi @Thomas Braun last edited by

                                        @thomas-braun
                                        Mir ist aufgefallen, dass auf einem Raspberry npm im Ordner "/usr/local/bin" installiert ist, wo es ja nicht hingehört.
                                        Wie kann ich dies bereinigen, damit es dann in "/usr/bin" ist?

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

                                          @kusi
                                          Im einfachsten Fall ist es nur doppelt installiert und kann aus dem Pfad /usr/local/bin gelöscht werden.

                                          Näheres dazu findet sich in meiner Signatur.

                                          K 1 Reply Last reply Reply Quote 0
                                          • K
                                            Kusi @Thomas Braun last edited by Kusi

                                            @thomas-braun
                                            Danke

                                            Im Hintergrund war NPM tatsächlich doppelt installiert.
                                            Habe obigen Ordner gelöscht und nun erscheint die neue Version.

                                            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

                                            892
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

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