Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. npm Update

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    npm Update

    This topic has been deleted. Only users with topic management privileges can see it.
    • DJMarc75
      DJMarc75 @hotspot_2 last edited by

      @hotspot_2 in Codetags bitte ... das ist das Symbol </>

      1 Reply Last reply Reply Quote 0
      • DJMarc75
        DJMarc75 @hotspot_2 last edited by

        @hotspot_2 sagte in npm Update:

        Die Version ist aktuell 10.5.0

        passt doch alles:

        Du hast nodejs 18.20.3 und da gehört eben die installierte NPM 10.7.0 dazu.

        Wenn Du auf die Nodejs 20 gehst dann wird auch die passende NPM installiert.

        Immer Finger weg von NPM 😉

        H 1 Reply Last reply Reply Quote 0
        • H
          hotspot_2 @DJMarc75 last edited by hotspot_2

          @djmarc75 Danke! Hab gerade festgestellt das bei mir dann ja alles passt.

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

            @hotspot_2

            Und mit der ganz aktuellen nodejs 20.14 ist auch npm 10.7 dabei.

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

              @thomas-braun Danke Euch!

              Ich habe aktuell Probleme mit dem iot Adapter (der stürzt häufig ab und im Protokoll steht immer was von "Type error"). Auf Github war die Empfehlung alles zu aktualisieren.

              Node.js 18.20.2
              Npm 10.7.0

              War die Empfehlung. Aber das passt ja bei mir.

              DJMarc75 Thomas Braun 2 Replies Last reply Reply Quote 0
              • DJMarc75
                DJMarc75 @hotspot_2 last edited by

                @hotspot_2 sagte in npm Update:

                der stürzt häufig ab und im Protokoll steht immer was von "Type error"

                bitte das Log auch zeigen - nicht nacherzählen 😉

                In Codetags natürlich

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

                  @hotspot_2 sagte in npm Update:

                  War die Empfehlung. Aber das passt ja bei mir.

                  Dann bring es auf 20, das ist nämlich die aktuelle Empfehlung für den ioBroker.

                  iob nodejs-update 20
                  
                  H 1 Reply Last reply Reply Quote 0
                  • H
                    hotspot_2 @DJMarc75 last edited by hotspot_2

                    @djmarc75 Klar.

                    2024-05-29 15:05:00.029 - info: host.iobroker instance system.adapter.dwd.0 started with pid 226574
                    2024-05-29 15:05:00.610 - info: dwd.0 (226574) starting. Version 2.8.5 in /opt/iobroker/node_modules/iobroker.dwd, node: v18.20.3, js-controller: 5.0.19
                    2024-05-29 15:05:00.820 - info: dwd.0 (226574) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                    2024-05-29 15:05:01.333 - info: host.iobroker instance system.adapter.dwd.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
                    2024-05-29 15:07:18.585 - info: iot.0 (225009) Connection changed: disconnect
                    2024-05-29 15:07:18.586 - info: iot.0 (225009) Connection lost
                    2024-05-29 15:07:18.589 - error: iot.0 (225009) uncaught exception: Cannot convert undefined or null to object
                    2024-05-29 15:07:18.589 - error: iot.0 (225009) TypeError: Cannot convert undefined or null to object
                    at Function.keys ()
                    at RemoteAccess.onCloudDisconnect (/opt/iobroker/node_modules/iobroker.iot/lib/remote.js:720:29)
                    at DeviceClient.onDisconnect (/opt/iobroker/node_modules/iobroker.iot/main.js:564:22)
                    at DeviceClient.emit (node:events:517:28)
                    at DeviceClient.emit (node:domain:489:12)
                    at MqttClient. (/opt/iobroker/node_modules/aws-iot-device-sdk/device/index.js:797:12)
                    at MqttClient.emit (node:events:529:35)
                    at MqttClient.emit (node:domain:489:12)
                    at TLSSocket. (/opt/iobroker/node_modules/aws-iot-device-sdk/node_modules/mqtt/lib/client.js:360:10)
                    at TLSSocket.emit (node:events:529:35)
                    2024-05-29 15:07:18.589 - error: iot.0 (225009) Cannot convert undefined or null to object
                    2024-05-29 15:07:18.597 - info: iot.0 (225009) terminating
                    2024-05-29 15:07:18.598 - warn: iot.0 (225009) Terminated (UNCAUGHT_EXCEPTION): Without reason
                    2024-05-29 15:07:19.098 - info: iot.0 (225009) terminating
                    2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: TypeError: Cannot convert undefined or null to object
                    2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at Function.keys ()
                    2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at RemoteAccess.onCloudDisconnect (/opt/iobroker/node_modules/iobroker.iot/lib/remote.js:720:29)
                    2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at DeviceClient.onDisconnect (/opt/iobroker/node_modules/iobroker.iot/main.js:564:22)
                    2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at DeviceClient.emit (node:events:517:28)
                    2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at DeviceClient.emit (node:domain:489:12)
                    2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at MqttClient. (/opt/iobroker/node_modules/aws-iot-device-sdk/device/index.js:797:12)
                    2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at MqttClient.emit (node:events:529:35)
                    2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at MqttClient.emit (node:domain:489:12)
                    2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at TLSSocket. (/opt/iobroker/node_modules/aws-iot-device-sdk/node_modules/mqtt/lib/client.js:360:10)
                    2024-05-29 15:07:19.125 - error: host.iobroker Caught by controller[0]: at TLSSocket.emit (node:events:529:35)
                    2024-05-29 15:07:19.125 - error: host.iobroker instance system.adapter.iot.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                    2024-05-29 15:07:19.125 - info: host.iobroker Restart adapter system.adapter.iot.0 because enabled
                    2024-05-29 15:07:49.152 - info: host.iobroker instance system.adapter.iot.0 started with pid 226608
                    2024-05-29 15:07:49.845 - info: iot.0 (226608) starting. Version 3.2.2 in /opt/iobroker/node_modules/iobroker.iot, node: v18.20.3, js-controller: 5.0.19
                    2024-05-29 15:07:49.866 - info: iot.0 (226608) Connecting with a18wym7vjdl22g.iot.eu-west-1.amazonaws.com
                    2024-05-29 15:08:20.035 - info: iot.0 (226608) Connection changed: disconnect
                    2024-05-29 15:08:20.038 - error: iot.0 (226608) uncaught exception: Cannot convert undefined or null to object
                    2024-05-29 15:08:20.038 - error: iot.0 (226608) TypeError: Cannot convert undefined or null to object
                    at Function.keys ()
                    at RemoteAccess.onCloudDisconnect (/opt/iobroker/node_modules/iobroker.iot/lib/remote.js:720:29)
                    at DeviceClient.onDisconnect (/opt/iobroker/node_modules/iobroker.iot/main.js:564:22)
                    at DeviceClient.emit (node:events:517:28)
                    at DeviceClient.emit (node:domain:489:12)
                    at MqttClient. (/opt/iobroker/node_modules/aws-iot-device-sdk/device/index.js:797:12)
                    at MqttClient.emit (node:events:529:35)
                    at MqttClient.emit (node:domain:489:12)
                    at TLSSocket. (/opt/iobroker/node_modules/aws-iot-device-sdk/node_modules/mqtt/lib/client.js:360:10)
                    at TLSSocket.emit (node:events:529:35)
                    2024-05-29 15:08:20.039 - error: iot.0 (226608) Cannot convert undefined or null to object
                    2024-05-29 15:08:20.046 - info: iot.0 (226608) terminating
                    2024-05-29 15:08:20.047 - warn: iot.0 (226608) Terminated (UNCAUGHT_EXCEPTION): Without reason
                    2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: TypeError: Cannot convert undefined or null to object
                    2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at Function.keys ()
                    2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at RemoteAccess.onCloudDisconnect (/opt/iobroker/node_modules/iobroker.iot/lib/remote.js:720:29)
                    2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at DeviceClient.onDisconnect (/opt/iobroker/node_modules/iobroker.iot/main.js:564:22)
                    2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at DeviceClient.emit (node:events:517:28)
                    2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at DeviceClient.emit (node:domain:489:12)
                    2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at MqttClient. (/opt/iobroker/node_modules/aws-iot-device-sdk/device/index.js:797:12)
                    2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at MqttClient.emit (node:events:529:35)
                    2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at MqttClient.emit (node:domain:489:12)
                    2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at TLSSocket. (/opt/iobroker/node_modules/aws-iot-device-sdk/node_modules/mqtt/lib/client.js:360:10)
                    2024-05-29 15:08:20.259 - error: host.iobroker Caught by controller[0]: at TLSSocket.emit (node:events:529:35)
                    2024-05-29 15:08:20.259 - error: host.iobroker instance system.adapter.iot.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                    2024-05-29 15:08:20.259 - info: host.iobroker Restart adapter system.adapter.iot.0 because enabled
                    

                    Das passiert so mehrmals täglich und der Adapter startet häufig neu. Wird dann auch mal komplett deaktiviert automatisch.

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

                      @thomas-braun sagte in npm Update:

                      iob nodejs-update 20

                      Wenn ich das eingebe erhalte ich das hier als Meldung:

                      marcus@iobroker:~$ iob nodejs-update 20
                      iobroker nodejs-update [<major-version>]
                      
                      Upgrade the Node.JS installation to the current LTS
                      
                      Options:
                        --help  Show help  [boolean]
                      
                      

                      Was muss ich da noch tun?

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

                        @hotspot_2 sagte in npm Update:

                        Was muss ich da noch tun?

                        Dein System zuvor auf Stand bringen....

                        iob stop
                        iob fix
                        iob nodejs-update 20
                        
                        H 1 Reply Last reply Reply Quote 0
                        • H
                          hotspot_2 @Thomas Braun last edited by

                          @thomas-braun Jetzt hat alles geklappt. Jetzt schau ich mal ob der iot-Adapter besser läuft.

                          Danke für eure Hilfe!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          613
                          Online

                          31.7k
                          Users

                          79.7k
                          Topics

                          1.3m
                          Posts

                          3
                          14
                          547
                          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