# Install problem node-red-contrib-dmxusbpro

**URL:** <https://discourse.nodered.org/t/install-problem-node-red-contrib-dmxusbpro/25348>\
**Category:** General\
**Created:** [23 April 2020 07:46 UTC](https://discourse.nodered.org/t/install-problem-node-red-contrib-dmxusbpro/25348 "2020-04-23T07:46:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zappogb1](https://avatars.discourse-cdn.com/v4/letter/z/dfb087/32.png) [@zappogb1](https://discourse.nodered.org/u/zappogb1)\
**Post date:** [23 April 2020 07:46 UTC](https://discourse.nodered.org/t/install-problem-node-red-contrib-dmxusbpro/25348/1 "2020-04-23T07:46:58Z")

</div>

when i try to install node-red-contrib-dmxusbpro, i get an error and the node is not installed.  
I use an Rpi3B with Raspian Stretch and NodeRed in the latest version.

The entry in the logfile:  
"-----------------------------------------------------------  
2020-04-23T07:44:26.605Z installieren : node-red-contrib-dmxusbpro 1.0.4

2020-04-23T07:44:26.572Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-dmxusbpro@1.0.4  
2020-04-23T07:44:56.018Z [out]  
2020-04-23T07:44:56.018Z [out] \> serialport@6.2.2 install /root/.node-red/node\_modules/node-red-contrib-dmxusbpro/node\_modules/serialport  
2020-04-23T07:44:56.018Z [out] \> prebuild-install || node-gyp rebuild  
2020-04-23T07:44:56.018Z [out]  
2020-04-23T07:45:17.469Z [err] prebuild-install  
2020-04-23T07:45:17.470Z [err] WARN install No prebuilt binaries found (target=12.16.2 runtime=node arch=arm platform=linux)  
2020-04-23T07:45:20.058Z [out] make: Verzeichnis „/root/.node-red/node\_modules/node-red-contrib-dmxusbpro/node\_modules/serialport/build“ wird betreten  
2020-04-23T07:45:20.065Z [out] CXX(target) Release/obj.target/serialport/src/serialport.o  
2020-04-23T07:45:23.996Z [err] ../src/serialport.cpp: In function ‘Nan::NAN\_METHOD\_RETURN\_TYPE Open(Nan::NAN\_METHOD\_ARGS\_TYPE)’:  
2020-04-23T07:45:23.996Z [err] ../src/serialport.cpp:41:48: error: no matching function for call to ‘v8::Value::ToString()’  
2020-04-23T07:45:23.996Z [err] v8::String::Utf8Value path(info[0]-\>ToString());  
2020-04-23T07:45:23.996Z [err] ^  
2020-04-23T07:45:23.996Z [err] ../src/serialport.cpp:41:48: note: candidates are:  
2020-04-23T07:45:23.998Z [err] In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,  
2020-04-23T07:45:23.998Z [err] from ../../../../nan/nan.h:56,  
2020-04-23T07:45:23.998Z [err] from ../src/./serialport.h:6,  
2020-04-23T07:45:23.998Z [err] from ../src/serialport.cpp:1:  
2020-04-23T07:45:23.998Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2668:44: note: v8::MaybeLocalv8::String v8::Value::ToString(v8::Localv8::Context) const  
2020-04-23T07:45:23.998Z [err] V8\_WARN\_UNUSED\_RESULT MaybeLocal ToString(  
2020-04-23T07:45:23.998Z [err] ^  
2020-04-23T07:45:23.998Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided  
2020-04-23T07:45:23.998Z [err] In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0,  
2020-04-23T07:45:23.998Z [err] from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27,  
2020-04-23T07:45:23.998Z [err] from /root/.cache/node-gyp/12.16.2/include/node/node.h:67,  
2020-04-23T07:45:23.998Z [err] from ../../../../nan/nan.h:56,  
2020-04-23T07:45:23.998Z [err] from ../src/./serialport.h:6,  
2020-04-23T07:45:23.998Z [err] from ../src/serialport.cpp:1:  
2020-04-23T07:45:23.998Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2684:31: note: v8::Localv8::String v8::Value::ToString(v8::Isolate\*) const  
2020-04-23T07:45:23.998Z [err] Local ToString(Isolate\* isolate) const);  
2020-04-23T07:45:23.998Z [err] ^  
2020-04-23T07:45:23.998Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8\_DEPRECATED’  
2020-04-23T07:45:23.998Z [err] declarator **attribute** ((deprecated(message)))  
2020-04-23T07:45:23.998Z [err] ^  
2020-04-23T07:45:23.998Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided  
2020-04-23T07:45:23.998Z [err] Local ToString(Isolate\* isolate) const);  
2020-04-23T07:45:23.998Z [err] ^  
2020-04-23T07:45:23.998Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8\_DEPRECATED’  
2020-04-23T07:45:23.998Z [err] declarator **attribute** ((deprecated(message)))  
2020-04-23T07:45:23.998Z [err] ^  
2020-04-23T07:45:23.999Z [err] ../src/serialport.cpp:48:53: error: no matching function for call to ‘v8::Value::ToObject()’  
2020-04-23T07:45:23.999Z [err] v8::Localv8::Object options = info[1]-\>ToObject();  
2020-04-23T07:45:23.999Z [err] ^  
2020-04-23T07:45:23.999Z [err] ../src/serialport.cpp:48:53: note: candidates are:  
2020-04-23T07:45:23.999Z [err] In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,  
2020-04-23T07:45:23.999Z [err] from ../../../../nan/nan.h:56,  
2020-04-23T07:45:23.999Z [err] from ../src/./serialport.h:6,  
2020-04-23T07:45:23.999Z [err] from ../src/serialport.cpp:1:  
2020-04-23T07:45:23.999Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const  
2020-04-23T07:45:23.999Z [err] V8\_WARN\_UNUSED\_RESULT MaybeLocal ToObject(  
2020-04-23T07:45:23.999Z [err] ^  
2020-04-23T07:45:23.999Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided  
2020-04-23T07:45:23.999Z [err] In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0,  
2020-04-23T07:45:23.999Z [err] from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27,  
2020-04-23T07:45:23.999Z [err] from /root/.cache/node-gyp/12.16.2/include/node/node.h:67,  
2020-04-23T07:45:23.999Z [err] from ../../../../nan/nan.h:56,  
2020-04-23T07:45:23.999Z [err] from ../src/./serialport.h:6,  
2020-04-23T07:45:23.999Z [err] from ../src/serialport.cpp:1:  
2020-04-23T07:45:23.999Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: v8::Localv8::Object v8::Value::ToObject(v8::Isolate\*) const  
2020-04-23T07:45:23.999Z [err] Local ToObject(Isolate\* isolate) const);  
2020-04-23T07:45:23.999Z [err] ^  
2020-04-23T07:45:23.999Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8\_DEPRECATED’  
2020-04-23T07:45:23.999Z [err] declarator **attribute** ((deprecated(message)))  
2020-04-23T07:45:23.999Z [err] ^  
2020-04-23T07:45:23.999Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided  
2020-04-23T07:45:23.999Z [err] Local ToObject(Isolate\* isolate) const);  
2020-04-23T07:45:23.999Z [err] ^  
2020-04-23T07:45:23.999Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8\_DEPRECATED’  
2020-04-23T07:45:23.999Z [err] declarator **attribute** ((deprecated(message)))  
2020-04-23T07:45:23.999Z [err] ^  
2020-04-23T07:45:24.011Z [err] ../src/serialport.cpp: In function ‘void EIO\_AfterOpen(uv\_work\_t\*)’:  
2020-04-23T07:45:24.011Z [err] ../src/serialport.cpp:95:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value_) const’ is deprecated (declared at ../../../../nan/nan.h:1742) [-Wdeprecated-declarations]  
2020-04-23T07:45:24.011Z [err] data-\>callback.Call(2, argv);  
2020-04-23T07:45:24.011Z [err] ^  
2020-04-23T07:45:24.013Z [err] ../src/serialport.cpp: In function ‘Nan::NAN\_METHOD\_RETURN\_TYPE Update(Nan::NAN\_METHOD\_ARGS\_TYPE)’:  
2020-04-23T07:45:24.013Z [err] ../src/serialport.cpp:113:53: error: no matching function for call to ‘v8::Value::ToObject()’  
2020-04-23T07:45:24.013Z [err] v8::Localv8::Object options = info[1]-\>ToObject();  
2020-04-23T07:45:24.013Z [err] ^  
2020-04-23T07:45:24.013Z [err] ../src/serialport.cpp:113:53: note: candidates are:  
2020-04-23T07:45:24.013Z [err] In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,  
2020-04-23T07:45:24.013Z [err] from ../../../../nan/nan.h:56,  
2020-04-23T07:45:24.013Z [err] from ../src/./serialport.h:6,  
2020-04-23T07:45:24.013Z [err] from ../src/serialport.cpp:1:  
2020-04-23T07:45:24.013Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const  
2020-04-23T07:45:24.013Z [err] V8\_WARN\_UNUSED\_RESULT MaybeLocal ToObject(  
2020-04-23T07:45:24.013Z [err] ^  
2020-04-23T07:45:24.013Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided  
2020-04-23T07:45:24.013Z [err] In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0,  
2020-04-23T07:45:24.013Z [err] from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27,  
2020-04-23T07:45:24.013Z [err] from /root/.cache/node-gyp/12.16.2/include/node/node.h:67,  
2020-04-23T07:45:24.013Z [err] from ../../../../nan/nan.h:56,  
2020-04-23T07:45:24.013Z [err] from ../src/./serialport.h:6,  
2020-04-23T07:45:24.013Z [err] from ../src/serialport.cpp:1:  
2020-04-23T07:45:24.013Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: v8::Localv8::Object v8::Value::ToObject(v8::Isolate_) const  
2020-04-23T07:45:24.013Z [err] Local ToObject(Isolate\* isolate) const);  
2020-04-23T07:45:24.013Z [err] ^  
2020-04-23T07:45:24.013Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8\_DEPRECATED’  
2020-04-23T07:45:24.013Z [err] declarator **attribute** ((deprecated(message)))  
2020-04-23T07:45:24.013Z [err] ^  
2020-04-23T07:45:24.013Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided  
2020-04-23T07:45:24.013Z [err] Local ToObject(Isolate\* isolate) const);  
2020-04-23T07:45:24.013Z [err] ^  
2020-04-23T07:45:24.013Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8\_DEPRECATED’  
2020-04-23T07:45:24.013Z [err] declarator **attribute** ((deprecated(message)))  
2020-04-23T07:45:24.013Z [err] ^  
2020-04-23T07:45:24.018Z [err] ../src/serialport.cpp: In function ‘void EIO\_AfterUpdate(uv\_work\_t\*)’:  
2020-04-23T07:45:24.018Z [err] ../src/serialport.cpp:150:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value_) const’ is deprecated (declared at ../../../../nan/nan.h:1742) [-Wdeprecated-declarations]  
2020-04-23T07:45:24.018Z [err] data-\>callback.Call(1, argv);  
2020-04-23T07:45:24.018Z [err] ^  
2020-04-23T07:45:24.022Z [err] ../src/serialport.cpp: In function ‘void EIO\_AfterClose(uv\_work\_t_)’:  
2020-04-23T07:45:24.022Z [err] ../src/serialport.cpp:188:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value_) const’ is deprecated (declared at ../../../../nan/nan.h:1742) [-Wdeprecated-declarations]  
2020-04-23T07:45:24.022Z [err] data-\>callback.Call(1, argv);  
2020-04-23T07:45:24.022Z [err] ^  
2020-04-23T07:45:24.026Z [err] ../src/serialport.cpp: In function ‘void EIO\_AfterFlush(uv\_work\_t_)’:  
2020-04-23T07:45:24.026Z [err] ../src/serialport.cpp:231:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value_) const’ is deprecated (declared at ../../../../nan/nan.h:1742) [-Wdeprecated-declarations]  
2020-04-23T07:45:24.026Z [err] data-\>callback.Call(1, argv);  
2020-04-23T07:45:24.026Z [err] ^  
2020-04-23T07:45:24.027Z [err] ../src/serialport.cpp: In function ‘Nan::NAN\_METHOD\_RETURN\_TYPE Set(Nan::NAN\_METHOD\_ARGS\_TYPE)’:  
2020-04-23T07:45:24.027Z [err] ../src/serialport.cpp:250:53: error: no matching function for call to ‘v8::Value::ToObject()’  
2020-04-23T07:45:24.027Z [err] v8::Localv8::Object options = info[1]-\>ToObject();  
2020-04-23T07:45:24.027Z [err] ^  
2020-04-23T07:45:24.027Z [err] ../src/serialport.cpp:250:53: note: candidates are:  
2020-04-23T07:45:24.028Z [err] In file included from /root/.cache/node-gyp/12.16.2/include/node/node.h:67:0,  
2020-04-23T07:45:24.028Z [err] from ../../../../nan/nan.h:56,  
2020-04-23T07:45:24.028Z [err] from ../src/./serialport.h:6,  
2020-04-23T07:45:24.028Z [err] from ../src/serialport.cpp:1:  
2020-04-23T07:45:24.028Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const  
2020-04-23T07:45:24.028Z [err] V8\_WARN\_UNUSED\_RESULT MaybeLocal ToObject(  
2020-04-23T07:45:24.028Z [err] ^  
2020-04-23T07:45:24.028Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided  
2020-04-23T07:45:24.028Z [err] In file included from /root/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0,  
2020-04-23T07:45:24.028Z [err] from /root/.cache/node-gyp/12.16.2/include/node/v8.h:27,  
2020-04-23T07:45:24.028Z [err] from /root/.cache/node-gyp/12.16.2/include/node/node.h:67,  
2020-04-23T07:45:24.028Z [err] from ../../../../nan/nan.h:56,  
2020-04-23T07:45:24.028Z [err] from ../src/./serialport.h:6,  
2020-04-23T07:45:24.028Z [err] from ../src/serialport.cpp:1:  
2020-04-23T07:45:24.028Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: v8::Localv8::Object v8::Value::ToObject(v8::Isolate_) const  
2020-04-23T07:45:24.028Z [err] Local ToObject(Isolate\* isolate) const);  
2020-04-23T07:45:24.028Z [err] ^  
2020-04-23T07:45:24.028Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8\_DEPRECATED’  
2020-04-23T07:45:24.028Z [err] declarator **attribute** ((deprecated(message)))  
2020-04-23T07:45:24.028Z [err] ^  
2020-04-23T07:45:24.028Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided  
2020-04-23T07:45:24.028Z [err] Local ToObject(Isolate\* isolate) const);  
2020-04-23T07:45:24.028Z [err] ^  
2020-04-23T07:45:24.028Z [err] /root/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8\_DEPRECATED’  
2020-04-23T07:45:24.028Z [err] declarator **attribute** ((deprecated(message)))  
2020-04-23T07:45:24.028Z [err] ^  
2020-04-23T07:45:24.032Z [err] ../src/serialport.cpp: In function ‘void EIO\_AfterSet(uv\_work\_t\*)’:  
2020-04-23T07:45:24.032Z [err] ../src/serialport.cpp:285:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value_) const’ is deprecated (declared at ../../../../nan/nan.h:1742) [-Wdeprecated-declarations]  
2020-04-23T07:45:24.032Z [err] data-\>callback.Call(1, argv);  
2020-04-23T07:45:24.032Z [err] ^  
2020-04-23T07:45:24.041Z [err] ../src/serialport.cpp: In function ‘void EIO\_AfterGet(uv\_work\_t_)’:  
2020-04-23T07:45:24.041Z [err] ../src/serialport.cpp:329:96: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated (declared at /root/.cache/node-gyp/12.16.2/include/node/v8.h:3498): Use maybe version [-Wdeprecated-declarations]  
2020-04-23T07:45:24.041Z [err] results-\>Set(Nan::Newv8::String("cts").ToLocalChecked(), Nan::Newv8::Boolean(data-\>cts));  
2020-04-23T07:45:24.041Z [err] ^  
2020-04-23T07:45:24.042Z [err] ../src/serialport.cpp:330:96: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated (declared at /root/.cache/node-gyp/12.16.2/include/node/v8.h:3498): Use maybe version [-Wdeprecated-declarations]  
2020-04-23T07:45:24.042Z [err] results-\>Set(Nan::Newv8::String("dsr").ToLocalChecked(), Nan::Newv8::Boolean(data-\>dsr));  
2020-04-23T07:45:24.042Z [err] ^  
2020-04-23T07:45:24.044Z [err] ../src/serialport.cpp:331:96: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated (declared at /root/.cache/node-gyp/12.16.2/include/node/v8.h:3498): Use maybe version [-Wdeprecated-declarations]  
2020-04-23T07:45:24.044Z [err] results-\>Set(Nan::Newv8::String("dcd").ToLocalChecked(), Nan::Newv8::Boolean(data-\>dcd));  
2020-04-23T07:45:24.044Z [err] ^  
2020-04-23T07:45:24.044Z [err] ../src/serialport.cpp:336:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value_) const’ is deprecated (declared at ../../../../nan/nan.h:1742) [-Wdeprecated-declarations]  
2020-04-23T07:45:24.044Z [err] data-\>callback.Call(2, argv);  
2020-04-23T07:45:24.044Z [err] ^  
2020-04-23T07:45:24.054Z [err] ../src/serialport.cpp: In function ‘void EIO\_AfterGetBaudRate(uv\_work\_t_)’:  
2020-04-23T07:45:24.054Z [err] ../src/serialport.cpp:378:106: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated (declared at /root/.cache/node-gyp/12.16.2/include/node/v8.h:3498): Use maybe version [-Wdeprecated-declarations]  
2020-04-23T07:45:24.054Z [err] results-\>Set(Nan::Newv8::String("baudRate").ToLocalChecked(), Nan::Newv8::Integer(data-\>baudRate));  
2020-04-23T07:45:24.054Z [err] ^  
2020-04-23T07:45:24.055Z [err] ../src/serialport.cpp:383:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value_) const’ is deprecated (declared at ../../../../nan/nan.h:1742) [-Wdeprecated-declarations]  
2020-04-23T07:45:24.055Z [err] data-\>callback.Call(2, argv);  
2020-04-23T07:45:24.055Z [err] ^  
2020-04-23T07:45:24.059Z [err] ../src/serialport.cpp: In function ‘void EIO\_AfterDrain(uv\_work\_t_)’:  
2020-04-23T07:45:24.059Z [err] ../src/serialport.cpp:424:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value\*) const’ is deprecated (declared at ../../../../nan/nan.h:1742) [-Wdeprecated-declarations]  
2020-04-23T07:45:24.059Z [err] data-\>callback.Call(1, argv);  
2020-04-23T07:45:24.059Z [err] ^  
2020-04-23T07:45:24.061Z [err] ../src/serialport.cpp: At global scope:  
2020-04-23T07:45:24.061Z [err] ../src/serialport.cpp:460:17: error: variable or field ‘init’ declared void  
2020-04-23T07:45:24.061Z [err] void init(v8::Handlev8::Object target) {  
2020-04-23T07:45:24.061Z [err] ^  
2020-04-23T07:45:24.061Z [err] ../src/serialport.cpp:460:13: error: ‘Handle’ is not a member of ‘v8’  
2020-04-23T07:45:24.061Z [err] void init(v8::Handlev8::Object target) {  
2020-04-23T07:45:24.061Z [err] ^  
2020-04-23T07:45:24.062Z [err] ../src/serialport.cpp:460:34: error: expected primary-expression before ‘\>’ token  
2020-04-23T07:45:24.062Z [err] void init(v8::Handlev8::Object target) {  
2020-04-23T07:45:24.062Z [err] ^  
2020-04-23T07:45:24.062Z [err] ../src/serialport.cpp:460:36: error: ‘target’ was not declared in this scope  
2020-04-23T07:45:24.062Z [err] void init(v8::Handlev8::Object target) {  
2020-04-23T07:45:24.062Z [err] ^  
2020-04-23T07:45:24.062Z [err] In file included from ../../../../nan/nan.h:56:0,  
2020-04-23T07:45:24.062Z [err] from ../src/./serialport.h:6,  
2020-04-23T07:45:24.062Z [err] from ../src/serialport.cpp:1:  
2020-04-23T07:45:24.062Z [err] ../src/serialport.cpp:485:25: error: ‘init’ was not declared in this scope  
2020-04-23T07:45:24.062Z [err] NODE\_MODULE(serialport, init);  
2020-04-23T07:45:24.062Z [err] ^  
2020-04-23T07:45:24.062Z [err] /root/.cache/node-gyp/12.16.2/include/node/node.h:608:36: note: in definition of macro ‘NODE\_MODULE\_X’  
2020-04-23T07:45:24.062Z [err] (node::addon\_register\_func) (regfunc),   
2020-04-23T07:45:24.062Z [err] ^  
2020-04-23T07:45:24.062Z [err] ../src/serialport.cpp:485:1: note: in expansion of macro ‘NODE\_MODULE’  
2020-04-23T07:45:24.062Z [err] NODE\_MODULE(serialport, init);  
2020-04-23T07:45:24.062Z [err] ^  
2020-04-23T07:45:25.989Z [out] serialport.target.mk:112: die Regel für Ziel „Release/obj.target/serialport/src/serialport.o“ scheiterte  
2020-04-23T07:45:25.990Z [out] make: Verzeichnis „/root/.node-red/node\_modules/node-red-contrib-dmxusbpro/node\_modules/serialport/build“ wird verlassen  
2020-04-23T07:45:25.991Z [err] make: \*\*\* [Release/obj.target/serialport/src/serialport.o] Fehler 1  
2020-04-23T07:45:25.997Z [err] gyp  
2020-04-23T07:45:25.998Z [err]  
2020-04-23T07:45:25.999Z [err] ERR! build error  
2020-04-23T07:45:26.002Z [err] gyp  
2020-04-23T07:45:26.003Z [err] ERR! stack  
2020-04-23T07:45:26.003Z [err] Error: `make` failed with exit code: 2  
2020-04-23T07:45:26.003Z [err] gyp ERR!  
2020-04-23T07:45:26.004Z [err] stack at ChildProcess.onExit (/usr/lib/node\_modules/npm/node\_modules/node-gyp/lib/build.js:194:23)  
2020-04-23T07:45:26.004Z [err] gyp  
2020-04-23T07:45:26.004Z [err] ERR! stack  
2020-04-23T07:45:26.004Z [err] at ChildProcess.emit (events.js:310:20)  
2020-04-23T07:45:26.004Z [err] gyp ERR!  
2020-04-23T07:45:26.005Z [err] stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:275:12)  
2020-04-23T07:45:26.006Z [err] gyp  
2020-04-23T07:45:26.006Z [err] ERR! System Linux 4.19.115-v7+  
2020-04-23T07:45:26.007Z [err] gyp  
2020-04-23T07:45:26.007Z [err] ERR! command "/usr/bin/node" "/usr/lib/node\_modules/npm/node\_modules/node-gyp/bin/node-gyp.js" "rebuild"  
2020-04-23T07:45:26.008Z [err] gyp ERR!  
2020-04-23T07:45:26.008Z [err] cwd /root/.node-red/node\_modules/node-red-contrib-dmxusbpro/node\_modules/serialport  
2020-04-23T07:45:26.008Z [err] gyp  
2020-04-23T07:45:26.008Z [err] ERR! node -v v12.16.2  
2020-04-23T07:45:26.009Z [err] gyp ERR! node-gyp -v v5.1.0  
2020-04-23T07:45:26.009Z [err] gyp ERR!  
2020-04-23T07:45:26.010Z [err] not ok  
2020-04-23T07:45:27.622Z [err] npm  
2020-04-23T07:45:27.623Z [err] WARN node-red-project@0.0.1 No repository field.  
2020-04-23T07:45:27.623Z [err] npm WARN  
2020-04-23T07:45:27.623Z [err] node-red-project@0.0.1 No license field.  
2020-04-23T07:45:27.625Z [err]  
2020-04-23T07:45:27.699Z [err] npm  
2020-04-23T07:45:27.699Z [err] ERR! code ELIFECYCLE  
2020-04-23T07:45:27.699Z [err] npm ERR!  
2020-04-23T07:45:27.700Z [err] errno 1  
2020-04-23T07:45:27.700Z [err] npm  
2020-04-23T07:45:27.700Z [err] ERR! serialport@6.2.2 install: `prebuild-install || node-gyp rebuild`  
2020-04-23T07:45:27.700Z [err] npm  
2020-04-23T07:45:27.700Z [err] ERR! Exit status 1  
2020-04-23T07:45:27.701Z [err] npm ERR!  
2020-04-23T07:45:27.705Z [err] npm ERR! Failed at the serialport@6.2.2 install script.  
2020-04-23T07:45:27.705Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.  
2020-04-23T07:45:27.816Z [err]  
2020-04-23T07:45:27.817Z [err] npm ERR! A complete log of this run can be found in:  
2020-04-23T07:45:27.817Z [err] npm ERR! /root/.npm/\_logs/2020-04-23T07\_45\_27\_769Z-debug.log  
2020-04-23T07:45:27.836Z rc=1"

Hopefully someone can help me.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 April 2020 08:13 UTC](https://discourse.nodered.org/t/install-problem-node-red-contrib-dmxusbpro/25348/2 "2020-04-23T08:13:18Z")

</div>

Are you running node-red as root? That really is not a good idea, though I don't know whether that would cause the problem you are seeing.  
Did you install node-red using the recommended script from the docs? That would ensure you have a consistent set of tools.  
[https://nodered.org/docs/getting-started/raspberrypi](https://nodered.org/docs/getting-started/raspberrypi)

---

<div class="post-metadata">

**Author:** ![zappogb1](https://avatars.discourse-cdn.com/v4/letter/z/dfb087/32.png) [@zappogb1](https://discourse.nodered.org/u/zappogb1)\
**Post date:** [23 April 2020 08:30 UTC](https://discourse.nodered.org/t/install-problem-node-red-contrib-dmxusbpro/25348/3 "2020-04-23T08:30:39Z")

</div>

i don't believe that the "root running" cause the problem, on another raspi node-red is running as root as well and on this raspi i don't get any errors.

I have installed node-red using the script from the docs.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 April 2020 08:53 UTC](https://discourse.nodered.org/t/install-problem-node-red-contrib-dmxusbpro/25348/4 "2020-04-23T08:53:57Z")

</div>

The node requires an old version of the serialport module (6.2.2) which will not build on your system (nor on mine). My guess is that is too old for version 12 of nodejs.  
You could try reverting to nodejs 10 or 8, and if it works then raise an issue against the node. It is possible that it just needs its package.json hacked to allow it use the latest version of the serialport module.

---

<div class="post-metadata">

**Author:** ![zappogb1](https://avatars.discourse-cdn.com/v4/letter/z/dfb087/32.png) [@zappogb1](https://discourse.nodered.org/u/zappogb1)\
**Post date:** [23 April 2020 09:55 UTC](https://discourse.nodered.org/t/install-problem-node-red-contrib-dmxusbpro/25348/5 "2020-04-23T09:55:29Z")

</div>

Now I have changed the nodejs version to 10.20.1 and it works.

Thank you for your help

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 April 2020 09:58 UTC](https://discourse.nodered.org/t/install-problem-node-red-contrib-dmxusbpro/25348/6 "2020-04-23T09:58:18Z")

</div>

In that case add an issue to the node's github page, which is linked from the npmjs page. Then hopefully the author will fix it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 June 2020 09:58 UTC](https://discourse.nodered.org/t/install-problem-node-red-contrib-dmxusbpro/25348/7 "2020-06-22T09:58:20Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
