NEWS
[How-to] Node.js ioBroker richtig updaten-2021/22 Edition
-
Leider klappt das bei mir nicht.
Nach "sudo apt-get install -y nodejs" kommt die Meldung "nodejs ist schon die neueste Version (12.22.1-lnodesourcel)."
Wenn ich mit "node -v" überprüfe kommt v10.20.1 (das gleiche wie in der Info)
Was mache ich verkehrt? -
@tobili03 sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:
Was mache ich verkehrt?
dann hast du wahrscheinlich zwei unterschiedliche node-Installationen parallel auf deinem Server.
Mindesttens eine davon nicht korrekt installiert -
@tobili03
Schau in meine Signatur, da steht drin wie man das wieder gerade fummelt -
@apollon77 die rebuild kommandos haben geholfen
2021-04-28 18:02:05.705 - error: host.raspberrypi Caught by controller[0]: /opt/iobroker/node_modules/zigbee-herdsman/node_modules/bindings/bindings.js:121 2021-04-28 18:02:05.705 - error: host.raspberrypi Caught by controller[0]: throw e; 2021-04-28 18:02:05.705 - error: host.raspberrypi Caught by controller[0]: ^ 2021-04-28 18:02:05.706 - error: host.raspberrypi Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/build/Release/bindings.node' 2021-04-28 18:02:05.706 - error: host.raspberrypi Caught by controller[0]: was compiled against a different Node.js version using 2021-04-28 18:02:05.706 - error: host.raspberrypi Caught by controller[0]: NODE_MODULE_VERSION 64. This version of Node.js requires 2021-04-28 18:02:05.706 - error: host.raspberrypi Caught by controller[0]: NODE_MODULE_VERSION 72. Please try re-compiling or re-installing 2021-04-28 18:02:05.706 - error: host.raspberrypi Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`). 2021-04-28 18:02:05.706 - error: host.raspberrypi Caught by controller[0]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18) 2021-04-28 18:02:05.707 - error: host.raspberrypi Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32) 2021-04-28 18:02:05.707 - error: host.raspberrypi Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14) 2021-04-28 18:02:05.707 - error: host.raspberrypi Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19) 2021-04-28 18:02:05.707 - error: host.raspberrypi Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18) 2021-04-28 18:02:05.707 - error: host.raspberrypi Caught by controller[0]: at bindings (/opt/iobroker/node_modules/zigbee-herdsman/node_modules/bindings/bindings.js:112:48) 2021-04-28 18:02:05.708 - error: host.raspberrypi Caught by controller[0]: at Object. (/opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/lib/linux.js:2:36) 2021-04-28 18:02:05.708 - error: host.raspberrypi Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30) 2021-04-28 18:02:05.708 - error: host.raspberrypi Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) 2021-04-28 18:02:05.708 - error: host.raspberrypi Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32) 2021-04-28 18:02:05.709 - error: host.raspberrypi instance system.adapter.zigbee.0 terminated with code 1 (JS_CONTROLLER_STOPPED) 2021-04-28 18:02:05.709 - info: host.raspberrypi Adapter system.adapter.zigbee.0 needs rebuild and will be restarted afterwards. 2021-04-28 18:02:05.709 - info: host.raspberrypi system.adapter.zigbee.0 will be rebuilt 2021-04-28 18:02:05.710 - warn: host.raspberrypi adapter "zigbee" seems to be installed for a different version of Node.js. Trying to rebuild it... 1 attempt 2021-04-28 18:02:05.711 - info: host.raspberrypi iobroker rebuild zigbee 2021-04-28 18:02:06.561 - info: host.raspberrypi iobroker npm-rebuild: npm rebuild --loglevel error (System call) in "/opt/iobroker/node_modules/iobroker.zigbee" 2021-04-28 18:02:07.142 - info: cloud.0 (3873) Trying to connect as system.user.admin 2021-04-28 18:02:07.229 - info: sql.0 (4633) enabled logging of sourceanalytix.0.0_userdata__0__netzeinspeisung.currentYear.delivered.05_currentYear, Alias=false 2021-04-28 18:02:07.291 - info: cloud.0 (3873) Connection changed: connect 2021-04-28 18:02:07.465 - info: sourceanalytix.0 (4617) Initialization (7 of 9) finished for : 0_userdata.0.netzeinspeisung 2021-04-28 18:02:07.465 - info: sourceanalytix.0 (4617) Initialising (8 of 9) state sonnen.0.status.consumption 2021-04-28 18:02:08.566 - info: host.raspberrypi iobroker npm-rebuild: Rebuild zigbee done 2021-04-28 18:02:08.904 - info: host.raspberrypi instance system.adapter.discovergy.0 started with pid 4758 2021-04-28 18:02:09.579 - info: host.raspberrypi iobroker npm-rebuild: exit 0 2021-04-28 18:02:09.629 - info: host.raspberrypi instance system.adapter.zigbee.0 started with pid 4765 2021-04-28 18:02:09.788 - info: sourceanalytix.0 (4617) Initialization (8 of 9) finished for : sonnen.0.status.consumption 2021-04-28 18:02:09.788 - info: sourceanalytix.0 (4617) Initialising (9 of 9) state 0_userdata.0.Steckdosen.Josef_Zimmer_Heizung 2021-04-28 18:02:10.547 - error: host.raspberrypi Caught by controller[0]: /opt/iobroker/node_modules/zigbee-herdsman/node_modules/bindings/bindings.js:121 2021-04-28 18:02:10.548 - error: host.raspberrypi Caught by controller[0]: throw e; 2021-04-28 18:02:10.548 - error: host.raspberrypi Caught by controller[0]: ^ 2021-04-28 18:02:10.548 - error: host.raspberrypi Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/build/Release/bindings.node' 2021-04-28 18:02:10.549 - error: host.raspberrypi Caught by controller[0]: was compiled against a different Node.js version using 2021-04-28 18:02:10.549 - error: host.raspberrypi Caught by controller[0]: NODE_MODULE_VERSION 64. This version of Node.js requires 2021-04-28 18:02:10.552 - error: host.raspberrypi Caught by controller[0]: NODE_MODULE_VERSION 72. Please try re-compiling or re-installing 2021-04-28 18:02:10.553 - error: host.raspberrypi Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`). 2021-04-28 18:02:10.553 - error: host.raspberrypi Caught by controller[0]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18) 2021-04-28 18:02:10.553 - error: host.raspberrypi Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32) 2021-04-28 18:02:10.553 - error: host.raspberrypi Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14) 2021-04-28 18:02:10.554 - error: host.raspberrypi Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19) 2021-04-28 18:02:10.554 - error: host.raspberrypi Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18) 2021-04-28 18:02:10.554 - error: host.raspberrypi Caught by controller[0]: at bindings (/opt/iobroker/node_modules/zigbee-herdsman/node_modules/bindings/bindings.js:112:48) 2021-04-28 18:02:10.554 - error: host.raspberrypi Caught by controller[0]: at Object. (/opt/iobroker/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/lib/linux.js:2:36) 2021-04-28 18:02:10.555 - error: host.raspberrypi Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30) 2021-04-28 18:02:10.555 - error: host.raspberrypi Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) 2021-04-28 18:02:10.555 - error: host.raspberrypi Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32) 2021-04-28 18:02:10.555 - error: host.raspberrypi instance system.adapter.zigbee.0 terminated with code 1 (JS_CONTROLLER_STOPPED) 2021-04-28 18:02:10.556 - info: host.raspberrypi Adapter system.adapter.zigbee.0 needs rebuild and will be restarted afterwards. 2021-04-28 18:02:10.556 - info: host.raspberrypi system.adapter.zigbee.0 will be rebuilt 2021-04-28 18:02:10.556 - warn: host.raspberrypi adapter "zigbee" seems to be installed for a different version of Node.js. Trying to rebuild it... 2 attempt 2021-04-28 18:02:10.557 - info: host.raspberrypi iobroker rebuild zigbee --install 2021-04-28 18:02:11.490 - info: host.raspberrypi iobroker npm-rebuild: npm install --loglevel error --production (System call) in "/opt/iobroker/node_modules/iobroker.zigbee" 2021-04-28 18:02:12.172 - info: discovergy.0 (4758) starting. Version 0.5.6 in /opt/iobroker/node_modules/iobroker.discovergy, node: v12.22.1, js-controller: 3.2.16 2021-04-28 18:02:12.242 - info: discovergy.0 (4758) Discovergy Adapter startet, trying to discover meters associated with your account 2021-04-28 18:02:12.263 - warn: discovergy.0 (4758) State "system.this.discovergy.0.alive" has no existing object, this might lead to an error in future versions 2021-04-28 18:02:12.939 - info: host.raspberrypi instance system.adapter.go-e.0 started with pid 4800 2021-04-28 18:02:13.496 - info: discovergy.0 (4758) All meters associated to your account discovered, initialise meters 2021-04-28 18:02:13.626 - info: discovergy.0 (4758) All meters initialized, polling data every 5 seconds 2021-04-28 18:02:14.049 - info: sourceanalytix.0 (4617) Initialization (9 of 9) finished for : 0_userdata.0.Steckdosen.Josef_Zimmer_Heizung 2021-04-28 18:02:14.063 - info: sourceanalytix.0 (4617) SourceAnalytix initialisation finalized, will handle calculations ... for 9 states 2021-04-28 18:02:16.361 - info: go-e.0 (4800) starting. Version 1.0.0 in /opt/iobroker/node_modules/iobroker.go-e, node: v12.22.1, js-controller: 3.2.16 2021-04-28 18:02:16.401 - info: go-e.0 (4800) Server: 192.168.178.31 2021-04-28 18:02:16.402 - info: go-e.0 (4800) Intervall: 60 2021-04-28 18:03:16.420 - info: host.raspberrypi "system.adapter.zigbee.0" disabled 2021-04-28 18:03:20.392 - info: host.raspberrypi "system.adapter.zigbee.0" enabled 2021-04-28 18:04:45.475 - info: admin.0 (3838) Request actual repository... 2021-04-28 18:04:46.068 - info: host.raspberrypi Updating repository "Stable (default)" under "http://download.iobroker.net/sources-dist.json" 2021-04-28 18:04:47.551 - info: admin.0 (3838) Repository received successfully. 2021-04-28 18:05:19.709 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’: 2021-04-28 18:05:19.715 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen); ^~~~~~~~~~~~~../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate); ^~~~~~~~~~~~~~~ 2021-04-28 18:05:19.719 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose); ^~~~~~~~~~~~~~ 2021-04-28 18:05:19.724 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’: 2021-04-28 18:05:19.725 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush); ^~~~~~~~~~~~~~ 2021-04-28 18:05:19.730 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’: 2021-04-28 18:05:19.731 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:270:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet); ^~~~~~~~~~~~ 2021-04-28 18:05:19.735 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’: 2021-04-28 18:05:19.736 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:314:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet); ^~~~~~~~~~~~ 2021-04-28 18:05:19.744 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’: 2021-04-28 18:05:19.745 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:363:76: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate); ^~~~~~~~~~~~~~~~~~~~ 2021-04-28 18:05:19.751 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’: 2021-04-28 18:05:19.752 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:409:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain); ^~~~~~~~~~~~~~ 2021-04-28 18:05:19.754 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: At global scope:../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses] SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local& v8str)) { ^ 2021-04-28 18:05:19.756 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses] SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) { ^ 2021-04-28 18:05:19.762 - info: host.raspberrypi iobroker npm-rebuild: In file included from ../../../nan/nan.h:56, 2021-04-28 18:05:19.763 - info: host.raspberrypi iobroker npm-rebuild: from ../src/./serialport.h:6, from ../src/serialport.cpp:1:/home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local, v8::Local, void*)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^/home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~~~~~~~~~../src/serialport.cpp:483:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(serialport, init); ^~~~~~~~~~~ 2021-04-28 18:05:23.874 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’: 2021-04-28 18:05:23.875 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport_unix.cpp:176:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=] snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path); ^~~~~~~~~~~~~~~~~~~~~~~~~../src/serialport_unix.cpp:176:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024 snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2021-04-28 18:05:23.916 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’: 2021-04-28 18:05:23.917 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport_unix.cpp:86:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=] snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~../src/serialport_unix.cpp:86:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024 snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2021-04-28 18:05:32.702 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’: 2021-04-28 18:05:32.703 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen); ^~~~~~~~~~~~~ 2021-04-28 18:05:32.709 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’: 2021-04-28 18:05:32.711 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate); ^~~~~~~~~~~~~~~ 2021-04-28 18:05:32.715 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose); ^~~~~~~~~~~~~~ 2021-04-28 18:05:32.718 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush); ^~~~~~~~~~~~~~ 2021-04-28 18:05:32.723 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’: 2021-04-28 18:05:32.724 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:270:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet); ^~~~~~~~~~~~ 2021-04-28 18:05:32.728 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’:../src/serialport.cpp:314:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet); ^~~~~~~~~~~~ 2021-04-28 18:05:32.735 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’: 2021-04-28 18:05:32.735 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:363:76: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate); ^~~~~~~~~~~~~~~~~~~~ 2021-04-28 18:05:32.741 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’: 2021-04-28 18:05:32.742 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:409:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain); ^~~~~~~~~~~~~~ 2021-04-28 18:05:32.745 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp: At global scope:../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses] SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local& v8str)) { ^ 2021-04-28 18:05:32.748 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses] SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) { ^ 2021-04-28 18:05:32.751 - info: host.raspberrypi iobroker npm-rebuild: In file included from ../../../nan/nan.h:56, from ../src/./serialport.h:6, from ../src/serialport.cpp:1:/home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local, v8::Local, void*)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^/home/iobroker/.cache/node-gyp/12.22.1/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~~~~~~~~~../src/serialport.cpp:483:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(serialport, init); ^~~~~~~~~~~ 2021-04-28 18:05:36.594 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’: 2021-04-28 18:05:36.595 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport_unix.cpp:176:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=] snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path); ^~~~~~~~~~~~~~~~~~~~~~~~~../src/serialport_unix.cpp:176:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024 snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2021-04-28 18:05:36.635 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’: 2021-04-28 18:05:36.636 - info: host.raspberrypi iobroker npm-rebuild: ../src/serialport_unix.cpp:86:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=] snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~../src/serialport_unix.cpp:86:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024 snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2021-04-28 18:06:23.521 - info: host.raspberrypi iobroker npm-rebuild: 2021-04-28 18:06:23.522 - info: host.raspberrypi iobroker npm-rebuild: Rebuild zigbee done 2021-04-28 18:06:24.532 - info: host.raspberrypi iobroker npm-rebuild: exit 0 2021-04-28 18:06:24.592 - info: host.raspberrypi instance system.adapter.zigbee.0 started with pid 5368 2021-04-28 18:06:27.791 - info: zigbee.0 (5368) starting. Version 1.4.4 in /opt/iobroker/node_modules/iobroker.zigbee, node: v12.22.1, js-controller: 3.2.16 2021-04-28 18:06:27.917 - info: zigbee.0 (5368) Starting Zigbee npm ... 2021-04-28 18:06:28.702 - info: zigbee.0 (5368) Installed Version: iobroker.zigbee@1.4.4 2021-04-28 18:06:28.735 - info: zigbee.0 (5368) Coordinator firmware version: {"type":"ConBee2/RaspBee2","meta":{"transportrev":0,"product":0,"majorrel":38,"minorrel":88,"maintrel":0,"revision":"0x26580700"}} 2021-04-28 18:06:28.758 - info: zigbee.0 (5368) Unable to disable LED, unsupported function. 2021-04-28 18:06:28.759 - info: zigbee.0 (5368) --> transmitPower : normal 2021-04-28 18:06:28.761 - info: zigbee.0 (5368) Unable to set transmit power, unsupported function. 2021-04-28 18:06:28.765 - info: zigbee.0 (5368) Currently 2 devices are joined: 2021-04-28 18:06:28.785 - info: zigbee.0 (5368) 0x00158d0005363273 (addr 49113): WSDCGQ01LM - Xiaomi MiJia temperature & humidity sensor (EndDevice) 2021-04-28 18:06:28.788 - info: zigbee.0 (5368) 0x00158d00054db088 (addr 16208): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice) 2021-04-28 18:06:28.789 - info: zigbee.0 (5368) Zigbee started
-
@thomas-braun Danke, jetzt habe ich es richtig.
-
@thomas-braun Füge den einen Link mal oben mit ein
-
@apollon77
Welchen Link wo einfügen?
Kannste aber gerne übernehmen. -
@thomas-braun den "verschiedne nodejs versionen fixen" link hab ich immersten Post eingefügt
-
@apollon77 said in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:
iobroker fix
Super, hat dank der Anleitung alles geklappt!!!
-
Hallo,
ist den V14 schon voll unterstützt?
-
@rushmed
Text gelesen?Auch mit Node.js 14.x sind bisher keine Probleme bekannt, aber es könnte Adapter geben, die nicht vollständig funktionieren.
-
Danke für die Anleitung, habe ganz smooth von Version 10 auf 14 unter Ubuntu 18.04 upgegraded DANKE!
-
@thomas-braun Jetzt schon , danke.
-
Hallo,
leider bekomme ich folgende Fehlermeldungen:
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - ## Installing the NodeSource Node.js 12.x repo... ## Populating apt-get cache... + apt-get update OK:1 http://archive.raspberrypi.org/debian buster InRelease OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease Ign:3 http://archive.raspbian.org/raspbian wheezy InRelease OK:4 https://deb.nodesource.com/node_6.x buster InRelease Fehl:5 http://archive.raspbian.org/raspbian wheezy Release 404 Not Found [IP: 93.93.128.191 80] Paketlisten werden gelesen... Fertig E: Das Depot »http://archive.raspbian.org/raspbian wheezy Release« enthält keine Release-Datei. N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert. N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8). W: Ziel Sources (main/source/Sources) ist mehrfach konfiguriert in /etc/apt/sources.list:4 und /etc/apt/sources.list:5 W: Ziel Sources (contrib/source/Sources) ist mehrfach konfiguriert in /etc/apt/sources.list:4 und /etc/apt/sources.list:5 W: Ziel Sources (non-free/source/Sources) ist mehrfach konfiguriert in /etc/apt/sources.list:4 und /etc/apt/sources.list:5 Error executing command, exiting
kann mir jemand weiterhelfen?
Gruß
Nidd -
@nidd sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:
wheezy
Ist so tot, das stinkt schon nicht mehr. Ersetze das durch buster.
Bzw. das kann komplett raus.Und node6 ist genauso lange tot. Änder das auf node12.
Zeig mal den Inhalt der Datei
cat /etc/apt/sources.list
-
@thomas-braun said in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:
cat /etc/apt/sources.list
ich habe den Pi erst vor 2 Monaten aufgesetzt und da das image von raspberrypi.org genommen
gibt's ne Anleitung wie ich das update?deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free
-
@nidd
Man nimmt ja auch keine Images.
Welches Image hast du denn da jetzt erwischt?lsb_release -a
Die Zeilen 4+5 kannst du aber schon mal löschen, das ist toter Quatsch.
-
@thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:
Man nimmt ja auch keine Images.
was denn?
@nidd sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:
das image von raspberrypi.org
ist das Betriebssystem
-
@homoran
Ja...
Man nimmt sowas wie noobs oder den Nachfolger, dessen Name mir gerade entfallen ist. Dann bekommt man auch nix untergejubelt, das mit wheezy zu tun hat.
Wobei ich stark davon ausgehe, das die Einträge da im Nachgang manuell reingefummelt wurden. -
@thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:
Man nimmt sowas wie noobs oder den Nachfolger, dessen Name mir gerade entfallen ist.
nee, immer das aktuelle RapberryOS lite im Downloadbereich.
@thomas-braun sagte in [How-to] Node.js für ioBroker richtig updaten - 2021 Edition:
Dann bekommt man auch nix untergejubelt, das mit wheezy zu tun hat.
Das würde mich allerdings auch sehr interessieren, wo das jetzt herkam.
lag vielleicht nocch seit Jahren im Download-Ordner