question

4711austria avatar image
4711austria asked

Node-Red RS485 Modbus ?

Hi

would like to read out a rs485 modbus device, but installing of node-red-contrib-modbus just fails?

  1. -----------------------------------------------------------
  2. 2024-03-01T14:37:13.361Z Installieren : node-red-contrib-serial-modbus 0.0.11
  3.  
  4. 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
  5. 2024-03-01T14:37:03.944Z [err] npm
  6. 2024-03-01T14:37:03.949Z [err]
  7. 2024-03-01T14:37:03.950Z [err] WARN
  8. 2024-03-01T14:37:03.951Z [err] config production Use `--omit=dev` instead.
  9.  
  10. -----------------------------------------------------------
  11. 2024-03-01T14:38:44.079Z Installieren : node-red-contrib-modbus 5.30.0
  12.  
  13. 2024-03-01T14:39:01.937Z [err] npm ERR! code 1
  14. 2024-03-01T14:39:01.937Z [err] npm ERR! path /data/home/nodered/.node-red/node_modules/@serialport/bindings
  15. 2024-03-01T14:39:01.937Z [err] npm ERR! command failed
  16. 2024-03-01T14:39:01.937Z [err] npm ERR! command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
  17. 2024-03-01T14:39:01.937Z [err] npm ERR! make: Entering directory '/data/home/nodered/.node-red/node_modules/@serialport/bindings/build'
  18. 2024-03-01T14:39:01.937Z [err] npm ERR! CXX(target) Release/obj.target/bindings/src/serialport.o
  19. 2024-03-01T14:39:01.937Z [err] npm ERR! make: Leaving directory '/data/home/nodered/.node-red/node_modules/@serialport/bindings/build'
  20. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info it worked if it ends with ok
  21. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info using node-gyp@9.4.0
  22. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info using node@18.18.0 | linux | arm
  23. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info find Python using Python version 3.8.18 found at "/usr/bin/python3"
  24. 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
  25. 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
  26. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp http GET https://nodejs.org/download/release/v18.18.0/SHASUMS256.txt
  27. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp http 200 https://nodejs.org/download/release/v18.18.0/SHASUMS256.txt
  28. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn /usr/bin/python3
  29. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args [
  30. 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',
  31. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args 'binding.gyp',
  32. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-f',
  33. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args 'make',
  34. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-I',
  35. 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',
  36. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-I',
  37. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
  38. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-I',
  39. 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',
  40. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-Dlibrary=shared_library',
  41. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-Dvisibility=default',
  42. 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',
  43. 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',
  44. 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',
  45. 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',
  46. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-Dnode_engine=v8',
  47. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '--depth=.',
  48. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '--no-parallel',
  49. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '--generator-output',
  50. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args 'build',
  51. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args '-Goutput_dir=.'
  52. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args ]
  53. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn make
  54. 2024-03-01T14:39:01.937Z [err] npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  55. 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)':
  56. 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]
  57. 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);
  58. 2024-03-01T14:39:01.937Z [err] npm ERR! | ^~~~~~~~~~~~~
  59. 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)':
  60. 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]
  61. 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);
  62. 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~~~~~~~~~~~~~
  63. 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)':
  64. 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]
  65. 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);
  66. 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~~~~~~~~~~~~
  67. 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)':
  68. 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]
  69. 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);
  70. 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~~~~~~~~~~~~
  71. 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)':
  72. 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]
  73. 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);
  74. 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~~~~~~~~~~
  75. 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)':
  76. 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]
  77. 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);
  78. 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~~~~~~~~~~
  79. 2024-03-01T14:39:01.989Z [err] npm ERR! ../src/serialport.cpp: In function 'void EIO_AfterGet(uv_work_t*)':
  80. 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)'
  81. 2024-03-01T14:39:01.989Z [err] npm ERR! 329 | results->Set(Nan::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
  82. 2024-03-01T14:39:01.989Z [err] npm ERR! | ^
  83. 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,
  84. 2024-03-01T14:39:01.989Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8.h:24,
  85. 2024-03-01T14:39:01.989Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/node.h:73,
  86. 2024-03-01T14:39:01.989Z [err] npm ERR! from ../../../nan/nan.h:62,
  87. 2024-03-01T14:39:01.989Z [err] npm ERR! from ../src/./serialport.h:6,
  88. 2024-03-01T14:39:01.989Z [err] npm ERR! from ../src/serialport.cpp:1:
  89. 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>)'
  90. 2024-03-01T14:39:01.989Z [err] npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
  91. 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~
  92. 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
  93. 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>)'
  94. 2024-03-01T14:39:01.989Z [err] npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
  95. 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~
  96. 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
  97. 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)'
  98. 2024-03-01T14:39:01.989Z [err] npm ERR! 330 | results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr));
  99. 2024-03-01T14:39:01.989Z [err] npm ERR! | ^
  100. 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,
  101. 2024-03-01T14:39:01.989Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8.h:24,
  102. 2024-03-01T14:39:01.989Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/node.h:73,
  103. 2024-03-01T14:39:01.989Z [err] npm ERR! from ../../../nan/nan.h:62,
  104. 2024-03-01T14:39:01.989Z [err] npm ERR! from ../src/./serialport.h:6,
  105. 2024-03-01T14:39:01.989Z [err] npm ERR! from ../src/serialport.cpp:1:
  106. 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>)'
  107. 2024-03-01T14:39:01.989Z [err] npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
  108. 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~
  109. 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
  110. 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>)'
  111. 2024-03-01T14:39:01.989Z [err] npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
  112. 2024-03-01T14:39:01.989Z [err] npm ERR! | ^~~
  113. 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
  114. 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)'
  115. 2024-03-01T14:39:01.989Z [err] npm ERR! 331 | results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
  116. 2024-03-01T14:39:01.989Z [err] npm ERR! | ^
  117. 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,
  118. 2024-03-01T14:39:01.989Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8.h:24,
  119. 2024-03-01T14:39:01.989Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/node.h:73,
  120. 2024-03-01T14:39:01.989Z [err] npm ERR! from ../../../nan/nan.h:62,
  121. 2024-03-01T14:39:01.989Z [err] npm ERR! from ../src/./serialport.h:6,
  122. 2024-03-01T14:39:01.989Z [err] npm ERR! from ../src/serialport.cpp:1:
  123. 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>)'
  124. 2024-03-01T14:39:02.081Z [err] npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
  125. 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~
  126. 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
  127. 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>)'
  128. 2024-03-01T14:39:02.081Z [err] npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
  129. 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~
  130. 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
  131. 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)':
  132. 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]
  133. 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);
  134. 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~~~~~~~~~~~~~~~~~~
  135. 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp: In function 'void EIO_AfterGetBaudRate(uv_work_t*)':
  136. 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)'
  137. 2024-03-01T14:39:02.081Z [err] npm ERR! 378 | results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
  138. 2024-03-01T14:39:02.081Z [err] npm ERR! | ^
  139. 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,
  140. 2024-03-01T14:39:02.081Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/v8.h:24,
  141. 2024-03-01T14:39:02.081Z [err] npm ERR! from /data/home/nodered/.cache/node-gyp/18.18.0/include/node/node.h:73,
  142. 2024-03-01T14:39:02.081Z [err] npm ERR! from ../../../nan/nan.h:62,
  143. 2024-03-01T14:39:02.081Z [err] npm ERR! from ../src/./serialport.h:6,
  144. 2024-03-01T14:39:02.081Z [err] npm ERR! from ../src/serialport.cpp:1:
  145. 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>)'
  146. 2024-03-01T14:39:02.081Z [err] npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
  147. 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~
  148. 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
  149. 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>)'
  150. 2024-03-01T14:39:02.081Z [err] npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
  151. 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~
  152. 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
  153. 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)':
  154. 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]
  155. 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);
  156. 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~~~~~~~~~~~~
  157. 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp: At global scope:
  158. 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of 'ToParityEnum' [-Wparentheses]
  159. 2024-03-01T14:39:02.081Z [err] npm ERR! 430 | SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
  160. 2024-03-01T14:39:02.081Z [err] npm ERR! | ^
  161. 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of 'ToStopBitEnum' [-Wparentheses]
  162. 2024-03-01T14:39:02.081Z [err] npm ERR! 449 | SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
  163. 2024-03-01T14:39:02.081Z [err] npm ERR! | ^
  164. 2024-03-01T14:39:02.081Z [err] npm ERR! In file included from ../../../nan/nan.h:62,
  165. 2024-03-01T14:39:02.081Z [err] npm ERR! from ../src/./serialport.h:6,
  166. 2024-03-01T14:39:02.081Z [err] npm ERR! from ../src/serialport.cpp:1:
  167. 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]
  168. 2024-03-01T14:39:02.081Z [err] npm ERR! 1014 | (node::addon_register_func) (regfunc), \
  169. 2024-03-01T14:39:02.081Z [err] npm ERR! | ^
  170. 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'
  171. 2024-03-01T14:39:02.081Z [err] npm ERR! 1048 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
  172. 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~~~~~~~~~~~
  173. 2024-03-01T14:39:02.081Z [err] npm ERR! ../src/serialport.cpp:483:1: note: in expansion of macro 'NODE_MODULE'
  174. 2024-03-01T14:39:02.081Z [err] npm ERR! 483 | NODE_MODULE(serialport, init);
  175. 2024-03-01T14:39:02.081Z [err] npm ERR! | ^~~~~~~~~~~
  176. 2024-03-01T14:39:02.081Z [err] npm ERR! make: *** [bindings.target.mk:110: Release/obj.target/bindings/src/serialport.o] Error 1
  177. 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! build error
  178. 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
  179. 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)
  180. 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)
  181. 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
  182. 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! System Linux 5.10.109-venus-15
  183. 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"
  184. 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! cwd /data/home/nodered/.node-red/node_modules/@serialport/bindings
  185. 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! node -v v18.18.0
  186. 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! node-gyp -v v9.4.0
  187. 2024-03-01T14:39:02.081Z [err] npm ERR! gyp ERR! not ok
  188. 2024-03-01T14:39:02.160Z [err]
  189. 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
  190. 2024-03-01T14:39:02.252Z rc=1


pls hlp. thx!

cerbo gx
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

0 Answers