Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [How-to] Node.js ioBroker richtig updaten-2021/22 Edition

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [How-to] Node.js ioBroker richtig updaten-2021/22 Edition

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @marlan99 last edited by

      @marlan99 sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

      Hier der output mit npm -g i npm

      das sollzest du ja auch gar nicht machen! ist böse!
      Deswegen hat @thomas-braun ja gefragt ob du das vielleicht mal benutzt hattest

      M 1 Reply Last reply Reply Quote 0
      • M
        marlan99 @Homoran last edited by

        @homoran uups 👼

        1 Reply Last reply Reply Quote 0
        • M
          marlan99 last edited by

          nächster Versuch nun den Adapter komplett zu deinstallieren um ihn danach wieder erneut zu installieren ist nun ebenfalls fehlgeschlagen:

          $ iobroker add mbus auto --host iobroker-slave
          NPM version: 8.11.0
          Installing iobroker.mbus@2.4.0... (System call)
          host.iobroker-slave Cannot install iobroker.mbus@2.4.0: 1
          ERROR: Process exited with code 25
          
          Homoran 1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @marlan99 last edited by Homoran

            @marlan99 und mit --debug?

            aber die Frage ob npm richtig installiert ist, ist ja noch offen.

            M 1 Reply Last reply Reply Quote 0
            • M
              marlan99 @Homoran last edited by

              @homoran habe soeben meinen test raspi verwendet um den mbus Adapter mit node.js 16 und npm 8.11 zu installieren.
              Läuft hier ohne Probleme (ok habe keinen serial Adapter dran, aber der Adapter lässt sich ohne Fehler starten.

              Aus meiner Sicht klar ein Installationsproblem auf meinem "slave".
              Ich werde den mal aus dem Backup neu aufsetzen. Da wird ja gemäss info heute auch bereits die node.js 16 verwendet

              Homoran 1 Reply Last reply Reply Quote 0
              • M
                marlan99 last edited by

                Hier noch die Ausgabe der Installation mit --debug

                pi@iobroker-slave:~ $ iobroker add mbus auto --debug
                NPM version: 8.11.0
                Installing iobroker.mbus@2.4.0... (System call)
                npm ERR! code 1
                npm ERR! path /opt/iobroker/node_modules/node-mbus
                npm ERR! command failed
                npm ERR! command sh -c node-gyp rebuild
                npm ERR! node:internal/modules/cjs/loader:936
                npm ERR!   throw err;
                npm ERR!   ^
                npm ERR! 
                npm ERR! Error: Cannot find module 'object-assign'
                npm ERR! Require stack:
                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
                npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
                npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)
                npm ERR!     at require (node:internal/modules/cjs/helpers:102:18)
                npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
                npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1105:14)
                npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
                npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32)
                npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
                npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19) {
                npm ERR!   code: 'MODULE_NOT_FOUND',
                npm ERR!   requireStack: [
                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                npm ERR!   ]
                npm ERR! }
                
                npm ERR! A complete log of this run can be found in:
                npm ERR!     /home/iobroker/.npm/_logs/2022-07-21T14_54_53_188Z-debug-0.log
                host.iobroker-slave Cannot install iobroker.mbus@2.4.0: 1
                
                
                1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @marlan99 last edited by

                  @marlan99 sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                  der Adapter lässt sich ohne Fehler starten.
                  Aus meiner Sicht klar ein Installationsproblem auf meinem "slave".

                  aus meiner auch!

                  @marlan99 sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                  Ich werde den mal aus dem Backup neu aufsetzen. Da wird ja gemäss info heute auch bereits die node.js 16 verwendet

                  das wird schneller gehen als den Fehler zu suchen.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    marlan99 @Homoran last edited by

                    @homoran system komplett neu aufgesetzt und backup eingespielt. Läuft alles wie es soll.
                    Keine Ahnung was das Problem war, aber jetzt ist es nicht mehr da.

                    Danke euch allen für den Support heute Nachmittag

                    da_Woody 1 Reply Last reply Reply Quote 1
                    • da_Woody
                      da_Woody @marlan99 last edited by

                      @marlan99 👍 es lebt... 😉

                      J 1 Reply Last reply Reply Quote 1
                      • J
                        Josh @da_Woody last edited by

                        Habe jetzt auch das Upgrade von V14 auf V16 auf meinem Master und den beiden Slaves gewagt. Hat alles wunderbar geklappt. Selbst die beiden ZigBee-Adapter werden wieder grün und auch der rpi2-Adapter.

                        Danke für die gute Arbeit 🙂

                        1 Reply Last reply Reply Quote 2
                        • kxn
                          kxn last edited by

                          Hallo ich habe das Problem das ich influxdb nicht von ver 2 auf 3 updaten kann seit dem Nodejs update von 14 auaf 16...

                          Das update endet mit dem Error 25!

                          Hier mein output zu meinem System:

                          aarch64
                          /usr/bin/nodejs
                          /usr/bin/node
                          /usr/bin/npm
                          v16.16.0
                          v16.16.0
                          8.11.0
                          pi
                          /home/pi
                          OK:1 http://archive.raspberrypi.org/debian buster InRelease
                          OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
                          OK:3 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.16.0-deb-1nodesource1
                            Installationskandidat: 16.16.0-deb-1nodesource1
                            Versionstabelle:
                           *** 16.16.0-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~deb10u1 500
                                  500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                          
                          
                          Thomas Braun apollon77 2 Replies Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @kxn last edited by

                            @kxn

                            Upgrade mit aktiver --debug-Option liefert?

                            (Vermutlich den Hinweis, Verzeichnisse umzubenennen).

                            1 Reply Last reply Reply Quote 1
                            • apollon77
                              apollon77 @kxn last edited by

                              @kxn Bitte das upgrade kommando mit --debug laufen lassen ... Dann hat npm irgendein Problem.

                              Voraussichtlich meckert er das es irgendwelche temporären Verzeichnisse schon gibt dann diese löschen

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

                                @apollon77

                                Jeder neu erstellte Thread oder im bestehenden Thread kommt immer diese Anfrage
                                und wird immer von neuen durchgekaut .

                                Abwohl du hier ein Hinweis hinterlegt hast :

                                3ebf0ae8-53d7-4b66-aac0-a63a73be289a-grafik.png

                                und @thomas-braun im Howto Thread erklärt hat .

                                Könnte man das nicht für die " Übergangszeit " NodeJS10 /12 /14 zu Nodjs16 noch mehr kenntlicher machen im Thread -Start !?

                                Thomas hast es so :

                                8f19020c-9e78-4ba2-b41f-5b7dcc0172aa-grafik.png

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

                                  Hallo zusammen.

                                  Ich wollte nun auch mal auf Nodejs 16 hoch, aber das funzt nicht. Braucht man für die v16 eventuell zwingend npm 8? Muß ich das extra / manuell hochziehen?
                                  Oder habe ich ein anderes Problem? Siehe Zeile 19?
                                  JS Controller ist die V 4.0.23. System ist Debian Bullseye, vorher mit update/upgrade eingesalbt. 😊

                                  iobroker@ioBroker:/opt/iobroker$ curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
                                  sudo apt install -y nodejs
                                  
                                  ## Installing the NodeSource Node.js 16.x repo...
                                  
                                  
                                  ## Populating apt-get cache...
                                  
                                  + apt-get update
                                  OK:1 http://deb.debian.org/debian bullseye InRelease
                                  OK:2 http://security.debian.org/debian-security bullseye-security InRelease
                                  OK:3 http://deb.debian.org/debian bullseye-updates InRelease
                                  Ign:4 http://ppa.launchpad.net/linrunner/tlp/ubuntu lucid InRelease
                                  Holen:5 http://ppa.launchpad.net/linrunner/tlp/ubuntu lucid Release [13,9 kB]
                                  OK:6 https://deb.nodesource.com/node_14.x bullseye InRelease
                                  Holen:7 http://ppa.launchpad.net/linrunner/tlp/ubuntu lucid Release.gpg [316 B]
                                  Ign:7 http://ppa.launchpad.net/linrunner/tlp/ubuntu lucid Release.gpg
                                  Paketlisten werden gelesen… Fertig
                                  W: GPG-Fehler: http://ppa.launchpad.net/linrunner/tlp/ubuntu lucid Release: Die folgenden Signaturen waren ungültig: 2042F03C5FABD0BA2CED40412B3F92F902D65EFF
                                  E: Das Depot »http://ppa.launchpad.net/linrunner/tlp/ubuntu lucid Release« ist nicht signiert.
                                  N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert.
                                  N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
                                  Error executing command, exiting
                                  Paketlisten werden gelesen… Fertig
                                  Abhängigkeitsbaum wird aufgebaut… Fertig
                                  Statusinformationen werden eingelesen… Fertig
                                  nodejs ist schon die neueste Version (14.20.0-deb-1nodesource1).
                                  Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
                                    linux-image-5.10.0-9-amd64
                                  Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
                                  0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                                  iobroker@ioBroker:/opt/iobroker$ iobroker start
                                  iobroker@ioBroker:/opt/iobroker$ npm -v
                                  6.14.17
                                  iobroker@ioBroker:/opt/iobroker$ node -v
                                  v14.20.0
                                  iobroker@ioBroker:/opt/iobroker$ nodejs -v
                                  v14.20.0
                                  iobroker@ioBroker:/opt/iobroker$
                                  
                                  
                                  Thomas Braun J 2 Replies Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @1Topf last edited by Thomas Braun

                                    @1topf

                                    Was ist das? Zu 99,9% falsche Quelle:

                                    http://ppa.launchpad.net/linrunner/tlp/ubuntu
                                    

                                    Das ist für Ubuntu und auch noch ein ppa. Also was ist das?
                                    Lösch die zugehörige .list-Datei.

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

                                      @1topf sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                                      OK:6 https://deb.nodesource.com/node_14.x bullseye InRelease

                                      Solange da nicht ein Eintrag mit 16 auftaucht, wirst auch nicht auf 16 hoch kommen.
                                      Die falsche Quelle zu launchpad hat Thomas schon angemeckert. Du hast Debian und ubuntu als Quelle, kann nur schief gehen.
                                      NPM kommt mit Node, deshalb, nie an NPM manuelle fummeln 😉

                                      1 Reply Last reply Reply Quote 0
                                      • 1Topf
                                        1Topf last edited by

                                        @thomas-braun

                                        Hat mich eben auch gewundert, verstehe auch nicht, wie das da hingekommen ist. Ist ein Debian ohne GUI und wird alle paar Wochen per update/upgrade gepflegt. Bislang problemlos. sources.list sah so aus:

                                        # deb cdrom:[Debian GNU/Linux 11.1.0 _Bullseye_ - Official amd64 NETINST 20211009-10:07]/ bullseye main
                                        
                                        #deb cdrom:[Debian GNU/Linux 11.1.0 _Bullseye_ - Official amd64 NETINST 20211009-10:07]/ bullseye main
                                        
                                        deb http://deb.debian.org/debian/ bullseye main
                                        deb-src http://deb.debian.org/debian/ bullseye main
                                        
                                        deb http://security.debian.org/debian-security bullseye-security main
                                        deb-src http://security.debian.org/debian-security bullseye-security main
                                        
                                        # bullseye-updates, to get updates before a point release is made;
                                        # see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
                                        deb http://deb.debian.org/debian/ bullseye-updates main
                                        deb-src http://deb.debian.org/debian/ bullseye-updates main
                                        
                                        deb http://ppa.launchpad.net/linrunner/tlp/ubuntu lucid main
                                        
                                        # This system was installed using small removable media
                                        # (e.g. netinst, live or single CD). The matching "deb cdrom"
                                        # entries were disabled at the end of the installation process.
                                        # For information about how to configure apt package sources,
                                        # see the sources.list(5) manual.
                                        

                                        Hab Ubuntu ausgeklammert, jetzt lief alles durch. 👍
                                        Mal schaun, ob die Adapter dann noch alle gehen.

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

                                          @1topf

                                          apt policy tlp tlp-rdw
                                          sudo ln -s /usr/bin/node /usr/bin/nodejs
                                          uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                          

                                          sagt?

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

                                            @thomas-braun

                                            iobroker@ioBroker:~$ apt policy tlp tlp-rdw
                                            
                                            sudo ln -s /usr/bin/node /usr/bin/nodejs
                                            
                                            uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                            tlp:
                                              Installiert:           (keine)
                                              Installationskandidat: 1.3.1-2
                                              Versionstabelle:
                                                 1.3.1-2 500
                                                    500 http://deb.debian.org/debian bullseye/main amd64 Packages
                                            tlp-rdw:
                                              Installiert:           (keine)
                                              Installationskandidat: 1.3.1-2
                                              Versionstabelle:
                                                 1.3.1-2 500
                                                    500 http://deb.debian.org/debian bullseye/main amd64 Packages
                                            ln: die symbolische Verknüpfung '/usr/bin/nodejs' konnte nicht angelegt werden: Die Datei existiert bereits
                                            x86_64
                                            /usr/bin/nodejs
                                            /usr/bin/node
                                            /usr/bin/npm
                                            v16.16.0
                                            v16.16.0
                                            8.11.0
                                            iobroker
                                            /home/iobroker
                                            OK:1 http://security.debian.org/debian-security bullseye-security InRelease
                                            OK:2 http://deb.debian.org/debian bullseye InRelease
                                            OK:3 http://deb.debian.org/debian bullseye-updates InRelease
                                            OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease
                                            Paketlisten werden gelesen… Fertig
                                            Abhängigkeitsbaum wird aufgebaut… Fertig
                                            Statusinformationen werden eingelesen… Fertig
                                            Alle Pakete sind aktuell.
                                            nodejs:
                                              Installiert:           16.16.0-deb-1nodesource1
                                              Installationskandidat: 16.16.0-deb-1nodesource1
                                              Versionstabelle:
                                             *** 16.16.0-deb-1nodesource1 500
                                                    500 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages
                                                    100 /var/lib/dpkg/status
                                                 12.22.12~dfsg-1~deb11u1 500
                                                    500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
                                                 12.22.5~dfsg-2~11u1 500
                                                    500 http://deb.debian.org/debian bullseye/main amd64 Packages
                                            
                                            
                                            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

                                            418
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            97
                                            812
                                            315897
                                            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