Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Node JS Update von v8 auf V10 schlägt fehl

    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

    Node JS Update von v8 auf V10 schlägt fehl

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

      Hallo,

      ich will auf meiner Debian 9 VM für IOBroker die NodeJS Version von v8.17.0 auf v10 aktualisieren und laufe dabei leider in jede Menge fehler welche ich nicht gelöst bekomme.

      Ich bin die einzelnen Schritte des HowTo aus diesem Forum durchgegangen:

      *cd /opt/iobroker
      * iobroker backup
      * iobroker stop
      * curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
      * sudo apt-get install -y nodejs
      * curl -sL https://iobroker.net/fix.sh | bash -
      

      Bis hierhin läuft soweit alles durch außer das es eine Fehlermeldung beim stoppen des IOBrokers gibt:

      Stopping iobroker controller daemon...
      iobroker controller daemon stopped.
      fs.js:1123
        return binding.chmod(pathModule._makeLong(path), modeNum(mode));
                       ^
      
      Error: ENOENT: no such file or directory, chmod '/opt/iobroker/node_modules/iobroker.js-controller/lib/../killall.sh'
          at Object.fs.chmodSync (fs.js:1123:18)
          at Daemon.daemon.on (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:286:32)
          at emitOne (events.js:121:20)
          at Daemon.emit (events.js:211:7)
          at Daemon.<anonymous> (/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:267:14)
          at Daemon._tryKill (/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:277:23)
          at ontimeout (timers.js:498:11)
          at tryOnTimeout (timers.js:323:5)
          at Timer.listOnTimeout (timers.js:290:5)
      

      Beim durchlaufen vom "npm rebuild" kommen die ersten Fehler:

      npm rebuild
      
      > iobroker.javascript@4.1.12 postinstall /opt/iobroker/node_modules/iobroker.javascript
      > node ./install/installTypings.js
      
      Installing NodeJS typings...
      latest @types: 13, installed node: 10
      [?25l[..................] / : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] | : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] - : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] | : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] - : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] - : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] \ : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] - : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] \ : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] \ : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] \ : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] - : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] | : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] \ : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] \ : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] / : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] \ : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] / : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] / : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] | : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] / : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] - : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] | : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] | : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      [..................] \ : info lifecycle iobroker.javascript@4.1.12~postinstall: iobroker.javascript@4.1.12
      
      [?25h
      > iobroker.vis@1.2.2 install /opt/iobroker/node_modules/iobroker.vis
      > node main.js --install
      
      [?25l[..................] / : info lifecycle iobroker.vis@1.2.2~install: iobroker.vis@1.2.2
      [..................] | : info lifecycle iobroker.vis@1.2.2~install: iobroker.vis@1.2.2
      [..................] - : info lifecycle iobroker.vis@1.2.2~install: iobroker.vis@1.2.2
      [..................] / : info lifecycle iobroker.vis@1.2.2~install: iobroker.vis@1.2.2
      [..................] \ : info lifecycle iobroker.vis@1.2.2~install: iobroker.vis@1.2.2
      [..................] | : info lifecycle iobroker.vis@1.2.2~install: iobroker.vis@1.2.2
      [..................] | : info lifecycle iobroker.vis@1.2.2~install: iobroker.vis@1.2.2
      [..................] \ : info lifecycle iobroker.vis@1.2.2~install: iobroker.vis@1.2.2
      [..................] - : info lifecycle iobroker.vis@1.2.2~install: iobroker.vis@1.2.2
      [..................] - : info lifecycle iobroker.vis@1.2.2~install: iobroker.vis@1.2.2
      [..................] - : info lifecycle iobroker.vis@1.2.2~install: iobroker.vis@1.2.2
      [..................] / : info lifecycle iobroker.vis@1.2.2~install: iobroker.vis@1.2.2
      
      [?25h
      > diskusage@0.2.4 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
      ../src/main.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetDiskUsage(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/main.cpp:26:71: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
               DiskUsage result = GetDiskUsage(*v8::String::Utf8Value(info[0]));
      
                                                                             ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../../nan/nan.h:52,
                       from ../src/main.cpp:3:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2892:28: note: declared here
                         explicit Utf8Value(Local<v8::Value> obj));
                                  ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
        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
      [?25l[..................] - : info lifecycle diskusage@0.2.4~install: diskusage@0.2.4
      [..................] - : info lifecycle diskusage@0.2.4~install: diskusage@0.2.4
      [..................] / : info lifecycle diskusage@0.2.4~install: diskusage@0.2.4
      
      [?25h
      > ursa-optional@0.9.8 install /opt/iobroker/node_modules/ursa-optional
      > node rebuild.js
      
      [?25l[..................] | : info lifecycle ursa-optional@0.9.8~install: ursa-optional@0.9.8
      [..................] - : info lifecycle ursa-optional@0.9.8~install: ursa-optional@0.9.8
      [..................] | : info lifecycle ursa-optional@0.9.8~install: ursa-optional@0.9.8
      [..................] - : info lifecycle ursa-optional@0.9.8~install: ursa-optional@0.9.8
      
      [?25h
      > iobroker.js-controller@1.5.3 preinstall /opt/iobroker/node_modules/iobroker.js-controller
      > node lib/preinstallCheck.js
      
      NPM version: 6.13.4
      npm version >= 5: disabling package-lock
      
      > iobroker.js-controller@1.5.3 install /opt/iobroker/node_modules/iobroker.js-controller
      > node iobroker.js setup first
      
      [?25l[..................] | : info lifecycle iobroker.js-controller@1.5.3~install: iobroker.js-controller@1.5.3
      [..................] / : info lifecycle iobroker.js-controller@1.5.3~install: iobroker.js-controller@1.5.3
      
      [?25h
      > unix-dgram@0.2.3 install /opt/iobroker/node_modules/unix-dgram
      > node-gyp rebuild
      
      make: Verzeichnis „/opt/iobroker/node_modules/unix-dgram/build“ wird betreten
        CXX(target) Release/obj.target/unix_dgram/src/unix_dgram.o
      In file included from ../node_modules/nan/nan.h:190:0,
                       from ../src/unix_dgram.cc:5:
      ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
      ../node_modules/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
         return obj->ForceSet(GetCurrentContext(), key, value, attribs);
                     ^~~~~~~~
      In file included from ../src/unix_dgram.cc:5:0:
      ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
      ../node_modules/nan/nan.h:817:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
               v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                                  ^
      In file included from ../node_modules/nan/nan.h:47:0,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/node.h:177:50: note: declared here
                       NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                        ^
      /root/.cache/node-gyp/10.18.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
           __attribute__((deprecated(message))) declarator
                                                ^~~~~~~~~~
      In file included from ../src/unix_dgram.cc:5:0:
      ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
      ../node_modules/nan/nan.h:831:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
               v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                                    ^
      In file included from ../node_modules/nan/nan.h:47:0,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/node.h:170:50: note: declared here
                       NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                        ^
      /root/.cache/node-gyp/10.18.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
           __attribute__((deprecated(message))) declarator
                                                ^~~~~~~~~~
      In file included from ../src/unix_dgram.cc:5:0:
      ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
      ../node_modules/nan/nan.h:845:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
               v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                                    ^
      In file included from ../node_modules/nan/nan.h:47:0,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/node.h:163:50: note: declared here
                       NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                        ^
      /root/.cache/node-gyp/10.18.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
           __attribute__((deprecated(message))) declarator
                                                ^~~~~~~~~~
      In file included from ../src/unix_dgram.cc:5:0:
      ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
      ../node_modules/nan/nan.h:1463:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
           ));
           ^
      In file included from ../node_modules/nan/nan.h:47:0,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/node.h:177:50: note: declared here
                       NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                        ^
      /root/.cache/node-gyp/10.18.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
           __attribute__((deprecated(message))) declarator
                                                ^~~~~~~~~~
      ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Socket(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/unix_dgram.cc:189:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         domain      = info[0]->Int32Value();
                                           ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2478:46: note: declared here
         V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                    ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/unix_dgram.cc:190:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         type        = info[1]->Int32Value();
                                           ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2478:46: note: declared here
         V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                    ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/unix_dgram.cc:191:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         protocol    = info[2]->Int32Value();
                                           ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2478:46: note: declared here
         V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                    ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Bind(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/unix_dgram.cc:230:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         fd = info[0]->Int32Value();
                                  ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2478:46: note: declared here
         V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                    ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/unix_dgram.cc:231:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
         String::Utf8Value path(info[1]);
                                       ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2892:28: note: declared here
                         explicit Utf8Value(Local<v8::Value> obj));
                                  ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::SendTo(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/unix_dgram.cc:258:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         fd = info[0]->Int32Value();
                                  ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2478:46: note: declared here
         V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                    ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/unix_dgram.cc:259:27: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         buf = info[1]->ToObject();
                                 ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/node.h:63:0,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:10046:15: note: declared here
       Local<Object> Value::ToObject() const {
                     ^~~~~
      ../src/unix_dgram.cc:260:33: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         offset = info[2]->Uint32Value();
                                       ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2477:47: note: declared here
         V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
                                                     ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/unix_dgram.cc:261:33: warning: ‘uint32_t v8::Value::Uint32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         length = info[3]->Uint32Value();
                                       ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2477:47: note: declared here
         V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
                                                     ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/unix_dgram.cc:262:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
         String::Utf8Value path(info[4]);
                                       ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2892:28: note: declared here
                         explicit Utf8Value(Local<v8::Value> obj));
                                  ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Send(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/unix_dgram.cc:302:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         fd = info[0]->Int32Value();
                                  ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2478:46: note: declared here
         V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                    ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/unix_dgram.cc:303:27: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         buf = info[1]->ToObject();
                                 ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/node.h:63:0,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:10046:15: note: declared here
       Local<Object> Value::ToObject() const {
                     ^~~~~
      ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Connect(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/unix_dgram.cc:340:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         fd = info[0]->Int32Value();
                                  ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2478:46: note: declared here
         V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                    ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/unix_dgram.cc:341:33: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
         String::Utf8Value path(info[1]);
                                       ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2892:28: note: declared here
                         explicit Utf8Value(Local<v8::Value> obj));
                                  ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      ../src/unix_dgram.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Close(Nan::NAN_METHOD_ARGS_TYPE)’:
      ../src/unix_dgram.cc:361:28: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         fd = info[0]->Int32Value();
                                  ^
      In file included from /root/.cache/node-gyp/10.18.0/include/node/v8.h:26:0,
                       from /root/.cache/node-gyp/10.18.0/include/node/node.h:63,
                       from ../node_modules/nan/nan.h:47,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.18.0/include/node/v8.h:2478:46: note: declared here
         V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                    ^
      /root/.cache/node-gyp/10.18.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
         declarator __attribute__((deprecated(message)))
         ^~~~~~~~~~
      unix_dgram.target.mk:103: die Regel für Ziel „Release/obj.target/unix_dgram/src/unix_dgram.o“ scheiterte
      make: *** [Release/obj.target/unix_dgram/src/unix_dgram.o] Fehler 1
      make: Verzeichnis „/opt/iobroker/node_modules/unix-dgram/build“ wird verlassen
      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:191: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 4.9.0-11-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/unix-dgram
      gyp ERR! node -v v10.18.0
      gyp ERR! node-gyp -v v5.0.5
      gyp ERR! not ok 
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! unix-dgram@0.2.3 install: `node-gyp rebuild`
      npm ERR! Exit status 1
      npm ERR! 
      npm ERR! Failed at the unix-dgram@0.2.3 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/2020-01-05T12_00_12_356Z-debug.log
      

      Entsprechend der Anleitung habe ich dann das Reinstall Skript durchlaufen lassen was ebenfalls eine Menge an Fehlern ausgibt:

      sudo ./reinstall.sh
      internal/modules/cjs/loader.js:638
          throw err;
          ^
      
      Error: Cannot find module '/opt/iobroker/lib/setup.js'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
          at Function.Module._load (internal/modules/cjs/loader.js:562:25)
          at Module.require (internal/modules/cjs/loader.js:692:17)
          at require (internal/modules/cjs/helpers.js:25:18)
          at Object.<anonymous> (/opt/iobroker/iobroker:2:1)
          at Module._compile (internal/modules/cjs/loader.js:778:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
          at Module.load (internal/modules/cjs/loader.js:653:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
          at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      /opt/iobroker/node_modules
      [?25l[..................] / rollbackFailedOptional: verb npm-session 6debd37f5d7455dd
      [..................] / rollbackFailedOptional: verb npm-session 6debd37f5d7455dd
      [..................] / rollbackFailedOptional: verb npm-session 6debd37f5d7455dd
      [..................] / rollbackFailedOptional: verb npm-session 6debd37f5d7455dd
      [..................] / rollbackFailedOptional: verb npm-session 6debd37f5d7455dd
      [..................] / rollbackFailedOptional: verb npm-session 6debd37f5d7455dd
      [..................] / rollbackFailedOptional: verb npm-session 6debd37f5d7455dd
      [..................] - rollbackFailedOptional: verb npm-session 6debd37f5d7455dd
      
      
      
      [?25hnpm WARN ELOOP: too many symbolic links encountered, stat '/opt/iobroker/node_modules/iobroker.type-detector'
      npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
      npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none is installed. You must install peer dependencies yourself.
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules/bufferutil):
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install: `node-gyp rebuild`
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 (node_modules/utf-8-validate):
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 install: `node-gyp rebuild`
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
      
      + iobroker.web@2.4.10
      added 1 package from 1 contributor and audited 3494 packages in 6.035s
      
      16 packages are looking for funding
        run `npm fund` for details
      
      found 62 vulnerabilities (43 low, 19 high)
        run `npm audit fix` to fix them, or `npm audit` for details
      [?25l[            ......] / postinstall: sill install printInstalled
      
      [?25hDONE iobroker.web
      chmod: Zugriff auf 'iobroker.type-detector' nicht möglich: Zu viele Ebenen aus symbolischen Links
      internal/modules/cjs/loader.js:638
          throw err;
          ^
      
      Error: Cannot find module '/opt/iobroker/lib/setup.js'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
          at Function.Module._load (internal/modules/cjs/loader.js:562:25)
          at Module.require (internal/modules/cjs/loader.js:692:17)
          at require (internal/modules/cjs/helpers.js:25:18)
          at Object.<anonymous> (/opt/iobroker/iobroker:2:1)
          at Module._compile (internal/modules/cjs/loader.js:778:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
          at Module.load (internal/modules/cjs/loader.js:653:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
          at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      
      
      

      Ich habe bereits nach den verschiedenen Fehlermeldungen gesucht aber konnte keine Lösung für das bzw. die Probleme finden. Das Log vom Reinstall Skript musste ich massiv kürzen damit ich es hier posten konnte.
      Hat jemand von euch eine Idee?

      wendy2702 3 Replies Last reply Reply Quote 0
      • S
        samsungfreak last edited by

        Hallo *,

        ich habe heute erneut versucht auf die Version 10 zu aktualisieren. Leider weiterhin ohne Erfolg...die gleichen Fehlern treten auf wie oben im ersten Beitrag gepostet.
        Hat jemand noch eine Idee für mich?

        1 Reply Last reply Reply Quote 0
        • wendy2702
          wendy2702 @samsungfreak last edited by

          @samsungfreak sagte in Node JS Update von v8 auf V10 schlägt fehl:

          *cd /opt/iobroker

          • iobroker backup
          • iobroker stop
          • curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
          • sudo apt-get install -y nodejs
          • curl -sL https://iobroker.net/fix.sh | bash -

          Das sind eigentlich nicht wirklich die richtigen Update Schritte.

          Alte vorhandene Node/NodeJS Versionen sollten vorher entfernt werden.

          Von hier https://www.iobroker.net/#de/documentation/install/linux.md

          Installation Node.js
          Die folgende Anleitung ist auch bei einem Downgrade zu verwenden.
          
          Die momentan empfohlene Version ist node 10.x; mit js-controller 1.5.7 auch node 8.x, dann in Schritt 4.1. die “10.x” gegen 8.x” austauschen.
          
          Debian Buster erfordert node.js v10.x!!
          
          ungerade nodejs-Versionen sind grundsätzlich nicht empfohlen, da es sich um Entwicklerversionen handelt.
          
          System-Update: sudo apt-get update && sudo apt-get upgrade
          
          Je nach verwendetem OS kann das Update auch mittels sudo apt update && sudo apt upgrade ausgeführt werden.
          
          Auf bereits vorhandene Versionen von nodejs und npm testen.
          
          node -v
          
          nodejs -v
          
          npm -v
          
          nur wenn ALLE diese Befehle kein Ergebnis bringen (also keine Versionsnummer mehr anzeigen) mit Schritt 4. dieses Abschnittes weitermachen, sonst, oder wenn die Version nicht der gewünschten entspricht folgendes vorher ausführen:
          
          Die existierenden node & node.js Versionen deinstallieren
          
          sudo apt-get --purge remove node
          
          sudo apt-get --purge remove nodejs
          
          sudo apt-get autoremove
          
          sudo reboot
          
          Node.js neu installieren für Linux und Raspberry 2/3
          
          curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
          
          sudo apt install -y nodejs
          
          sudo reboot
          
          Nach der Installation müssen die Kommandos “node -v” und “nodejs -v” die gleiche Versionsnummer zurückgeben.
          
          Falls node -v eine Fehlermeldung wie “nicht gefunden” erzeugt, dann bitte ein
          
          sudo ln -s /usr/local/bin/nodejs /usr/bin/node an der Konsole ausführen.
          
          Sind die Versionen unterschiedlich, bitte nochmals den Abschnitt Installation Node.js abarbeiten
          
          Als letzte Überprüfung bitte noch die Version von npm mittels npm -v überprüfen.
          
          Ergibt dies eine Version < 6, bitte noch mit sudo -H npm install -g npm@6 ein npm-Update durchführen
          
          Homoran 1 Reply Last reply Reply Quote 1
          • Homoran
            Homoran Global Moderator Administrators @wendy2702 last edited by

            @wendy2702 sagte in Node JS Update von v8 auf V10 schlägt fehl:

            Das sind eigentlich nicht wirklich die richtigen Update Schritte.

            ich gehe schon davon aus, dass sich @samsungfreak an dieses Tutorial gehalten hat:
            https://forum.iobroker.net/topic/22867/how-to-node-js-für-iobroker-richtig-updaten

            komplettes Entfernen ist sicherlich nciht falsch, steht dort aber IMHO nicht drin.

            wendy2702 1 Reply Last reply Reply Quote 0
            • wendy2702
              wendy2702 @Homoran last edited by

              @Homoran OK.

              Das kannte ich nicht.

              Bisschen widersprüchlich dann zwischen Tutorial und iobroker Doku.

              Ich habe bisher immer die alte Version entfernt und nie Probleme gehabt.

              Homoran 1 Reply Last reply Reply Quote 0
              • wendy2702
                wendy2702 @samsungfreak last edited by

                @samsungfreak sagte in Node JS Update von v8 auf V10 schlägt fehl:

                Bis hierhin läuft soweit alles durch außer das es eine Fehlermeldung beim stoppen des IOBrokers gibt:

                Dann muss ich nochmal Fragen was das genau bedeutet?

                An welcher Stelle kommt dieser Fehler das iobroker sich nicht stoppen lässt?

                Bei

                iobroker stop
                

                oder bei

                curl -sL https://iobroker.net/fix.sh | bash -
                
                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @wendy2702 last edited by

                  @wendy2702 sagte in Node JS Update von v8 auf V10 schlägt fehl:

                  Das kannte ich nicht.

                  Der Link dazu befindet sich im Forum rechts im roten Kasten 😉

                  @wendy2702 sagte in Node JS Update von v8 auf V10 schlägt fehl:

                  Bisschen widersprüchlich dann zwischen Tutorial und iobroker Doku.

                  Beim Update geht man davon aus, dass die Erstinstallation nach Doku ausgeführt wurde und keine fremden Repos mehr aktiv sind.

                  Bei der Erstinstallation muss man unbedingt prüfen ob die Distro noch ein eigenes Repo für nodejs mitbringt

                  @wendy2702 sagte in Node JS Update von v8 auf V10 schlägt fehl:

                  Ich habe bisher immer die alte Version entfernt und nie Probleme gehabt.

                  Halte ich genau so!

                  1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @wendy2702 last edited by

                    @wendy2702 sagte in Node JS Update von v8 auf V10 schlägt fehl:

                    An welcher Stelle kommt dieser Fehler das iobroker sich nicht stoppen lässt?

                    und vor allem welcher Fehler?
                    ggf. da schon den Fixer drüber bügeln und/oder mit systemctl stoppen.

                    Aber nicht trotz Warnung weitermachen!

                    1 Reply Last reply Reply Quote 0
                    • wendy2702
                      wendy2702 @samsungfreak last edited by wendy2702

                      @samsungfreak sagte in Node JS Update von v8 auf V10 schlägt fehl:

                      > ERR! node -v v10.18.0                                                                                                                                                                            
                      

                      Ich gehe mal davon aus das dein Node Upgrade funktioniert hat aber vielleicht leider nicht die richtige NPM Version.

                      Was kommt bei:

                      node -v
                      npm -v
                      
                      1 Reply Last reply Reply Quote 0
                      • S
                        samsungfreak last edited by

                        @wendy2702 @Homoran : Vielen Dank für euren Antworten!

                        Genau richtig ich bin der Anleitung aus dem Forum gefolgt https://forum.iobroker.net/topic/22867/how-to-node-js-für-iobroker-richtig-updaten
                        Ich werde es morgen dann mal mit einer Deinstallation/Installation nach Doku probieren. Hier allerdings eine Frage:

                        In der Doku steht, dass alle Befehle mit einem "sudo" ausführt werden sollen. Allerdings wird in einem angepinnten Forum Post davon abgeraten zu mindest bei NPM Befehlen: https://forum.iobroker.net/topic/17109/wichtige-hinweise-bei-neueren-npm-versionen-und-sudo

                        Was ist hier das richtige Vorgehen aus eurer Sicht?

                        @wendy2702 : Die Fehlermeldung kommt beim stoppen via "iobroker stop" Das Problem sollte eigentlich behoben sein (https://forum.iobroker.net/topic/15123/fehlermeldung-bei-iobroker-stop-nach-update-von-js-controller-auf-1-5-1)...bei mir läuft die Version 1.5.3

                        Ich werde es morgen mit der Deinstallation/Installation probieren und Feedback geben:)
                        Danke schon einmal:)

                        Homoran 1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators @samsungfreak last edited by

                          @samsungfreak sagte in Node JS Update von v8 auf V10 schlägt fehl:

                          Was ist hier das richtige Vorgehen aus eurer Sicht?

                          npm Befehle sollen nicht mehr mit einem einfachen sudo gestartet werden!
                          Außerdem müssen npm Befehle (im Gegensatz zu iobor´ker... Befehle) unbedingt im Installationsverzeichnis (üblicherweise /opt/iobroker) ausgeführt werden!

                          @samsungfreak sagte in Node JS Update von v8 auf V10 schlägt fehl:

                          Die Fehlermeldung kommt beim stoppen via "iobroker stop" Das Problem sollte eigentlich behoben sein

                          Die Frage belibt: welche Meldung genau?
                          Wenn es das ist was ich denke sollte sie wirklich behoben sein, wird aber durch irgendwelche Aktionen wieder eingeschleppt, so dass ein erneuter Lauf des Fixers diese erneut behebt

                          1 Reply Last reply Reply Quote 0
                          • S
                            samsungfreak last edited by samsungfreak

                            @Homoran : Die folgende Meldung kommt beim "iobroker stop" Befehl:

                            Stopping iobroker controller daemon...
                            iobroker controller daemon stopped.
                            fs.js:1123
                              return binding.chmod(pathModule._makeLong(path), modeNum(mode));
                                             ^
                            
                            Error: ENOENT: no such file or directory, chmod '/opt/iobroker/node_modules/iobroker.js-controller/lib/../killall.sh'
                                at Object.fs.chmodSync (fs.js:1123:18)
                                at Daemon.daemon.on (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:286:32)
                                at emitOne (events.js:121:20)
                                at Daemon.emit (events.js:211:7)
                                at Daemon.<anonymous> (/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:267:14)
                                at Daemon._tryKill (/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:277:23)
                                at ontimeout (timers.js:498:11)
                                at tryOnTimeout (timers.js:323:5)
                                at Timer.listOnTimeout (timers.js:290:5)
                            

                            Wenn ich danach den Fixer drüber laufen lasse "curl -sL https://iobroker.net/fix.sh | bash -" tauchen die Fehler nicht mehr auf beim stoppen. Wie kann ich herausfinden was genau dafür gefixt wurde?
                            Was ebenfalls nicht angezeigt wird nach absetzten des Befehls "Stopping iobroker controller daemon..."...

                            library: loaded
                            Library version=2020-04-12
                            
                            ==========================================================================
                            
                                Welcome to the ioBroker installation fixer!
                                Script version: 2020-04-12
                            
                            ==========================================================================
                            
                            
                            ==========================================================================
                                Installing prerequisites (1/3)
                            ==========================================================================
                            
                            OK:1 https://deb.nodesource.com/node_8.x jessie InRelease
                            Ign:2 http://ftp.de.debian.org/debian stretch InRelease
                            Holen:3 http://ftp.de.debian.org/debian stretch-updates InRelease [91,0 kB]
                            OK:4 http://ftp.de.debian.org/debian stretch Release
                            Holen:6 http://security.debian.org stretch/updates InRelease [94,3 kB]
                            Holen:7 http://security.debian.org stretch/updates/main Sources [210 kB]
                            Holen:8 http://security.debian.org stretch/updates/main amd64 Packages [521 kB]
                            Es wurden 916 kB in 2 s geholt (309 kB/s).
                            Paketlisten werden gelesen... Fertig
                            Installed gcc-c++
                            Installed unzip
                            Installed python-dev
                            
                            ==========================================================================
                                Checking ioBroker user and directory permissions (2/3)
                            ==========================================================================
                            
                            User iobroker created
                            Created /etc/sudoers.d/iobroker
                            Fixing directory permissions...
                            
                            ==========================================================================
                                Checking autostart (3/3)
                            ==========================================================================
                            
                            Enabling autostart...
                            Created symlink /etc/systemd/system/multi-user.target.wants/iobroker.service → /lib/systemd/system/iobroker.service.
                            Autostart enabled!
                            
                            ==========================================================================
                            
                                Your installation was fixed successfully
                                Run iobroker start to start ioBroker again!
                            
                            

                            Ich würde jetzt wie folgt vorgehen:

                            • IOBroker stoppen (mit der Fehlermeldung)
                            • Fixer drüber laufen lassen lassen
                            • IOBroker starten
                            • IOBroker stoppen (ohne Fehler)
                            • NodeJS deinstallieren (v8)
                            • NodeJS installieren (v10)

                            Habe ich einen Schritt vergessen?

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

                              Liest sich gut.

                              Immer vorher ein Backup machen würde ich noch mit in die Liste aufnehmen.

                              1 Reply Last reply Reply Quote 0
                              • S
                                samsungfreak last edited by

                                Guten Abend,

                                das Update/die Neuinstallation hat ohne Probleme funktioniert. Ich bin jetzt allerdings direkt auf die v12 gegangen:)
                                Einen Punkte gab es allerdings der mir komisch vorgekommen ist. Laut System konnte das Paket "node" nicht entfernt werden da es nicht vorhanden ist:

                                # apt-get --purge remove node
                                Paketlisten werden gelesen... Fertig
                                Abhängigkeitsbaum wird aufgebaut.
                                Statusinformationen werden eingelesen.... Fertig
                                Paket »node« ist nicht installiert, wird also auch nicht entfernt.
                                0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                                

                                Das ist aber falsch da die Ausgabe "node -v" entsprechend "v8.17.0" ausgegeben hatte vorab:

                                node -v
                                v8.17.0
                                

                                Ebenso ist mir folgender Fehler aufgefallen:

                                dpkg: Warnung: Während Entfernens von nodejs ist Verzeichnis »/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator« nicht leer, wird daher nicht gelöscht
                                

                                Das System läuft soweit aber stabil weshalb ich keinen Restore gemacht habe.
                                Kann ich den Fehler ignorieren?

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

                                  @samsungfreak
                                  Nein.
                                  Du hast dir ein node 8 irgendwie manuell am Paketmanager vorbei ins System gehämmert und/oder bist nicht auf node 12. Zeig mal die Ausgaben von

                                  which node
                                  nodejs -v
                                  node -v
                                  
                                  S 1 Reply Last reply Reply Quote 0
                                  • T
                                    tom_33 last edited by

                                    hallo und schönen abend!

                                    ich steh gerade nach einem update am gleichen punkt, habe aber das npm rebuild noch nicht ausgeführt. ich bin in diesem punkt ein völliger newbie und tippe genau die anweisungen ein, welche im tutorial angegeben sind.

                                    im info adapter steht, dass ich Node.js v8.16.2 habe
                                    fa5f1bb9-d558-4a83-9050-b5a90d04a0f8-grafik.png

                                    in der konsole bekomme ich folgend infos:
                                    37363a59-815f-4417-8c24-c4833f16a147-grafik.png
                                    ich bin mir hier nicht im klaren, welche info was bedeutet.

                                    muss/soll ich mit npm rebuild weitermachen?

                                    danke im voraus für eure hilfe
                                    tom

                                    Homoran 1 Reply Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @tom_33 last edited by

                                      @tom_33 sagte in Node JS Update von v8 auf V10 schlägt fehl:

                                      muss/soll ich mit npm rebuild weitermachen?

                                      nein!

                                      @tom_33 sagte in Node JS Update von v8 auf V10 schlägt fehl:

                                      ich bin mir hier nicht im klaren, welche info was bedeutet.

                                      du hast ZWEI node installationen parallel.

                                      bitte beide löschen und eine neue installieren

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        tom_33 last edited by

                                        hallo homoran!
                                        mit
                                        sudo apt-get --purge remove nodejs
                                        und
                                        sudo apt-get --purge remove node

                                        Homoran 1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @tom_33 last edited by

                                          @tom_33 ja

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            tom_33 last edited by

                                            @Homoran

                                            laut konsole hatte ich node gar nicht.
                                            bei node -v wird v8.16.2 angezeigt!?
                                            96271d12-34ba-4c1e-936c-1af1b3e56e6c-grafik.png

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            934
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            nodejs 8 nodejs10
                                            6
                                            48
                                            2162
                                            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