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

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    [How-to] Node.js für ioBroker richtig updaten

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @apollon77 last edited by

      @apollon77 danke

      wegen @crunchip

      da sind einige fehlermeldungen siehe: https://forum.iobroker.net/post/267300 - vielleicht magst du kurz helfen

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

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

        Außerdem hat dieser user bei mir "sudo ALL ALL" in /etc/sudoers.d/iobroker

        (AUch wenn etwas Offtopic hier)
        Naja etwas komplexer ist das sudoers FIle schon. hat bei mitr einiger mehr an Zeilen 🙂

        Das "iobroker ALL=(ALL) ALL" bedeutet das er alles mit einer Passwortabfrage ausführen darf. Danach kommen eine Liste an Kommandos die er ohne Passwort ausfüren darf. Diese haben wir gesammelt mit Sicherheit und Adapterbedarfen im Hinterkopf

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

          @apollon77 nein, eigentlich noch keines 😂
          das eigentliche Problem war ja dieses https://forum.iobroker.net/topic/22832
          dann wollte ich Nodejs auf version 10 bringen, woran ich ja gescheitert bin , an den 3 erwähnten Adaptern.
          nach hin und her probieren in sämtlichen Konstellationen, bin ich letztendlich auf meinem alten Stand, nur das ich vom Js-controller nun zurück bin von 1.5.9 auf 1.4.2
          habe nun nochmal ein

           npm rebuild
          
          > bluetooth-hci-socket@0.5.1 install /opt/iobroker/node_modules/bluetooth-hci-socket
          > node-gyp rebuild
          
          make: Verzeichnis „/opt/iobroker/node_modules/bluetooth-hci-socket/build“ wird betreten
            CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
          ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’:
          ../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
               Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
                                                                                                         ^
          In file included from ../src/BluetoothHciSocket.cpp:8:0:
          ../../nan/nan.h:950:46: note: declared here
             NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                                        ^~~~~~~~~~~~
          ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’:
          ../src/BluetoothHciSocket.cpp:275:72: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance(int, v8::Local<v8::Value>*) const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             Local<Value> error = errorConstructor->NewInstance(1, constructorArgs);
                                                                                  ^
          In file included from /root/.node-gyp/8.16.0/include/node/v8.h:26:0,
                           from /root/.node-gyp/8.16.0/include/node/node.h:63,
                           from /root/.node-gyp/8.16.0/include/node/node_buffer.h:25,
                           from ../src/BluetoothHciSocket.cpp:7:
          /root/.node-gyp/8.16.0/include/node/v8.h:3897:31: note: declared here
                           Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
                                         ^
          /root/.node-gyp/8.16.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
             declarator __attribute__((deprecated(message)))
             ^~~~~~~~~~
          ../src/BluetoothHciSocket.cpp:282:93: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
             Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
                                                                                                       ^
          In file included from ../src/BluetoothHciSocket.cpp:8:0:
          ../../nan/nan.h:950:46: note: declared here
             NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                                        ^~~~~~~~~~~~
            SOLINK_MODULE(target) Release/obj.target/binding.node
            COPY Release/binding.node
          make: Verzeichnis „/opt/iobroker/node_modules/bluetooth-hci-socket/build“ wird verlassen
          
          > iobroker@1.1.2 install /opt/iobroker/node_modules/iobroker
          > node lib/prepareSetup.js && node lib/setup.js
          
          NPM version: 6.4.1
          npm version >= 5: disabling package-lock
          npm install iobroker.discovery@stable --production --save
          
          > serialport@6.2.2 install /opt/iobroker/node_modules/iobroker.discovery/node_modules/serialport
          > prebuild-install || node-gyp rebuild
          
          npm WARN react-beautiful-dnd@9.0.2 requires a peer of react@^16.3.1 but none is installed. You must install peer dependencies yourself.
          npm WARN react-motion@0.5.2 requires a peer of react@^0.14.9 || ^15.3.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
          npm WARN react-redux@5.0.7 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself.
          npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.3 (node_modules/osx-temperature-sensor):
          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
          
          + iobroker.discovery@1.3.0
          added 2 packages from 4 contributors, removed 82 packages, updated 11 packages and audited 48050 packages in 81.804s
          found 142 vulnerabilities (64 low, 17 moderate, 61 high)
            run `npm audit fix` to fix them, or `npm audit` for details
          packet folder is: /opt/iobroker/node_modules/iobroker.discovery | exists: true
          npm install iobroker.admin@stable --production --save
          npm WARN react-beautiful-dnd@9.0.2 requires a peer of react@^16.3.1 but none is installed. You must install peer dependencies yourself.
          npm WARN react-motion@0.5.2 requires a peer of react@^0.14.9 || ^15.3.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
          npm WARN react-redux@5.0.7 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself.
          npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.3 (node_modules/osx-temperature-sensor):
          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
          
          + iobroker.admin@3.6.2
          updated 1 package and audited 48050 packages in 84.565s
          found 142 vulnerabilities (64 low, 17 moderate, 61 high)
            run `npm audit fix` to fix them, or `npm audit` for details
          packet folder is: /opt/iobroker/node_modules/iobroker.admin | exists: true
          npm install iobroker.js-controller@stable --production --save
          
          > iobroker.js-controller@1.5.11 preinstall /opt/iobroker/node_modules/iobroker.js-controller
          > node lib/preinstallCheck.js
          
          NPM version: 6.4.1
          npm version >= 5: disabling package-lock
          
          > ursa-optional@0.9.10 install /opt/iobroker/node_modules/ursa-optional
          > node rebuild.js
          
          
          > diskusage@0.2.6 install /opt/iobroker/node_modules/diskusage
          > node-gyp rebuild
          
          make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird betreten
            CXX(target) Release/obj.target/diskusage/src/main.o
            CXX(target) Release/obj.target/diskusage/src/diskusage_posix.o
            SOLINK_MODULE(target) Release/obj.target/diskusage.node
            COPY Release/diskusage.node
          make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird verlassen
          
          > iobroker.js-controller@1.5.11 install /opt/iobroker/node_modules/iobroker.js-controller
          > node iobroker.js setup first
          
          npm WARN react-beautiful-dnd@9.0.2 requires a peer of react@^16.3.1 but none is installed. You must install peer dependencies yourself.
          npm WARN react-motion@0.5.2 requires a peer of react@^0.14.9 || ^15.3.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
          npm WARN react-redux@5.0.7 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself.
          npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.3 (node_modules/osx-temperature-sensor):
          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
          npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
          npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
          
          + iobroker.js-controller@1.5.11
          added 17 packages from 30 contributors, removed 2 packages, updated 3 packages and audited 48132 packages in 92.007s
          found 160 vulnerabilities (75 low, 18 moderate, 67 high)
            run `npm audit fix` to fix them, or `npm audit` for details
          packet folder is: /opt/iobroker/node_modules/iobroker.js-controller | exists: true
          Write "./iobroker start" to start the ioBroker
          Auto-start was enabled. Write "update-rc.d -f iobroker.sh remove" to disable auto-start
          iobroker is started. Go to "http://ip-addr:8081" to open the admin UI.
          
          > iobroker.amazon-dash@0.3.1 preinstall /opt/iobroker/node_modules/iobroker.amazon-dash
          > apt install libpcap-dev -y || true
          
          Paketlisten werden gelesen... Fertig
          Abhängigkeitsbaum wird aufgebaut.
          Statusinformationen werden eingelesen.... Fertig
          libpcap-dev ist schon die neueste Version (1.8.1-3).
          Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
            linux-image-4.9.0-7-amd64
          Verwenden Sie »apt autoremove«, um es zu entfernen.
          0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
          
          > socketwatcher@0.3.0 install /opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/socketwatcher
          > node-gyp rebuild
          
          make: Verzeichnis „/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/socketwatcher/build“ wird betreten
            CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
          ../socket_watcher.cpp: In static member function ‘static void SocketWatcher::Callback(uv_poll_t*, int, int)’:
          ../socket_watcher.cpp:77:60: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
             Nan::MakeCallback(watcher->handle(), callback, argc, argv);
                                                                      ^
          In file included from ../socket_watcher.hpp:8:0,
                           from ../socket_watcher.cpp:5:
          ../../nan/nan.h:959:46: note: declared here
             NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                                        ^~~~~~~~~~~~
            SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
            COPY Release/socketwatcher.node
          make: Verzeichnis „/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/socketwatcher/build“ wird verlassen
          
          > pcap@2.1.0 install /opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap
          > node-gyp rebuild
          
          make: Verzeichnis „/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/build“ wird betreten
            CXX(target) Release/obj.target/pcap_binding/pcap_binding.o
            CXX(target) Release/obj.target/pcap_binding/pcap_session.o
          ../pcap_session.cc: In static member function ‘static void PcapSession::PacketReady(u_char*, const pcap_pkthdr*, const u_char*)’:
          ../pcap_session.cc:85:102: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
               Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(session->packet_ready_cb), 0, NULL);
                                                                                                                ^
          In file included from ../pcap_session.h:4:0,
                           from ../pcap_session.cc:7:
          ../../nan/nan.h:959:46: note: declared here
             NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                                        ^~~~~~~~~~~~
            SOLINK_MODULE(target) Release/obj.target/pcap_binding.node
            COPY Release/pcap_binding.node
          make: Verzeichnis „/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/build“ wird verlassen
          
          > socketwatcher@0.3.0 install /opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/socketwatcher
          > node-gyp rebuild
          
          make: Verzeichnis „/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/socketwatcher/build“ wird betreten
            CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
          ../socket_watcher.cpp: In static member function ‘static void SocketWatcher::Callback(uv_poll_t*, int, int)’:
          ../socket_watcher.cpp:77:60: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
             Nan::MakeCallback(watcher->handle(), callback, argc, argv);
                                                                      ^
          In file included from ../socket_watcher.hpp:8:0,
                           from ../socket_watcher.cpp:5:
          ../../nan/nan.h:959:46: note: declared here
             NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                                        ^~~~~~~~~~~~
            SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
            COPY Release/socketwatcher.node
          make: Verzeichnis „/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/socketwatcher/build“ wird verlassen
          
          > usb@1.5.0 install /opt/iobroker/node_modules/iobroker.ble/node_modules/usb
          > node-pre-gyp install --fallback-to-build
          
          node-pre-gyp WARN Using request for node-pre-gyp https download
          [usb] Success: "/opt/iobroker/node_modules/iobroker.ble/node_modules/usb/src/binding/usb_bindings.node" already installed
          Pass --update-binary to reinstall or --build-from-source to recompile
          
          > @abandonware/noble@1.9.2-2 install /opt/iobroker/node_modules/iobroker.ble/node_modules/@abandonware/noble
          > node-gyp rebuild
          
          make: Verzeichnis „/opt/iobroker/node_modules/iobroker.ble/node_modules/@abandonware/noble/build“ wird betreten
            SOLINK_MODULE(target) Release/obj.target/noble.node
            COPY Release/noble.node
          make: Verzeichnis „/opt/iobroker/node_modules/iobroker.ble/node_modules/@abandonware/noble/build“ wird verlassen
          
          > usb@1.5.0 install /opt/iobroker/node_modules/iobroker.ble/node_modules/usb
          > node-pre-gyp install --fallback-to-build
          
          node-pre-gyp WARN Using request for node-pre-gyp https download
          [usb] Success: "/opt/iobroker/node_modules/iobroker.ble/node_modules/usb/src/binding/usb_bindings.node" already installed
          Pass --update-binary to reinstall or --build-from-source to recompile
          
          > @abandonware/bluetooth-hci-socket@0.5.3-1 preinstall /opt/iobroker/node_modules/iobroker.ble/node_modules/@abandonware/bluetooth-hci-socket
          > npm install node-pre-gyp
          
          + node-pre-gyp@0.12.0
          updated 6 packages and audited 95 packages in 4.815s
          found 0 vulnerabilities
          
          (node:31989) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit
          
          > @abandonware/bluetooth-hci-socket@0.5.3-1 install /opt/iobroker/node_modules/iobroker.ble/node_modules/@abandonware/bluetooth-hci-socket
          > node-pre-gyp install --fallback-to-build
          
          node-pre-gyp WARN Using request for node-pre-gyp https download
          [@abandonware/bluetooth-hci-socket] Success: "/opt/iobroker/node_modules/iobroker.ble/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node" already installed
          Pass --update-binary to reinstall or --build-from-source to recompile
          npm ERR! path /opt/iobroker/node_modules/iobroker.discovery/node_modules/@types/iobroker/package.json
          npm ERR! code ENOENT
          npm ERR! errno -2
          npm ERR! syscall open
          npm ERR! enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/@types/iobroker/package.json'
          npm ERR! enoent This is related to npm not being able to find a file.
          npm ERR! enoent
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /root/.npm/_logs/2019-06-03T07_11_55_104Z-debug.log
          root@IoBroker:/opt/iobroker# npm cache clean --force
          npm WARN using --force I sure hope you know what you are doing.
          root@IoBroker:/opt/iobroker# iobroker start
          Starting iobroker controller daemon...
          iobroker controller daemon started. PID: 32678
          
          
          1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 last edited by

            Dann dupliziere ich mal die Antwort 🙂

            Also das meiste sind warnungen und können ignoriert werden. Ich würde bei so eonem Fehler der scheinbar von "iobroker.discovery" getriggert wird einfach die gleiche discovery Version drüber installieren.

            Also ggf in "node_modules/iobroker.discovery/package.json" rausfinden welche Version es ist und dann per

            npm install iobroker.discovery@version --production

            diese neu installieren. Danach nochmals npm rebuild

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

              @apollon77 ja der ist danach auf version 1.3.0 hatte ich auch schon wieder auf 2.0.0
              was ich aber nicht verstehe, ist das ich gestern js controller 1.4.2 downgrade gemacht hatte und nun nur nochmal ein rebuild und habe im iobroker wieder v 1.5.11

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

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

                was ich aber nicht verstehe, ist das ich gestern js controller 1.4.2 downgrade gemacht hatte und nun nur nochmal ein rebuild und habe im iobroker wieder v 1.5.11

                Das wäre jetzt Glaskugel. npm rebuild lädt nichts herunter und aktualisiert keine Pakete, er führt nur alle "nativen build Prozesse" nochmals neu aus. Mehr nicht. Also dann hat irgendwie der downgrade nicht sauber geklappt.

                Aber warum kein 1.5 :-)) (aber das wäre anderer Thread). 1.5 ist die Basis der Zukunft wenn es Probleme gibt müssen wir die Lösen!

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

                  @apollon77 habe mein putty fenster noch offen

                  root@IoBroker:~# cd /opt/iobroker
                  root@IoBroker:/opt/iobroker# iobroker stop
                  Stopping iobroker controller daemon...
                  iobroker controller daemon stopped.
                  No "killall.sh" script found. Just stop.
                  root@IoBroker:/opt/iobroker# npm i iobroker.js-controller@1.4.2 --production
                  
                  > iobroker.js-controller@1.4.2 preinstall /opt/iobroker/node_modules/iobroker.js                                        -controller
                  > node lib/preinstall_check.js
                  
                  NPM version: 6.4.1
                  npm version >= 5: disabling package-lock
                  
                  > iobroker.js-controller@1.4.2 install /opt/iobroker/node_modules/iobroker.js-co                                        ntroller
                  > node iobroker.js setup first
                  
                  npm WARN react-beautiful-dnd@9.0.2 requires a peer of react@^16.3.1 but none is                                         installed. You must install peer dependencies yourself.
                  npm WARN react-motion@0.5.2 requires a peer of react@^0.14.9 || ^15.3.0 || ^16.0                                        .0 but none is installed. You must install peer dependencies yourself.
                  npm WARN react-redux@5.0.7 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.                                        0.0-0 but none is installed. You must install peer dependencies yourself.
                  npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but                                         none is installed. You must install peer dependencies yourself.
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.3 (no                                        de_modules/osx-temperature-sensor):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-tempe                                        rature-sensor@1.0.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux"                                        ,"arch":"x64"})
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modul                                        es/xpc-connection):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-conne                                        ction@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":                                        "x64"})
                  
                  + iobroker.js-controller@1.4.2
                  added 3 packages from 2 contributors, removed 17 packages, updated 3 packages an                                        d audited 48050 packages in 110.973s
                  found 142 vulnerabilities (64 low, 17 moderate, 61 high)
                    run `npm audit fix` to fix them, or `npm audit` for details
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • apollon77
                    apollon77 last edited by

                    und was sagte das npm rebuild? irgendwas mit controlelr? An sich sieht das ok aus. Kann ich mir daher nicht wirjklich erklären

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

                      @apollon77 rebuild war das oben im post

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

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

                        Wenn bei Dir rebuild nicht geht, dann probier doch mal reinstall. Die Doku ist derzeit nicht online, sonst hätte ich es gleich verlinkt.

                        Das habe ich einmal probiert mit katastrophalem Ausgang. Dort wird mit rm -R der gesamte node_modules Ordner gelöscht und das npm install ... baute dann bei mir nichts neues. Warf also auch Fehler. Somit hatte ich nach der Aktion gar keine Adapter mehr. Zum Glück hatte ich den gesamten ioBroker Ordner gesichert.

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

                        @Diginix An der Stelle beissen sich dann bestimmt Dinge "von früher" wo noch mit sudo gearbeitet wurde und der neuere Ansatz. Auhc interessant, warum nutzt Du User iobroker? An sich. hat der keine Login-Shell nach dem neuen Installer. Ich habe keine Ahnung ob das nicht zusätzlich Probleme bereitet

                        Ich öffne eine root shell und switche zum ioBroker Nutzer. mit "sudo -s -u iobroker"
                        Dachte bisher das wäre sinnvoll damit eben nicht alles als root in der Konsole gemacht wird. Weil sonst ja wieder die Owner und Permissions nicht zum iobroker user passen.
                        Egal wie, das npm rebuild läuft bei mir weder mit nativem root noch mit iobroker, noch mit "sudo npm rebuild" sauber durch. Das Log ist weiter oben.
                        Ich bekomme daraus keine Idee was ich tun könnte. Scheue mich aktuell vor umfangreicheren Maßnahmen weil ich nicht weiß was das für Ausmaße oder Kollateralschäden mit sich bringen kann.

                        Prinzipiell läuft bei mir alles. Es lassen sich Adapter installieren und auch aktualisieren. Daher habe ich kein Schmerz. Es bleibt nur im Hinterkopf dass einiges aus node 8.x Zeiten stammt und nun mit 10.x weiter läuft und dass man da ja eigentlich das "rebuild" machen soll.

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

                          @Diginix
                          Bei mir ist es egal, mit welcher Methode ich neu kompilieren, laufen beide nur das reinstall eben wesentlich länger läuft.
                          Ich weiß nicht was Du so alles laufen hast, aber Einstellungen der Adapter lassen sich sichern und bevor man ewig an einem Problem rum bastelt, kann man auch komplett neu aufsetzen. Dauert bei mir so ne gute Stunde und dann ist aber alles sauber. Wäre auch mal ne Möglichkeit IOBroker wieder "schön" zu machen.
                          Alternativ eben den IOBroker löschen und über die Backufunktion wieder das kleine Backup einspielen, sollte danach immer noch was nicht laufen, stimmt irgendwas an der Linux Installation nicht.

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

                            @Jan1 Das System ist vom Januar und schon mit der aktuellsten Anleitung aufgesetzt. Der Fixer hat bei mit daher auch nie etwas korrigieren müssen. Dennoch natürlich verwendet um das schon mal aussschließen zu können.
                            Bis node 8.x hatte ich auch nie Probleme. node 10.x kam mit Xubuntu 19.04 automatisch und lies sich nicht auf 8 downgraden. Seit dem habe ich die genannten Unstimmigkeiten. Nachdem ich den Thread gefunden habe, dachte ich das lässt sich vllt auf kleinem Weg mit den richtigen Kommandos lösen.
                            Aber vllt setze ich wirklich noch mal neu auf wenn ich die Zeit finde. Da aber alle Adapter usw. perfekt laufen, wirkt es nicht so als das etwas wirklich falsch ist.

                            Homoran Stabilostick 2 Replies Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Diginix last edited by

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

                              Das System ist vom Januar und schon mit der aktuellsten Anleitung aufgesetzt.

                              und genau dafür kam der Fixer zuerst.
                              Anfang/Mitte Januar gab es mit dem installer noch einige Rechteprobleme, die nach und nach in den Fixer und den Installer einflossen.

                              1 Reply Last reply Reply Quote 0
                              • Stabilostick
                                Stabilostick @Diginix last edited by Stabilostick

                                @Diginix

                                Wegen nicht funktionierendem Downgrade von Node 10: Schau Dir den Beitrag https://forum.iobroker.net/post/266790 und den darüber mit der cache policy an. Vielleicht hilft Dir das.

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

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

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

                                  Außerdem hat dieser user bei mir "sudo ALL ALL" in /etc/sudoers.d/iobroker

                                  (AUch wenn etwas Offtopic hier)
                                  Naja etwas komplexer ist das sudoers FIle schon. hat bei mitr einiger mehr an Zeilen 🙂

                                  Das "iobroker ALL=(ALL) ALL" bedeutet das er alles mit einer Passwortabfrage ausführen darf. Danach kommen eine Liste an Kommandos die er ohne Passwort ausfüren darf. Diese haben wir gesammelt mit Sicherheit und Adapterbedarfen im Hinterkopf

                                  ich wollte es nicht so genau ausführen aber das steht in meiner vor allen Standard Zeilen:

                                  iobroker ALL=(ALL) NOPASSWD: ALL
                                  

                                  Damit darf der user uneingeschränkt alles mit sudo. Funtioniert auch.

                                  @Homoran Mein Installationszeitpunkt war nachdem die neue Installationsart "perfekt" war. Demnach Ende Januar. Und den Fixer habe ich zusätzlich seit dem prophylaktisch schon bestimmt 3-4 mal ausgeführt. Immer "grün".
                                  Das hilft aber nicht bei den hier genannten Problemen mit npm rebuild.

                                  Wie auch immer crunchip und mein Problem sieht dem Output nach gleich aus und lässt sich mit Fixer und npm rebuild nicht lösen.

                                  Sachdienliche Hinweise dazu sind willkommen.

                                  Hier mal das der Konsolen Output bei npm rebuild als root:
                                  https://www.dropbox.com/s/5yx3embl5h0c3u3/2019-06-03_npm_rebuild_user_root.txt?dl=0

                                  Und das npm Log dazu:
                                  https://www.dropbox.com/s/2soi2gqmodxvyp4/2019-06-02T17_23_48_469Z-debug.log?dl=0

                                  Vielleicht ist ja auch alles sauber durchgelaufen und ich sehe Fehler wo keine sind.
                                  Aber das Ende sieht doch "komisch" aus:

                                  [...] abgeschnitten
                                  /root/.node-gyp/10.16.0/include/node/v8.h: In instantiation of âvoid v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]â:
                                  ../../nan/nan_object_wrap.h:66:61:   required from here
                                  /root/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from âv8::WeakCallbackInfo<Nan::ObjectWrap>::Callbackâ {aka âvoid (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)â} to âCallbackâ {aka âvoid (*)(const v8::WeakCallbackInfo<void>&)â} [-Wcast-function-type]
                                  make: *** [binding.target.mk:101: Release/obj.target/binding/src/BluetoothHciSocket.o] Fehler 1
                                  make: Verzeichnis â/opt/iobroker/node_modules/bluetooth-hci-socket/buildâ wird verlassen
                                  gyp ERR! build error
                                  gyp ERR! stack Error: `make` failed with exit code: 2
                                  gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
                                  gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                                  gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                                  gyp ERR! System Linux 5.0.0-15-generic
                                  gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                  gyp ERR! cwd /opt/iobroker/node_modules/bluetooth-hci-socket
                                  gyp ERR! node -v v10.16.0
                                  gyp ERR! node-gyp -v v3.8.0
                                  gyp ERR! not ok
                                  npm ERR! code ELIFECYCLE
                                  npm ERR! errno 1
                                  npm ERR! bluetooth-hci-socket@0.5.1 install: `node-gyp rebuild`
                                  npm ERR! Exit status 1
                                  npm ERR!
                                  npm ERR! Failed at the bluetooth-hci-socket@0.5.1 install script.
                                  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                                  
                                  npm ERR! A complete log of this run can be found in:
                                  npm ERR!     /root/.npm/_logs/2019-06-02T17_23_48_469Z-debug.log
                                  root@BT3-PRO:/opt/iobroker#
                                  

                                  Dachte nur das danach ein paar Ordner in node_modules neue Zeitstempel erhalten sollten. Bzw. alle iobroker.adaptername Unterordner neu gebaut werden.

                                  Bei irgend "npm audit" erhalte ich sowas:

                                  root@BT3-PRO:/opt/iobroker# npm audit
                                  npm ERR! code ELOCKVERIFY
                                  npm ERR! Errors were found in your package-lock.json, run  npm install  to fix them.
                                  npm ERR!     Missing: @abandonware/noble@^1.9.2-2
                                  npm ERR!     Invalid: lock file's iobroker.admin@3.5.10 does not satisfy iobroker.admin@^3.6.2
                                  npm ERR!     Missing: iobroker.alexa2@https://github.com/Apollon77/ioBroker.alexa2/tarball/master
                                  npm ERR!     Missing: iobroker.backitup@^1.1.4
                                  npm ERR!     Invalid: lock file's iobroker.discovery@1.2.4 does not satisfy iobroker.discovery@^2.0.0
                                  npm ERR!     Missing: iobroker.dwd@^2.4.3
                                  npm ERR!     Missing: iobroker.email@^1.0.4
                                  npm ERR!     Missing: iobroker.flot@^1.9.2
                                  npm ERR!     Missing: iobroker.habpanel@^0.3.4
                                  npm ERR!     Missing: iobroker.history@^1.8.6
                                  npm ERR!     Missing: iobroker.ical@^1.7.0
                                  npm ERR!     Missing: iobroker.info@^1.3.7
                                  npm ERR!     Missing: iobroker.iot@^0.4.3
                                  npm ERR!     Missing: iobroker.javascript@^4.1.12
                                  npm ERR!     Invalid: lock file's iobroker.js-controller@1.4.2 does not satisfy iobroker.js-controller@^1.5.11
                                  npm ERR!     Missing: iobroker.keyble@https://github.com/oyooyo/ioBroker.keyble/tarball/master
                                  npm ERR!     Missing: iobroker.material@^0.10.6
                                  npm ERR!     Missing: iobroker.mihome@^1.2.6
                                  npm ERR!     Missing: iobroker.mihome-plug@^0.2.0
                                  npm ERR!     Missing: iobroker.modbus@^3.0.0
                                  npm ERR!     Missing: iobroker.onkyo@^2.0.2
                                  npm ERR!     Missing: iobroker.parser@https://github.com/ioBroker/ioBroker.parser/tarball/master
                                  npm ERR!     Missing: iobroker.ping@^1.3.2
                                  npm ERR!     Missing: iobroker.radar@^1.2.1
                                  npm ERR!     Missing: iobroker.radar2@https://github.com/frankjoke/ioBroker.radar2/tarball/master
                                  npm ERR!     Missing: iobroker.samsung@^0.2.9
                                  npm ERR!     Missing: iobroker.scenes@^1.1.0
                                  npm ERR!     Missing: iobroker.shelly@^3.0.3
                                  npm ERR!     Missing: iobroker.simple-api@^2.0.2
                                  npm ERR!     Missing: iobroker.sonoff@^2.2.2
                                  npm ERR!     Missing: iobroker.sql@^1.9.5
                                  npm ERR!     Missing: iobroker.statistics@^0.2.0
                                  npm ERR!     Missing: iobroker.telegram@^1.4.3
                                  npm ERR!     Missing: iobroker.terminal@^0.1.2
                                  npm ERR!     Missing: iobroker.text2command@^1.2.5
                                  npm ERR!     Missing: iobroker.tr-064@^0.4.18
                                  npm ERR!     Missing: iobroker.ubuntu@https://github.com/indiBit/ioBroker.ubuntu/tarball/master
                                  npm ERR!     Missing: iobroker.vis@^1.2.0
                                  npm ERR!     Missing: iobroker.vis-history@^0.2.7
                                  npm ERR!     Missing: iobroker.web@^2.4.1
                                  npm ERR!     Missing: iobroker.yeelight-2@^1.0.1
                                  npm ERR!     Missing: node-bluetooth@^1.2.5
                                  npm ERR!     Missing: node-pre-gyp@^0.12.0
                                  npm ERR!     Missing: soef@file:node_modules/soef
                                  
                                  npm ERR! A complete log of this run can be found in:
                                  npm ERR!     /root/.npm/_logs/2019-06-03T10_30_03_944Z-debug.log
                                  root@BT3-PRO:/opt/iobroker#
                                  

                                  All diese Ausgaben sehen für mich nicht rund aus.

                                  crunchip apollon77 2 Replies Last reply Reply Quote 0
                                  • crunchip
                                    crunchip Forum Testing Most Active @Diginix last edited by

                                    @Diginix was sollte ein npm audit ergeben?

                                    root@IoBroker:/opt/iobroker# npm audit
                                    npm ERR! code EAUDITNOLOCK
                                    npm ERR! audit Neither npm-shrinkwrap.json nor package-lock.json found: Cannot audit a project without a lockfile
                                    npm ERR! audit Try creating one first with: npm i --package-lock-only
                                    
                                    
                                    apollon77 1 Reply Last reply Reply Quote 0
                                    • apollon77
                                      apollon77 @Diginix last edited by

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

                                      iobroker ALL=(ALL) NOPASSWD: ALL

                                      Dann ist irgendwas manuell oder von nem "Uralten" Installer/Fixer 🙂 inzwischen bei weitem nicht mehr so.

                                      Zu bluethooth-hci-socket ist meine Vermutung (recht eindeutig) das irgendeine Adapterversion installiert ist die noch ein altes Modul nutzt und daher per se nicht nodejs 10 kompatibel ost. Also Kompatible Adapterversion installieren. Welche das ist wäre rauszufinden. Du kannst versuchen "npm install @abandonware/bluetooth-hci-socket" im ioBroker Verzeichnis auszuühren, das sollte eine kompatible version installieren ... Auswirkungen weiter bei Adaptern: unklar. sollte aber nichts ändern ausser das der betroffenene Adapter nicht mehr tut. Den dann ggf updaten und sollte wieder tun.

                                      Zu dem anderen Fehler bei npm audit: ioBroker schaltet standard,äßiog die package-lock aus, daher kann die nicht aktuell sein. Und damit ist audit "blödsinn" und wird Dein Problem auch nicht lösen.
                                      Und das hier schon @abandonware/noble geladen werden will zeigt an sich das radar vllt was damit zu tun hat, Du könntest auch versuchen die Versionen von radar2 und ble neu "drüber" zu installieren um zu sehen ob es danach besser ist.
                                      Also irgendwie hat es scheinbar bei dir einen komischen mix und Du könntest mit etwas Zeit die Option c oder d von oben wählen. Danach hast Du in jedem Fall eine klare struktur.
                                      Dazu empfehle ich aber js-controller 1.5.11 weil bei der 1.4 hier bei dem version alle Adapter mit seinen "latest" versionen neu installiert werden und nicht die eigentlich aktuell eingerichteten Versionen respektiert werden.

                                      crunchip Diginix 2 Replies Last reply Reply Quote 1
                                      • crunchip
                                        crunchip Forum Testing Most Active @apollon77 last edited by

                                        @apollon77 den radar2 und ble hatte ich einfach in der neuesten version drüber installiert, dann waren die Fehler weg

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

                                          @crunchip Aktuell bei iobroker nix wirkliches - es sei denn man hat eine Installation wo von vorn herein package-lock aktiviert war

                                          1 Reply Last reply Reply Quote 0
                                          • crunchip
                                            crunchip Forum Testing Most Active @Stabilostick last edited by

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

                                            Nachdem der Befehl abgesetzt wurde, fragt das Programm, ob in den Ordner "hinabgestiegen" werden soll (sofern es ein tieferer Unterordner ist) und ob der (schreibgeschützte) Ordner wirklich gelöscht werden soll - beides bestätigt man mit "Ja" (j) oder "Yes" (y).

                                            mach gerade einen Versuch mit variante c, jedoch wurde nichts gefragt.
                                            mal sehn was dabei raus kommt, wenn alles wieder geladen ist.

                                            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

                                            1.0k
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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