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.
    • bahnuhr
      bahnuhr Forum Testing Most Active @apollon77 last edited by

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

      Ja das kannste löschen.

      und wie ?

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

        @bahnuhr Lösch das ganze /home/dieter/node_modules?? Wenn da nix anderes war. Sonst "npm uninstall canvas" in /home/dieter

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

          @siggi0904 Hmmm ... Nicht hilfreich wenn der Adapter die echte Fehlermeldung versteckt ... Keine Ahnung ... versuch instanz zu löschen und adapter uninstall und neu installieren

          bahnuhr S 3 Replies Last reply Reply Quote 0
          • bahnuhr
            bahnuhr Forum Testing Most Active @apollon77 last edited by

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

            instanz zu löschen und adapter uninstall

            Ich hatte nur die Instanz neu gestartet, dann war die fehlermeldung weg.

            1 Reply Last reply Reply Quote 0
            • bahnuhr
              bahnuhr Forum Testing Most Active @apollon77 last edited by

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

              Lösch das ganze /home/dieter/node_modules?? Wenn da nix anderes war. Sonst "npm uninstall canvas" in /home/dieter

              habe erst uninstall, dann das ganze Verz. gelöscht.
              Scheint geklappt zu haben.

              unter (opt/iobroker kommt aber bei ls immer noch: extraneous
              Naja, klappt ja.

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

                @apollon77 Beim Adapater deinstallieren hängt er gerade.
                a401ad1d-17ac-4eae-8269-8da7fc1d1731-grafik.png

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

                  @apollon77 Neuinstallation von Adapter und Instance hat scheinbar geklappt.

                  Zum node.js noch eine Frage:
                  Sollte man da jetzt irgendwie aufräumen?
                  Oder wenn alles läuft Finger weg von den npm Befehlen?

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

                    @siggi0904

                    Von npm direkt lässt man besser die Finger.

                    nodejs ist jetzt sauber installiert?

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

                    sagt dazu?

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

                      @thomas-braun Sieht ganz sauber aus:

                      login as: iobroker
                      iobroker@192.168.178.64's password:
                      Linux iobroker 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64
                      
                      The programs included with the Debian GNU/Linux system are free software;
                      the exact distribution terms for each program are described in the
                      individual files in /usr/share/doc/*/copyright.
                      
                      Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                      permitted by applicable law.
                      You have new mail.
                      Last login: Sun Jun 19 13:00:41 2022 from 192.168.178.41
                      iobroker@iobroker:~$ sudo ln -s /usr/bin/node /usr/bin/nodejs
                      [sudo] Passwort für iobroker:
                      iobroker@iobroker:~$ 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
                      iobroker@iobroker:~$ uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                      x86_64
                      /usr/bin/nodejs
                      /usr/bin/node
                      /usr/bin/npm
                      v16.15.1
                      v16.15.1
                      8.11.0
                      iobroker
                      /home/iobroker
                      OK:1 http://deb.debian.org/debian bullseye InRelease
                      OK:2 http://phoscon.de/apt/deconz bullseye InRelease
                      OK:3 http://deb.debian.org/debian bullseye-updates InRelease
                      OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease
                      OK:5 https://deb.debian.org/debian-security bullseye-security InRelease
                      Paketlisten werden gelesen… Fertig
                      Abhängigkeitsbaum wird aufgebaut… Fertig
                      Statusinformationen werden eingelesen… Fertig
                      Alle Pakete sind aktuell.
                      nodejs:
                        Installiert:           16.15.1-deb-1nodesource1
                        Installationskandidat: 16.15.1-deb-1nodesource1
                        Versionstabelle:
                       *** 16.15.1-deb-1nodesource1 500
                              500 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages
                              100 /var/lib/dpkg/status
                           12.22.5~dfsg-2~11u1 500
                              500 http://deb.debian.org/debian bullseye/main amd64 Packages
                              500 https://deb.debian.org/debian-security bullseye-security/main amd64 Packages
                      iobroker@iobroker:~$
                      
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Siggi0904 last edited by

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

                        Sieht ganz sauber aus:

                        Bis auf den ungeschickten username 'iobroker'.

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

                          @thomas-braun

                          Jo, das will ich aber ungern angehen.
                          Solange da keiner meckert, würd ich das so lassen.

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

                            @siggi0904

                            Leg dir halt einen user 'siggi' oder sowas an und lass den 'iobroker' in Ruh.

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

                              @thomas-braun
                              da muss ich auch bei den Gruppen und Rechten aufpassen, dass der alles erhält.
                              Wüsste nicht, wo ich da überall drauf achten muss.

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

                                @siggi0904

                                Die Gruppen kommen im Standard mit, es muss dann nur noch die Gruppe 'sudo' dem neuen user hinzugefügt werden.

                                Geht in einer Zeile:

                                sudo adduser siggi -G sudo
                                

                                In die Gruppe 'iobroker' würde ich den neuen user dann auch noch packen.

                                1 Reply Last reply Reply Quote 0
                                • E
                                  e-i-k-e @apollon77 last edited by

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

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

                                  /opt/iobroker/node_modules/epoll

                                  cd /opt/iobroker/node_modules/epollund dann npm install

                                  Ich habe bei zwei Slave ein anderes problem mit dem rpi2 Adapter.

                                  
                                  rpi2.1
                                  2022-06-19 18:25:19.807	error	cannot use GPIO: TypeError: Cannot read properties of null (reading 'setMode')
                                  
                                  rpi2.1
                                  2022-06-19 18:25:19.800	error	Cannot initialize GPIO: Error: Cannot find module 'rpi-gpio'Require stack:- /opt/iobroker/node_modules/iobroker.rpi2/main.js
                                  
                                  rpi2.1
                                  2022-06-19 18:25:19.441	info	starting. Version 1.2.0 in /opt/iobroker/node_modules/iobroker.rpi2, node: v16.15.1, js-controller: 4.0.23
                                  

                                  DIesmal brachte das up-/downgraden nichts.

                                  Und wenn ich deinen genannten Befehl versuch, verläuft dieser ins nichts. 😕

                                  pi@raspberrypi-display1:~ $ cd /opt/iobroker/node_modules/epoll
                                  -bash: cd: /opt/iobroker/node_modules/epoll: Datei oder Verzeichnis nicht gefund                                                                                                             en
                                  
                                  

                                  Hast du noch eine Idee?

                                  Liebe Grüße

                                  apollon77 1 Reply Last reply Reply Quote 0
                                  • apollon77
                                    apollon77 @e-i-k-e last edited by

                                    @e-i-k-e naja in deinem Gehör steht auch nix von Epoll … bei dir steht rpi-gpio .. also schau mal einsam liegt

                                    1 Reply Last reply Reply Quote 0
                                    • mickym
                                      mickym Most Active @apollon77 last edited by

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

                                      @mickym Hast DU dann jetzt eine neue package-lock?

                                      Ich wollte nochmal fragen - ist das schlimm, dass ich keine package-lock habe?

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

                                        @mickym

                                        Bist du sicher?
                                        Meine wird regelmäßig angepackt:

                                        ls -la /opt/iobroker/package-lock.json
                                        -rw-rwxr--+ 1 iobroker iobroker 772814 Jun 19 06:31 /opt/iobroker/package-lock.json
                                        
                                        mickym 1 Reply Last reply Reply Quote 0
                                        • ?
                                          A Former User last edited by A Former User

                                          Bei npm sagt iobroker dass es die Version 8.12.1 gibt:
                                          IMG_20220619_214904.jpg
                                          Muss/sollte man das auch updaten?

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

                                            @thomas-braun Ja wie gesagt - meine alte war uralt von 2019 und die habe ich nun gelöscht und wird aber keine neue erstellt.

                                            Homoran 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

                                            600
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

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