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 für ioBroker richtig updaten

    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 für ioBroker richtig updaten

    This topic has been deleted. Only users with topic management privileges can see it.
    • AlCalzone
      AlCalzone Developer @sveni_lee last edited by

      @sveni_lee sagte in [How-to] Node.js für ioBroker richtig updaten:

      soll ich run npm audit fix to fix them, or npm audit for details ausführen?

      NEIN!

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

        @sveni_lee Alles gut, so geht es. Wie @AlCalzone geschrieben hat: nix weiter ausführen

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

          @apollon77

          etwas spät aber immerhin... es läuft ja wieder.
          aber irgendwas stimt bei meiner installation nicht.
          Jetzt habe ich Probleme mit JS-scripten
          "cannot find modul 'request'" steht da zum Beispiel. Das habe ich bei
          request, fs und dateformat.

          1 Reply Last reply Reply Quote 0
          • K
            klausiob last edited by

            @apollon77 Danke für die Anleitung. Wollte mein Node.js von 8.14.0 auf 18.16.2 updaten (raspi3+). Bin am Punkt iobroker stop gescheitert.

            iobroker controller daemon is not running
            

            Es läuft aber noch alles in VIS und Admin. Dann versuchte ich mit sudo kill -9 <ProzessID> einzeln zu löschen. Funktioniert einzeln auch, mußte dann aber feststellen, dass nach und nach wieder alle Prozesse mit neuer PID da waren????
            Was mache ich falsch?

            BBTown apollon77 2 Replies Last reply Reply Quote 0
            • BBTown
              BBTown @klausiob last edited by

              @klausiob
              Node.js von 8.14.0 auf 18.16.2 updaten

              ich bin ziemlich sicher, dass Du dann weltweit der Erste auf einer v18.x.x sein wirst ... 😎

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

                @klausiob wenn du manuell killst dann den js-Controller Prozess zuerst. Der startet sonst alles wieder. Wenn iobroker stop nicht tut Versuch „systemctl stop iobroker“ und am besten den fixer laufen lassen.

                1 Reply Last reply Reply Quote 0
                • K
                  klausiob last edited by

                  @apollon77 Danke hat funktioniert. Hier nochmal die Zusammenfassung:
                  Für das Kommando werden root-Rechte gebraucht

                  sudo -s
                  systemctl stop iobroker
                  ps -ef|grep io
                  curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash
                  node -v
                  nodejs -v
                  

                  Wollte erst ... setup_8.16.2 eingeben. Findet er aber nicht, nimmt mit "x" aber die gewünschte aktuellste Version.

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

                    ich wollte nun auch node.js aktualisieren, was soweit auch klappte. als ich dann aber "npm rebuild" in cd /opt/iobroker ausgeführt habe, kam dies zum schluss. bin bis hier nach der anleitung hier aus dem forum vorgegangen.

                    gyp ERR! clean error
                    gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'
                    gyp ERR! System Linux 4.9.59-v7+
                    gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy p/bin/node-gyp.js" "rebuild"
                    gyp ERR! cwd /opt/iobroker/node_modules/ursa
                    gyp ERR! node -v v10.17.0
                    gyp ERR! node-gyp -v v5.0.3
                    gyp ERR! not ok
                    npm ERR! code ELIFECYCLE
                    npm ERR! errno 1
                    npm ERR! ursa@0.9.4 install: `node-gyp rebuild`
                    npm ERR! Exit status 1
                    npm ERR!
                    npm ERR! Failed at the ursa@0.9.4 install script.
                    npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /root/.npm/_logs/2019-11-30T17_15_22_906Z-debug.log
                    

                    kann mir da einer von euch weiterhelfen? oder kann man dies ignorieren, wahrscheinlich nicht oder?

                    apollon77 AlCalzone 2 Replies Last reply Reply Quote 0
                    • apollon77
                      apollon77 @maik150 last edited by

                      @maik150 installation fixer nutzen um alles rechte korrekt zu setzen.

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

                        @apollon77 den installationsfixer habe ich davor ausgeführt

                        sigi234 1 Reply Last reply Reply Quote 0
                        • sigi234
                          sigi234 Forum Testing Most Active @maik150 last edited by sigi234

                          @maik150 sagte in [How-to] Node.js für ioBroker richtig updaten:

                          @apollon77 den installationsfixer habe ich davor ausgeführt

                          node-gyp -v v5.0.3 ?

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            maik150 @sigi234 last edited by

                            @sigi234 keine ahnung, was sagt dieser wert aus?

                            sigi234 1 Reply Last reply Reply Quote 0
                            • sigi234
                              sigi234 Forum Testing Most Active @maik150 last edited by

                              @maik150 sagte in [How-to] Node.js für ioBroker richtig updaten:

                              @sigi234 keine ahnung, was sagt dieser wert aus?

                              Was kommt bei:

                              cd /opt/iobroker
                              iobroker list instances
                              node -v
                              nodejs -v
                              npm -v

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                maik150 @sigi234 last edited by

                                @sigi234

                                root@raspberrypi2:/opt/iobroker# iobroker list instances
                                system.adapter.admin.0                 : admin       -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                                system.adapter.cloud.0                 : cloud       -  enabled
                                system.adapter.discovery.0             : discovery   -  enabled
                                system.adapter.hm-rega.0               : hm-rega     -  enabled
                                system.adapter.hm-rpc.0                : hm-rpc      -  enabled, port: 0
                                system.adapter.info.0                  : info        -  enabled
                                system.adapter.samsung.0               : samsung     - disabled
                                root@raspberrypi2:/opt/iobroker#
                                

                                node -v
                                v10.17.0

                                nodejs -v
                                v10.17.0

                                npm -v
                                v6.11.3

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

                                  ich führe alles als root user aus nicht als pi user, falls das vielleicht wichtig ist?

                                  und der installationsfixer muss der im iobroker ordner ausgeführt werden?

                                  sigi234 BBTown 2 Replies Last reply Reply Quote 0
                                  • sigi234
                                    sigi234 Forum Testing Most Active @maik150 last edited by

                                    @maik150

                                    https://forum.iobroker.net/topic/20211/iobroker-installation-fixer-beta-verfügbar

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      maik150 @sigi234 last edited by

                                      @sigi234 hab ich gelesen, was soll ich dem entnehmen?

                                      1 Reply Last reply Reply Quote 0
                                      • BBTown
                                        BBTown @maik150 last edited by

                                        @maik150 sagte in [How-to] Node.js für ioBroker richtig updaten:

                                        der installationsfixer muss der im iobroker ordner ausgeführt werden?

                                        nein

                                        1 Reply Last reply Reply Quote 0
                                        • AlCalzone
                                          AlCalzone Developer @maik150 last edited by

                                          @maik150 sagte in [How-to] Node.js für ioBroker richtig updaten:

                                          permission denied, rmdir 'build'

                                          Wenn du root bist und ioBroker gestoppt hast, dürfte das gar nicht passieren. Bist du 100% sicher, dass nicht doch noch ein ioBroker-Prozess läuft?

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            maik150 @AlCalzone last edited by

                                            @AlCalzone so sieht es aus wenn ich den iobroker stoppe.

                                            root@raspberrypi2:/opt/iobroker# iobroker stop
                                            root@raspberrypi2:/opt/iobroker# ps auxww|grep io
                                            root         9  0.0  0.0      0     0 ?        S    00:39   0:00 [migration/0]
                                            root        13  0.0  0.0      0     0 ?        S    00:39   0:00 [migration/1]
                                            root        18  0.0  0.0      0     0 ?        S    00:39   0:00 [migration/2]
                                            root        23  0.0  0.0      0     0 ?        S    00:39   0:00 [migration/3]
                                            root        34  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        38  0.0  0.0      0     0 ?        S<   00:39   0:00 [rpciod]
                                            root        39  0.0  0.0      0     0 ?        S<   00:39   0:00 [xprtiod]
                                            root        42  0.0  0.0      0     0 ?        S<   00:39   0:00 [nfsiod]
                                            root        53  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        54  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        55  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        56  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        57  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        58  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        59  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        60  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        61  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        62  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        63  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        64  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        65  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        66  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        67  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        68  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        69  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        70  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        71  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        72  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        73  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        74  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        75  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        76  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            root        80  0.0  0.0      0     0 ?        S<   00:39   0:00 [DWC Notificatio]
                                            root        88  0.0  0.0      0     0 ?        S<   00:39   0:00 [bioset]
                                            message+   277  0.0  0.3   6588  3600 ?        Ss   00:39   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
                                            root       499  0.0  0.8  32184  7744 ?        Sl   00:39   0:00 lightdm --session-child 14 17
                                            pi         515  0.0  1.3  52832 13112 ?        Ssl  00:39   0:00 /usr/bin/lxsession -s LXDE-pi -e LXDE
                                            pi         524  0.0  0.3   6512  3036 ?        Ss   00:39   0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation
                                            pi         590  0.0  0.0   3792   232 ?        Ss   00:39   0:00 /usr/bin/ssh-agent x-session-manager
                                            root      2137  0.0  0.0   4372   532 pts/0    S+   13:53   0:00 grep io
                                            

                                            ich muss dazu sagen mein iobroker läuft so ansich und es werden auch alle versionsnummern richtig angezeigt, sei es jetzt node oder js-controller. aber mein eigentliches problem mit meiner alexa besteht leider weiterhin, aber das gehört hier glaube ich nicht hin oder?

                                            oberfragger 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

                                            756
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            installation linux node node.js nodejs windows
                                            106
                                            1105
                                            680167
                                            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