Hi
would like to read out a rs485 modbus device, but installing of node-red-contrib-modbus just fails?
----------------------------------------------------------- 2024-03-01T14:37:13.361Z Installieren : node-red-contrib-serial-modbus 0.0.11 2024-03-01T14:36:57.793Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-serial-modbus@0.0.11 2024-03-01T14:37:03.944Z [err] npm 2024-03-01T14:37:03.949Z [err] 2024-03-01T14:37:03.950Z [err] WARN 2024-03-01T14:37:03.951Z [err] config production Use `--omit=dev` instead. ----------------------------------------------------------- 2024-03-01T14:38:44.079Z Installieren : node-red-contrib-modbus 5.30.0 2024-03-01T14:39:01.937Z [err] npm ERR! code 1 2024-03-01T14:39:01.937Z [err] npm ERR! path /data/home/nodered/.node-red/node_modules/@serialport/bindings 2024-03-01T14:39:01.937Z [err] npm ERR! command failed 2024-03-01T14:39:01.937Z [err] npm ERR! command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild 2024-03-01T14:39:01.937Z [err] npm ERR! make: Entering directory '/data/home/nodered/.node-red/node_modules/@serialport/bindings/build' 2024-03-01T14:39:01.937Z [err] npm ERR! CXX(target) Release/obj.target/bindings/src/serialport.o 2024-03-01T14:39:01.937Z [err] npm ERR! make: Leaving directory '/data/home/nodered/.node-red/node_modules/@serialport/bindings/build' 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info it worked if it ends with ok 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info using node-gyp@9.4.0 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info using node@18.18.0 | linux | arm 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info find Python using Python version 3.8.18 found at "/usr/bin/python3" 2024-03-01T14:39:01.937Z [err] npm ERR! gyp http GET https://nodejs.org/download/release/v18.18.0/node-v18.18.0-headers.tar.gz 2024-03-01T14:39:01.937Z [err] npm ERR! gyp http 200 https://nodejs.org/download/release/v18.18.0/node-v18.18.0-headers.tar.gz 2024-03-01T14:39:01.937Z [err] npm ERR! gyp http GET https://nodejs.org/download/release/v18.18.0/SHASUMS256.txt 2024-03-01T14:39:01.937Z [err] npm ERR! gyp http 200 https://nodejs.org/download/release/v18.18.0/SHASUMS256.txt 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn /usr/bin/python3 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args [ 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args 'binding.gyp', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-f', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args 'make', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-I', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '/data/home/nodered/.node-red/node_modules/@serialport/bindings/build/config.gypi', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-I', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-I', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '/data/home/nodered/.cache/node-gyp/18.18.0/include/node/common.gypi', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-Dlibrary=shared_library', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-Dvisibility=default', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-Dnode_root_dir=/data/home/nodered/.cache/node-gyp/18.18.0', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-Dnode_lib_file=/data/home/nodered/.cache/node-gyp/18.18.0/<(target_arch)/node.lib', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-Dmodule_root_dir=/data/home/nodered/.node-red/node_modules/@serialport/bindings', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-Dnode_engine=v8', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '--depth=.', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '--no-parallel', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '--generator-output', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args 'build', 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-Goutput_dir=.' 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args ] 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn make 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] 2024-03-01T14:39:01.937Z [err] npm ERR! ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)': 2024-03-01T14:39:01.937Z [err] npm ERR! ../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] 2024-03-01T14:39:01.937Z [err] npm ERR! 78 | uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen); 2024-03-01T14:39:01.937Z [err] npm ERR! | ^~~~~~~~~~~~~ 2024-03-01T14:39:01.989Z [err] npm ERR! ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)': 2024-03-01T14:39:01.989Z [err] npm ERR! ../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] 2024-03-01T14:39:01.989Z [err] npm ERR! 135 | uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate); 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~~~~~~~~~~~~~ 2024-03-01T14:39:01.989Z [err] npm ERR! ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)': 2024-03-01T14:39:01.989Z [err] npm ERR! ../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] 2024-03-01T14:39:01.989Z [err] npm ERR! 175 | uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose); 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~~~~~~~~~~~~ 2024-03-01T14:39:01.989Z [err] npm ERR! ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)': 2024-03-01T14:39:01.989Z [err] npm ERR! ../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] 2024-03-01T14:39:01.989Z [err] npm ERR! 215 | uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush); 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~~~~~~~~~~~~ 2024-03-01T14:39:01.989Z [err] npm ERR! ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)': 2024-03-01T14:39:01.989Z [err] npm ERR! ../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] 2024-03-01T14:39:01.989Z [err] npm ERR! 270 | uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet); 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~~~~~~~~~~ 2024-03-01T14:39:01.989Z [err] npm ERR! ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)': 2024-03-01T14:39:01.989Z [err] npm ERR! ../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] 2024-03-01T14:39:01.989Z [err] npm ERR! 314 | uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet); 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~~~~~~~~~~ 2024-03-01T14:39:01.989Z [err] npm ERR! ../src/serialport.cpp: In function 'void EIO_AfterGet(uv_work_t*)': 2024-03-01T14:39:01.989Z [err] npm ERR! ../src/serialport.cpp:329:96: error: no matching function for call to 'v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)' 2024-03-01T14:39:01.989Z [err] npm ERR! 329 | results->Set(Nan::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts)); 2024-03-01T14:39:01.989Z [err] npm ERR! | ^ 2024-03-01T14:39:01.989Z [err] npm ERR! In file included from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-array-buffer.h:13, 2024-03-01T14:39:01.989Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8.h:24, 2024-03-01T14:39:01.989Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/node.h:73, 2024-03-01T14:39:01.989Z [err] npm ERR! from ../../../nan/nan.h:62, 2024-03-01T14:39:01.989Z [err] npm ERR! from ../src/./serialport.h:6, 2024-03-01T14:39:01.989Z [err] npm ERR! from ../src/serialport.cpp:1: 2024-03-01T14:39:01.989Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:244:37: note: candidate: 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)' 2024-03-01T14:39:01.989Z [err] npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~ 2024-03-01T14:39:01.989Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided 2024-03-01T14:39:01.989Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:247:37: note: candidate: 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)' 2024-03-01T14:39:01.989Z [err] npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~ 2024-03-01T14:39:01.989Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided 2024-03-01T14:39:01.989Z [err] npm ERR! ../src/serialport.cpp:330:96: error: no matching function for call to 'v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)' 2024-03-01T14:39:01.989Z [err] npm ERR! 330 | results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr)); 2024-03-01T14:39:01.989Z [err] npm ERR! | ^ 2024-03-01T14:39:01.989Z [err] npm ERR! In file included from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-array-buffer.h:13, 2024-03-01T14:39:01.989Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8.h:24, 2024-03-01T14:39:01.989Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/node.h:73, 2024-03-01T14:39:01.989Z [err] npm ERR! from ../../../nan/nan.h:62, 2024-03-01T14:39:01.989Z [err] npm ERR! from ../src/./serialport.h:6, 2024-03-01T14:39:01.989Z [err] npm ERR! from ../src/serialport.cpp:1: 2024-03-01T14:39:01.989Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:244:37: note: candidate: 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)' 2024-03-01T14:39:01.989Z [err] npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~ 2024-03-01T14:39:01.989Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided 2024-03-01T14:39:01.989Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:247:37: note: candidate: 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)' 2024-03-01T14:39:01.989Z [err] npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~ 2024-03-01T14:39:01.989Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided 2024-03-01T14:39:01.989Z [err] npm ERR! ../src/serialport.cpp:331:96: error: no matching function for call to 'v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)' 2024-03-01T14:39:01.989Z [err] npm ERR! 331 | results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd)); 2024-03-01T14:39:01.989Z [err] npm ERR! | ^ 2024-03-01T14:39:01.989Z [err] npm ERR! In file included from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-array-buffer.h:13, 2024-03-01T14:39:01.989Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8.h:24, 2024-03-01T14:39:01.989Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/node.h:73, 2024-03-01T14:39:01.989Z [err] npm ERR! from ../../../nan/nan.h:62, 2024-03-01T14:39:01.989Z [err] npm ERR! from ../src/./serialport.h:6, 2024-03-01T14:39:01.989Z [err] npm ERR! from ../src/serialport.cpp:1: 2024-03-01T14:39:02.081Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:244:37: note: candidate: 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)' 2024-03-01T14:39:02.081Z [err] npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~ 2024-03-01T14:39:02.081Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided 2024-03-01T14:39:02.081Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:247:37: note: candidate: 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)' 2024-03-01T14:39:02.081Z [err] npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~ 2024-03-01T14:39:02.081Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)': 2024-03-01T14:39:02.081Z [err] npm ERR! ../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] 2024-03-01T14:39:02.081Z [err] npm ERR! 363 | uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate); 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~~~~~~~~~~~~~~~~~~ 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp: In function 'void EIO_AfterGetBaudRate(uv_work_t*)': 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp:378:106: error: no matching function for call to 'v8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)' 2024-03-01T14:39:02.081Z [err] npm ERR! 378 | results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate)); 2024-03-01T14:39:02.081Z [err] npm ERR! | ^ 2024-03-01T14:39:02.081Z [err] npm ERR! In file included from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-array-buffer.h:13, 2024-03-01T14:39:02.081Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8.h:24, 2024-03-01T14:39:02.081Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/node.h:73, 2024-03-01T14:39:02.081Z [err] npm ERR! from ../../../nan/nan.h:62, 2024-03-01T14:39:02.081Z [err] npm ERR! from ../src/./serialport.h:6, 2024-03-01T14:39:02.081Z [err] npm ERR! from ../src/serialport.cpp:1: 2024-03-01T14:39:02.081Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:244:37: note: candidate: 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)' 2024-03-01T14:39:02.081Z [err] npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~ 2024-03-01T14:39:02.081Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided 2024-03-01T14:39:02.081Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:247:37: note: candidate: 'v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)' 2024-03-01T14:39:02.081Z [err] npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~ 2024-03-01T14:39:02.081Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)': 2024-03-01T14:39:02.081Z [err] npm ERR! ../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] 2024-03-01T14:39:02.081Z [err] npm ERR! 409 | uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain); 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~~~~~~~~~~~~ 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp: At global scope: 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of 'ToParityEnum' [-Wparentheses] 2024-03-01T14:39:02.081Z [err] npm ERR! 430 | SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) { 2024-03-01T14:39:02.081Z [err] npm ERR! | ^ 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of 'ToStopBitEnum' [-Wparentheses] 2024-03-01T14:39:02.081Z [err] npm ERR! 449 | SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) { 2024-03-01T14:39:02.081Z [err] npm ERR! | ^ 2024-03-01T14:39:02.081Z [err] npm ERR! In file included from ../../../nan/nan.h:62, 2024-03-01T14:39:02.081Z [err] npm ERR! from ../src/./serialport.h:6, 2024-03-01T14:39:02.081Z [err] npm ERR! from ../src/serialport.cpp:1: 2024-03-01T14:39:02.081Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/node.h:1014:43: warning: cast between incompatible function types from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void (*)(v8::Local<v8::Object>)'} to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type] 2024-03-01T14:39:02.081Z [err] npm ERR! 1014 | (node::addon_register_func) (regfunc), \ 2024-03-01T14:39:02.081Z [err] npm ERR! | ^ 2024-03-01T14:39:02.081Z [err] npm ERR! /data/home/nodered/.cache/node-gyp/18.18.0/include/node/node.h:1048:3: note: in expansion of macro 'NODE_MODULE_X' 2024-03-01T14:39:02.081Z [err] npm ERR! 1048 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~~~~~~~~~~~ 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp:483:1: note: in expansion of macro 'NODE_MODULE' 2024-03-01T14:39:02.081Z [err] npm ERR! 483 | NODE_MODULE(serialport, init); 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~~~~~~~~~ 2024-03-01T14:39:02.081Z [err] npm ERR! make: *** [bindings.target.mk:110: Release/obj.target/bindings/src/serialport.o] Error 1 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! build error 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23) 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28) 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12) 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! System Linux 5.10.109-venus-15 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! cwd /data/home/nodered/.node-red/node_modules/@serialport/bindings 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! node -v v18.18.0 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! node-gyp -v v9.4.0 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! not ok 2024-03-01T14:39:02.160Z [err] 2024-03-01T14:39:02.160Z [err] npm ERR! A complete log of this run can be found in: /data/home/nodered/.npm/_logs/2024-03-01T14_37_03_338Z-debug-0.log 2024-03-01T14:39:02.252Z rc=1
pls hlp. thx!