Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Probleme nach Update node.js

    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

    UNSOLVED Probleme nach Update node.js

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Andy200877 last edited by

      Ich habe versucht meinen IOBroker mal wieder auf den neusten Stand zu bekommen. Grundsätzlich läuft auch alles, jedoch bekomme ich nach dem Update von Node.js beim "npm rebuild" einen Error angezeigt...

      > serialport@6.2.2 install /opt/iobroker/node_modules/cul/node_modules/serialport
      > prebuild-install || node-gyp rebuild
      
      prebuild-install WARN install No prebuilt binaries found (target=12.18.0 runtime=node arch=x64 platform=linux)
      make: Entering directory '/opt/iobroker/node_modules/cul/node_modules/serialport/build'
        CXX(target) Release/obj.target/serialport/src/serialport.o
      ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/serialport.cpp:41:48: error: no matching function for call to ‘v8::Value::ToString()’
         v8::String::Utf8Value path(info[0]->ToString());
                                                      ^
      In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67:0,
                       from ../../../../nan/nan.h:54,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2668:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
         V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                                  ^~~~~~~~
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2668:44: note:   candidate expects 1 argument, 0 provided
      In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:27,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67,
                       from ../../../../nan/nan.h:54,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2684:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                       Local<String> ToString(Isolate* isolate) const);
                                     ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2684:31: note:   candidate expects 1 argument, 0 provided
                       Local<String> ToString(Isolate* isolate) const);
                                     ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/serialport.cpp:48:53: error: no matching function for call to ‘v8::Value::ToObject()’
         v8::Local<v8::Object> options = info[1]->ToObject();
                                                           ^
      In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67:0,
                       from ../../../../nan/nan.h:54,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
         V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                                  ^~~~~~~~
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
      In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:27,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67,
                       from ../../../../nan/nan.h:54,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
                       Local<Object> ToObject(Isolate* isolate) const);
                                     ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
                       Local<Object> ToObject(Isolate* isolate) const);
                                     ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
      ../src/serialport.cpp:95:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(2, argv);
                                    ^
      In file included from ../src/./serialport.h:6:0,
                       from ../src/serialport.cpp:1:
      ../../../../nan/nan.h:1740:3: note: declared here
         Call(int argc, v8::Local<v8::Value> argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/serialport.cpp:113:53: error: no matching function for call to ‘v8::Value::ToObject()’
         v8::Local<v8::Object> options = info[1]->ToObject();
                                                           ^
      In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67:0,
                       from ../../../../nan/nan.h:54,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
         V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                                  ^~~~~~~~
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
      In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:27,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67,
                       from ../../../../nan/nan.h:54,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
                       Local<Object> ToObject(Isolate* isolate) const);
                                     ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
                       Local<Object> ToObject(Isolate* isolate) const);
                                     ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
      ../src/serialport.cpp:150:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(1, argv);
                                    ^
      In file included from ../src/./serialport.h:6:0,
                       from ../src/serialport.cpp:1:
      ../../../../nan/nan.h:1740:3: note: declared here
         Call(int argc, v8::Local<v8::Value> argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
      ../src/serialport.cpp:188:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(1, argv);
                                    ^
      In file included from ../src/./serialport.h:6:0,
                       from ../src/serialport.cpp:1:
      ../../../../nan/nan.h:1740:3: note: declared here
         Call(int argc, v8::Local<v8::Value> argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
      ../src/serialport.cpp:231:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(1, argv);
                                    ^
      In file included from ../src/./serialport.h:6:0,
                       from ../src/serialport.cpp:1:
      ../../../../nan/nan.h:1740:3: note: declared here
         Call(int argc, v8::Local<v8::Value> argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/serialport.cpp:250:53: error: no matching function for call to ‘v8::Value::ToObject()’
         v8::Local<v8::Object> options = info[1]->ToObject();
                                                           ^
      In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67:0,
                       from ../../../../nan/nan.h:54,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
         V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                                  ^~~~~~~~
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2672:44: note:   candidate expects 1 argument, 0 provided
      In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:27,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67,
                       from ../../../../nan/nan.h:54,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
                       Local<Object> ToObject(Isolate* isolate) const);
                                     ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:2686:31: note:   candidate expects 1 argument, 0 provided
                       Local<Object> ToObject(Isolate* isolate) const);
                                     ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
      ../src/serialport.cpp:285:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(1, argv);
                                    ^
      In file included from ../src/./serialport.h:6:0,
                       from ../src/serialport.cpp:1:
      ../../../../nan/nan.h:1740:3: note: declared here
         Call(int argc, v8::Local<v8::Value> argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t*)’:
      ../src/serialport.cpp:329:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
           results->Set(Nan::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
                                                                                                      ^
      In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:27,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67,
                       from ../../../../nan/nan.h:54,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:3499:22: note: declared here
                       bool Set(Local<Value> key, Local<Value> value));
                            ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/serialport.cpp:330:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
           results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr));
                                                                                                      ^
      In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:27,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67,
                       from ../../../../nan/nan.h:54,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:3499:22: note: declared here
                       bool Set(Local<Value> key, Local<Value> value));
                            ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/serialport.cpp:331:96: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
           results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
                                                                                                      ^
      In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:27,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67,
                       from ../../../../nan/nan.h:54,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:3499:22: note: declared here
                       bool Set(Local<Value> key, Local<Value> value));
                            ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/serialport.cpp:336:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(2, argv);
                                    ^
      In file included from ../src/./serialport.h:6:0,
                       from ../src/serialport.cpp:1:
      ../../../../nan/nan.h:1740:3: note: declared here
         Call(int argc, v8::Local<v8::Value> argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t*)’:
      ../src/serialport.cpp:378:106: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
           results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
                                                                                                                ^
      In file included from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8-internal.h:14:0,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:27,
                       from /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:67,
                       from ../../../../nan/nan.h:54,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8.h:3499:22: note: declared here
                       bool Set(Local<Value> key, Local<Value> value));
                            ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/serialport.cpp:383:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(2, argv);
                                    ^
      In file included from ../src/./serialport.h:6:0,
                       from ../src/serialport.cpp:1:
      ../../../../nan/nan.h:1740:3: note: declared here
         Call(int argc, v8::Local<v8::Value> argv[]) const {
         ^~~~
      ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
      ../src/serialport.cpp:424:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
         data->callback.Call(1, argv);
                                    ^
      In file included from ../src/./serialport.h:6:0,
                       from ../src/serialport.cpp:1:
      ../../../../nan/nan.h:1740:3: note: declared here
         Call(int argc, v8::Local<v8::Value> argv[]) const {
         ^~~~
      ../src/serialport.cpp: At global scope:
      ../src/serialport.cpp:460:17: error: variable or field ‘init’ declared void
         void init(v8::Handle<v8::Object> target) {
                       ^~~~~~
      ../src/serialport.cpp:460:13: error: ‘Handle’ is not a member of ‘v8’
         void init(v8::Handle<v8::Object> target) {
                   ^~
      ../src/serialport.cpp:460:34: error: expected primary-expression before ‘>’ token
         void init(v8::Handle<v8::Object> target) {
                                        ^
      ../src/serialport.cpp:460:36: error: ‘target’ was not declared in this scope
         void init(v8::Handle<v8::Object> target) {
                                          ^~~~~~
      In file included from ../../../../nan/nan.h:54:0,
                       from ../src/./serialport.h:6,
                       from ../src/serialport.cpp:1:
      ../src/serialport.cpp:485:25: error: ‘init’ was not declared in this scope
       NODE_MODULE(serialport, init);
                               ^
      /home/iobroker/.cache/node-gyp/12.18.0/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
             (node::addon_register_func) (regfunc),                          \
                                          ^~~~~~~
      ../src/serialport.cpp:485:1: note: in expansion of macro ‘NODE_MODULE’
       NODE_MODULE(serialport, init);
       ^~~~~~~~~~~
      serialport.target.mk:114: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
      make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
      make: Leaving directory '/opt/iobroker/node_modules/cul/node_modules/serialport/build'
      gyp ERR! build error
      gyp ERR! stack Error: `make` failed with exit code: 2
      gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
      gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
      gyp ERR! System Linux 4.19.0-0.bpo.6-amd64
      gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
      gyp ERR! cwd /opt/iobroker/node_modules/cul/node_modules/serialport
      gyp ERR! node -v v12.18.0
      gyp ERR! node-gyp -v v5.1.0
      gyp ERR! not ok
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! serialport@6.2.2 install: `prebuild-install || node-gyp rebuild`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the serialport@6.2.2 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!     /home/iobroker/.npm/_logs/2020-06-13T08_37_54_943Z-debug.log
      

      Die Log-Datei habe ich hier auch mal angehangen....
      2020-06-13T08_20_24_683Z-debug.log

      Kann mir jemand sagen wie ich diesen Fehler beseitigen kann ?

      Systemdata Bitte Ausfüllen
      Hardwaresystem: Intel(R) Core(TM) i3-4130
      Arbeitsspeicher: 16GB
      Festplattenart: SSD
      Betriebssystem: Debian
      Node-Version: v12.18.0
      Nodejs-Version: v12.18.0
      NPM-Version: 6.14.4
      Installationsart: Manuell
      Image genutzt: Nein
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Andy200877 last edited by

        @Andy200877
        node gerade im System?

        which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
        
        1 Reply Last reply Reply Quote 0
        • A
          Andy200877 last edited by

          root@NAS:~# which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
          /usr/bin/nodejs
          v12.18.0
          /usr/bin/node
          v12.18.0
          /usr/bin/npm
          6.14.4
          nodejs:
            Installed: 12.18.0-1nodesource1
            Candidate: 12.18.0-1nodesource1
            Version table:
           *** 12.18.0-1nodesource1 500
                  500 https://deb.nodesource.com/node_12.x stretch/main amd64 Packages
                  100 /var/lib/dpkg/status
               8.11.1~dfsg-2~bpo9+1 100
                  100 http://httpredir.debian.org/debian stretch-backports/main amd64 Packages
               4.8.2~dfsg-1 500
                  500 http://ftp.de.debian.org/debian stretch/main amd64 Packages
          root@NAS:~#
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Andy200877 last edited by

            @Andy200877
            Nicht als root rumhampeln.
            Als user:

            iobroker fix
            cd /opt/iobroker
            npm cache clean --force
            iobroker update 
            iobroker upgrade
            iobroker rebuild
            
            1 Reply Last reply Reply Quote 0
            • A
              Andy200877 last edited by Andy200877

              Ich habe mir vorher einen neuen User angelegt, mit ssh und sudo rechten.

              iobroker fix, update, upgrade usw. läuft ohne Fehler durch.

              Bei "iobroker rebuild" bricht er mir relativ schnell ab :

              andreas@NAS:/opt/iobroker$ iobroker rebuild
              /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:487
                          if (name.indexOf('@') !== -1) {
                                   ^
              
              TypeError: Cannot read property 'indexOf' of undefined
                  at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:487:22)
                  at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2601:5)
                  at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24)
                  at Module._compile (internal/modules/cjs/loader.js:1138:30)
                  at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
                  at Module.load (internal/modules/cjs/loader.js:986:32)
                  at Function.Module._load (internal/modules/cjs/loader.js:879:14)
                  at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
                  at internal/main/run_main_module.js:17:47
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Andy200877 last edited by

                @Andy200877
                Da klemmt es irgendwo tiefer, scheint mir.
                Ich würde mal versuchen den js-controller neuzuinstallieren.

                cd /opt/iobroker
                sudo -H -u iobroker npm install iobroker.js-controller
                
                1 Reply Last reply Reply Quote 0
                • A
                  Andy200877 last edited by

                  js-controller als user neu installiert...

                  andreas@NAS:/opt/iobroker$ sudo -H -u iobroker npm install iobroker.js-controlle                                                            r
                  [sudo] password for andreas:
                  npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/31                           42
                  
                  > iobroker.js-controller@3.1.5 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                  > node lib/preinstallCheck.js
                  
                  NPM version: 6.14.4
                  
                  > iobroker.js-controller@3.1.5 install /opt/iobroker/node_modules/iobroker.js-controller
                  > node iobroker.js setup first
                  
                  Existing earlier generated certificate is invalid (too old, validity longer then 345 days or keylength too short). Generating new Certificate!
                  object system.certificates updated
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@^1.0.7 (node_modules/iobroker.info/node_modules/osx-temperature-sensor):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                  
                  + iobroker.js-controller@3.1.5
                  updated 2 packages in 21.034s
                  
                  43 packages are looking for funding
                    run `npm fund` for details
                  
                  andreas@NAS:/opt/iobroker$
                  

                  Danach aber der gleiche Fehler wie vorher...

                  tobowers created this issue in request/request

                  closed Error on piping a request to a destination #31

                  1 Reply Last reply Reply Quote 0
                  • D
                    Djpredator69 last edited by Djpredator69

                    hi habe auch probleme nach update mit dem serialport@6.2.2 unter
                    Windows server 2016
                    Node.js
                    v12.18.0
                    NPM
                    6.14.5

                    i hatte den WM-BUS installiert duch den fehler mit dem serial lässt der sich nicht mehr starten oder neu installieren!

                    Sans titre.png

                    1 Reply Last reply Reply Quote 0
                    • A
                      Andy200877 last edited by

                      Niemand eine Idee ? Oder muss ich wirklich das komplette System neu aufsetzen ?

                      G D 2 Replies Last reply Reply Quote 0
                      • G
                        gifftstaub @Andy200877 last edited by

                        @Andy200877

                        link text

                        Vllt hilft der Link weiter

                        Lg

                        1 Reply Last reply Reply Quote 0
                        • D
                          Djpredator69 @Andy200877 last edited by Djpredator69

                          @Andy200877

                          es scheint dass serialport@6.2.2 nur unter Node.js v10 läuft und nicht unter der v12
                          habe ein downdrade auf 10 gemacht da läuft alles
                          bei einem update auf 12 wieder ,taucht das problem wieder auf

                          finde keine lösung , der WM-bus adapter muss umgeschrieben werden damit er die neuste serialport
                          lib nutzt und nicht die 6.2.2, die ist leider veraltet

                          v522533 Thomas Braun 2 Replies Last reply Reply Quote 0
                          • v522533
                            v522533 @Djpredator69 last edited by

                            @Djpredator69

                            kann zwar bei dem problem nicht helfen, ich kann aber sagen dass bei mir alles unter node 12.x.x problemlos läuft. das kann also nicht das problem sein.

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

                              @Djpredator69 sagte in Probleme nach Update node.js:

                              @Andy200877

                              es scheint dass serialport@6.2.2 nur unter Node.js v10 läuft und nicht unter der v12
                              habe ein downdrade auf 10 gemacht da läuft alles
                              bei einem update auf 12 wieder ,taucht das problem wieder auf

                              finde keine lösung , der WM-bus adapter muss umgeschrieben werden damit er die neuste serialport
                              lib nutzt und nicht die 6.2.2, die ist leider veraltet

                              Mal den serialport gegen node12 neugebaut?

                              1 Reply Last reply Reply Quote 0
                              • D
                                Djpredator69 @v522533 last edited by

                                @v522533

                                hast du auch den WM-bus am laufen

                                denn ich habe nur mit diesem adapter probleme alles andere läuft auch bei mir super

                                v522533 1 Reply Last reply Reply Quote 0
                                • v522533
                                  v522533 @Djpredator69 last edited by

                                  @Djpredator69

                                  ne den habe ich nicht am laufen

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    Djpredator69 last edited by

                                    habe es jetzt am laufen

                                    habe den adapter vom git installiert dann per hand die instanz installiert jetzt läuft es

                                    wenn ich aber das ganze über iobroker installiere kommen nur die oben genanten fehler

                                    ich teste den adapter jetzt ob er auch 100% läuft

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

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    910
                                    Online

                                    31.9k
                                    Users

                                    80.1k
                                    Topics

                                    1.3m
                                    Posts

                                    node.js update serialport@6.2.2
                                    5
                                    16
                                    1421
                                    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