Cant find my on custom node module after install on raspberry pi

cant see module when I install it
I have the same costume node module in windows it shows there when I install on the same module on raspberry pi it cant find there

1 Jul 12:19:48 - [info] Node-RED version: v1.1.2
11 Jul 12:19:48 - [info] Node.js version: v10.21.0
11 Jul 12:19:48 - [info] Linux 4.19.118-v7l+ arm LE
11 Jul 12:19:48 - [info] Loading palette nodes
11 Jul 12:19:50 - [warn] ------------------------------------------------------
11 Jul 12:19:50 - [warn] [node-red-contrib-muxbox-pins/muxbox-pins] Error: /home/pi/Desktop/piGPIO/node_modules/epoll/build/Release/epoll.node: invalid ELF header
11 Jul 12:19:50 - [warn] ------------------------------------------------------
11 Jul 12:19:50 - [info] Settings file : /home/pi/.node-red/settings.js
11 Jul 12:19:50 - [info] Context store : 'default' [module=memory]
11 Jul 12:19:50 - [info] User directory : /home/pi/.node-red
11 Jul 12:19:50 - [warn] Projects disabled : editorTheme.projects.enabled=false
11 Jul 12:19:50 - [info] Flows file : /home/pi/.node-red/flows_raspberrypi.json
11 Jul 12:19:50 - [warn]

Did you install it from the node-red folder? Normally that is ~/.node-red.

yes i install it from there ..
and also i try npm install package from root

What did the install log say when you installed it? When you go into the node-modules folder within your nodered folder is it there? Dont install it globally.

pi@raspberrypi:~ cd .node-red/ pi@raspberrypi:~/.node-red npm install /home/pi/Desktop/piGPIO

  • node-red-contrib-muxbox-pins@1.0.0
    updated 1 package and audited 164 packages in 4.202s

3 packages are looking for funding
run npm fund for details

found 1 moderate severity vulnerability
run npm audit fix to fix them, or npm audit for details
pi@raspberrypi:~/.node-red $

looks good, when you start nodered with node-red-start or when you look in /var/log/syslog after a sudo systemctl restart nodered do you see any errors there in the nodered start up?

This seems to be an error, not? How did you install epoll on windows?

1 Like

i use npm onoff module its contain epoll sub module

What happens if you run npm rebuild inside ~/.node-red folder?

epoll@4.0.0 install /home/pi/.node-red/node_modules/node-red-contrib-muxbox-pins/node_modules/epoll
node-gyp rebuild

make: Entering directory '/home/pi/Desktop/piGPIO/node_modules/epoll/build'
CXX(target) Release/obj.target/epoll/src/epoll.o
SOLINK_MODULE(target) Release/obj.target/epoll.node
COPY Release/epoll.node
make: Leaving directory '/home/pi/Desktop/piGPIO/node_modules/epoll/build'

epoll@4.0.0 install /home/pi/.node-red/node_modules/node-red-contrib-muxbox-pins/node_modules/epoll
node-gyp rebuild

make: Entering directory '/home/pi/Desktop/piGPIO/node_modules/epoll/build'
CXX(target) Release/obj.target/epoll/src/epoll.o
SOLINK_MODULE(target) Release/obj.target/epoll.node
COPY Release/epoll.node
make: Leaving directory '/home/pi/Desktop/piGPIO/node_modules/epoll/build'

rpio@2.1.1 install /home/pi/.node-red/node_modules/node-red-contrib-muxbox-pins/node_modules/rpio
node-gyp rebuild

make: Entering directory '/home/pi/Desktop/piGPIO/node_modules/rpio/build'
CXX(target) Release/obj.target/rpio/src/rpio.o
In file included from ../src/rpio.cc:17:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:2294:62: 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]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
In file included from ../../nan/nan.h:56,
from ../src/rpio.cc:17:
../src/rpio.cc: At global scope:
/home/pi/.cache/node-gyp/10.21.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc),
^
/home/pi/.cache/node-gyp/10.21.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/rpio.cc:495:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(rpio, setup)
^~~~~~~~~~~
In file included from /home/pi/.cache/node-gyp/10.21.0/include/node/node.h:63,
from ../../nan/nan.h:56,
from ../src/rpio.cc:17:
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/pi/.cache/node-gyp/10.21.0/include/node/node_object_wrap.h:84:78: required from here
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
reinterpret_cast(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
CC(target) Release/obj.target/rpio/src/bcm2835.o
../src/bcm2835.c: In function ‘bcm2835_gpio_pad’:
../src/bcm2835.c:487:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (bcm2835_pads == MAP_FAILED)
^~
../src/bcm2835.c:490:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
volatile uint32_t
paddr = bcm2835_pads + BCM2835_PADS_GPIO_0_27/4 + group;
^~~~~~~~
../src/bcm2835.c: In function ‘bcm2835_gpio_set_pad’:
../src/bcm2835.c:500:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (bcm2835_pads == MAP_FAILED)
^~
../src/bcm2835.c:503:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
volatile uint32_t* paddr = bcm2835_pads + BCM2835_PADS_GPIO_0_27/4 + group;
^~~~~~~~
SOLINK_MODULE(target) Release/obj.target/rpio.node
COPY Release/rpio.node
make: Leaving directory '/home/pi/Desktop/piGPIO/node_modules/rpio/build'

serialport@8.0.8 postinstall /home/pi/.node-red/node_modules/serialport
node thank-you.js

Thank you for using serialport!
If you rely on this package, please consider supporting our open collective:

Contribute - Open Collective

@serialport/bindings@8.0.8 install /home/pi/.node-red/node_modules/@serialport/bindings
prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=10.21.0 runtime=node arch=arm libc= platform=linux)
make: Entering directory '/home/pi/.node-red/node_modules/@serialport/bindings/build'
CXX(target) Release/obj.target/bindings/src/serialport.o
In file included from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../../nan/nan.h:2294:62: 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]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../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);
^~~~~~~~~~~~~~~
../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);
^~~~~~~~~~~~~~
../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);
^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../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);
^~~~~~~~~~~~
../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);
^~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’:
../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);
^~~~~~~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../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);
^~~~~~~~~~~~~~
../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::Localv8::String& v8str)) {
^
../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
^
In file included from ../../../nan/nan.h:56,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/pi/.cache/node-gyp/10.21.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc),
^
/home/pi/.cache/node-gyp/10.21.0/include/node/node.h:607: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);
^~~~~~~~~~~
In file included from /home/pi/.cache/node-gyp/10.21.0/include/node/node.h:63,
from ../../../nan/nan.h:56,
from ../src/./serialport.h:6,
from ../src/serialport.cpp:1:
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/pi/.cache/node-gyp/10.21.0/include/node/node_object_wrap.h:84:78: required from here
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
reinterpret_cast(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../../../nan/nan_object_wrap.h:65:61: required from here
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
CXX(target) Release/obj.target/bindings/src/serialport_unix.o
In file included from ../src/serialport.h:6,
from ../src/serialport_unix.cpp:2:
../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker
)’:
../../../nan/nan.h:2294:62: 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]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
In file included from /home/pi/.cache/node-gyp/10.21.0/include/node/node.h:63,
from ../../../nan/nan.h:56,
from ../src/serialport.h:6,
from ../src/serialport_unix.cpp:2:
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/pi/.cache/node-gyp/10.21.0/include/node/node_object_wrap.h:84:78: required from here
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
reinterpret_cast(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../../../nan/nan_object_wrap.h:65:61: required from here
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton
)’:
../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);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:
../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);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CXX(target) Release/obj.target/bindings/src/poller.o
In file included from ../src/poller.cpp:1:
../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../../nan/nan.h:2294:62: 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]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
In file included from /home/pi/.cache/node-gyp/10.21.0/include/node/node.h:63,
from ../../../nan/nan.h:56,
from ../src/poller.cpp:1:
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/home/pi/.cache/node-gyp/10.21.0/include/node/node_object_wrap.h:84:78: required from here
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
reinterpret_cast(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../../../nan/nan_object_wrap.h:65:61: required from here
/home/pi/.cache/node-gyp/10.21.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
CXX(target) Release/obj.target/bindings/src/serialport_linux.o
SOLINK_MODULE(target) Release/obj.target/bindings.node
COPY Release/bindings.node
make: Leaving directory '/home/pi/.node-red/node_modules/@serialport/bindings/build'
node-red-contrib-ibm-watson-iot@0.2.8 /home/pi/.node-red/node_modules/node-red-contrib-ibm-watson-iot
ibmiotf@0.2.41 /home/pi/.node-red/node_modules/ibmiotf
axios@0.5.4 /home/pi/.node-red/node_modules/axios
es6-promise@2.3.0 /home/pi/.node-red/node_modules/es6-promise
bluebird@2.11.0 /home/pi/.node-red/node_modules/bluebird
btoa@1.2.1 /home/pi/.node-red/node_modules/btoa
concat-stream@1.6.2 /home/pi/.node-red/node_modules/concat-stream
buffer-from@1.1.1 /home/pi/.node-red/node_modules/buffer-from
inherits@2.0.4 /home/pi/.node-red/node_modules/inherits
readable-stream@2.3.7 /home/pi/.node-red/node_modules/readable-stream
core-util-is@1.0.2 /home/pi/.node-red/node_modules/core-util-is
isarray@1.0.0 /home/pi/.node-red/node_modules/isarray
process-nextick-args@2.0.1 /home/pi/.node-red/node_modules/process-nextick-args
safe-buffer@5.1.2 /home/pi/.node-red/node_modules/safe-buffer
string_decoder@1.1.1 /home/pi/.node-red/node_modules/string_decoder
util-deprecate@1.0.2 /home/pi/.node-red/node_modules/util-deprecate
typedarray@0.0.6 /home/pi/.node-red/node_modules/typedarray
events@1.1.1 /home/pi/.node-red/node_modules/events
form-data@2.5.1 /home/pi/.node-red/node_modules/form-data
asynckit@0.4.0 /home/pi/.node-red/node_modules/asynckit
combined-stream@1.0.8 /home/pi/.node-red/node_modules/combined-stream
delayed-stream@1.0.0 /home/pi/.node-red/node_modules/delayed-stream
mime-types@2.1.27 /home/pi/.node-red/node_modules/mime-types
mime-db@1.44.0 /home/pi/.node-red/node_modules/mime-db
format@0.2.2 /home/pi/.node-red/node_modules/format
loglevel@1.6.8 /home/pi/.node-red/node_modules/loglevel
mqtt@2.18.8 /home/pi/.node-red/node_modules/mqtt
commist@1.1.0 /home/pi/.node-red/node_modules/commist
leven@2.1.0 /home/pi/.node-red/node_modules/leven
minimist@1.2.5 /home/pi/.node-red/node_modules/minimist
end-of-stream@1.4.4 /home/pi/.node-red/node_modules/end-of-stream
once@1.4.0 /home/pi/.node-red/node_modules/once
wrappy@1.0.2 /home/pi/.node-red/node_modules/wrappy
es6-map@0.1.5 /home/pi/.node-red/node_modules/es6-map
d@1.0.1 /home/pi/.node-red/node_modules/d
es5-ext@0.10.53 /home/pi/.node-red/node_modules/es5-ext
es6-iterator@2.0.3 /home/pi/.node-red/node_modules/es6-iterator
es6-symbol@3.1.3 /home/pi/.node-red/node_modules/es6-symbol
ext@1.4.0 /home/pi/.node-red/node_modules/ext
type@2.0.0 /home/pi/.node-red/node_modules/ext/node_modules/type
next-tick@1.0.0 /home/pi/.node-red/node_modules/next-tick
type@1.2.0 /home/pi/.node-red/node_modules/type
es6-set@0.1.5 /home/pi/.node-red/node_modules/es6-set
es6-symbol@3.1.1 /home/pi/.node-red/node_modules/es6-set/node_modules/es6-symbol
event-emitter@0.3.5 /home/pi/.node-red/node_modules/event-emitter
help-me@1.1.0 /home/pi/.node-red/node_modules/help-me
callback-stream@1.1.0 /home/pi/.node-red/node_modules/callback-stream
glob-stream@6.1.0 /home/pi/.node-red/node_modules/glob-stream
extend@3.0.2 /home/pi/.node-red/node_modules/extend
glob@7.1.6 /home/pi/.node-red/node_modules/glob
fs.realpath@1.0.0 /home/pi/.node-red/node_modules/fs.realpath
inflight@1.0.6 /home/pi/.node-red/node_modules/inflight
minimatch@3.0.4 /home/pi/.node-red/node_modules/minimatch
brace-expansion@1.1.11 /home/pi/.node-red/node_modules/brace-expansion
balanced-match@1.0.0 /home/pi/.node-red/node_modules/balanced-match
concat-map@0.0.1 /home/pi/.node-red/node_modules/concat-map
path-is-absolute@1.0.1 /home/pi/.node-red/node_modules/path-is-absolute
glob-parent@3.1.0 /home/pi/.node-red/node_modules/glob-parent
is-glob@3.1.0 /home/pi/.node-red/node_modules/is-glob
is-extglob@2.1.1 /home/pi/.node-red/node_modules/is-extglob
path-dirname@1.0.2 /home/pi/.node-red/node_modules/path-dirname
is-negated-glob@1.0.0 /home/pi/.node-red/node_modules/is-negated-glob
ordered-read-streams@1.0.1 /home/pi/.node-red/node_modules/ordered-read-streams
pumpify@1.5.1 /home/pi/.node-red/node_modules/pumpify
duplexify@3.7.1 /home/pi/.node-red/node_modules/duplexify
stream-shift@1.0.1 /home/pi/.node-red/node_modules/stream-shift
pump@2.0.1 /home/pi/.node-red/node_modules/pumpify/node_modules/pump
remove-trailing-separator@1.1.0 /home/pi/.node-red/node_modules/remove-trailing-separator
to-absolute-glob@2.0.2 /home/pi/.node-red/node_modules/to-absolute-glob
is-absolute@1.0.0 /home/pi/.node-red/node_modules/is-absolute
is-relative@1.0.0 /home/pi/.node-red/node_modules/is-relative
is-unc-path@1.0.0 /home/pi/.node-red/node_modules/is-unc-path
unc-path-regex@0.1.2 /home/pi/.node-red/node_modules/unc-path-regex
is-windows@1.0.2 /home/pi/.node-red/node_modules/is-windows
unique-stream@2.3.1 /home/pi/.node-red/node_modules/unique-stream
json-stable-stringify-without-jsonify@1.0.1 /home/pi/.node-red/node_modules/json-stable-stringify-without-jsonify
through2-filter@3.0.0 /home/pi/.node-red/node_modules/through2-filter
through2@2.0.5 /home/pi/.node-red/node_modules/through2
xtend@4.0.2 /home/pi/.node-red/node_modules/xtend
mqtt-packet@5.6.1 /home/pi/.node-red/node_modules/mqtt-packet
bl@1.2.2 /home/pi/.node-red/node_modules/bl
pump@3.0.0 /home/pi/.node-red/node_modules/pump
reinterval@1.1.0 /home/pi/.node-red/node_modules/reinterval
split2@2.2.0 /home/pi/.node-red/node_modules/split2
websocket-stream@5.5.2 /home/pi/.node-red/node_modules/websocket-stream
ws@3.3.3 /home/pi/.node-red/node_modules/ws
async-limiter@1.0.1 /home/pi/.node-red/node_modules/async-limiter
ultron@1.1.1 /home/pi/.node-red/node_modules/ultron
node-red-contrib-muxbox-pins@1.0.0 /home/pi/.node-red/node_modules/node-red-contrib-muxbox-pins
onoff@6.0.0 /home/pi/.node-red/node_modules/node-red-contrib-muxbox-pins/node_modules/onoff
epoll@4.0.0 /home/pi/.node-red/node_modules/node-red-contrib-muxbox-pins/node_modules/epoll
bindings@1.5.0 /home/pi/.node-red/node_modules/node-red-contrib-muxbox-pins/node_modules/bindings
file-uri-to-path@1.0.0 /home/pi/.node-red/node_modules/node-red-contrib-muxbox-pins/node_modules/file-uri-to-path
nan@2.14.1 /home/pi/.node-red/node_modules/node-red-contrib-muxbox-pins/node_modules/nan
lodash.debounce@4.0.8 /home/pi/.node-red/node_modules/node-red-contrib-muxbox-pins/node_modules/lodash.debounce
rpio@2.1.1 /home/pi/.node-red/node_modules/node-red-contrib-muxbox-pins/node_modules/rpio
node-red-contrib-play-audio@2.5.0 /home/pi/.node-red/node_modules/node-red-contrib-play-audio
node-red-node-pi-gpio@1.1.1 /home/pi/.node-red/node_modules/node-red-node-pi-gpio
node-red-node-ping@0.2.1 /home/pi/.node-red/node_modules/node-red-node-ping
node-red-node-random@0.2.0 /home/pi/.node-red/node_modules/node-red-node-random
node-red-node-serialport@0.10.3 /home/pi/.node-red/node_modules/node-red-node-serialport
serialport@8.0.8 /home/pi/.node-red/node_modules/serialport
@serialport/binding-mock@8.0.6 /home/pi/.node-red/node_modules/@serialport/binding-mock
@serialport/binding-abstract@8.0.6 /home/pi/.node-red/node_modules/@serialport/binding-abstract
debug@4.1.1 /home/pi/.node-red/node_modules/debug
ms@2.1.2 /home/pi/.node-red/node_modules/ms
@serialport/bindings@8.0.8 /home/pi/.node-red/node_modules/@serialport/bindings
@serialport/parser-readline@8.0.6 /home/pi/.node-red/node_modules/@serialport/parser-readline
@serialport/parser-delimiter@8.0.6 /home/pi/.node-red/node_modules/@serialport/parser-delimiter
bindings@1.5.0 /home/pi/.node-red/node_modules/bindings
file-uri-to-path@1.0.0 /home/pi/.node-red/node_modules/file-uri-to-path
nan@2.14.1 /home/pi/.node-red/node_modules/nan
prebuild-install@5.3.5 /home/pi/.node-red/node_modules/prebuild-install
detect-libc@1.0.3 /home/pi/.node-red/node_modules/detect-libc
expand-template@2.0.3 /home/pi/.node-red/node_modules/expand-template
github-from-package@0.0.0 /home/pi/.node-red/node_modules/github-from-package
mkdirp@0.5.5 /home/pi/.node-red/node_modules/mkdirp
napi-build-utils@1.0.2 /home/pi/.node-red/node_modules/napi-build-utils
node-abi@2.18.0 /home/pi/.node-red/node_modules/node-abi
semver@5.7.1 /home/pi/.node-red/node_modules/semver
noop-logger@0.1.1 /home/pi/.node-red/node_modules/noop-logger
npmlog@4.1.2 /home/pi/.node-red/node_modules/npmlog
are-we-there-yet@1.1.5 /home/pi/.node-red/node_modules/are-we-there-yet
delegates@1.0.0 /home/pi/.node-red/node_modules/delegates
console-control-strings@1.1.0 /home/pi/.node-red/node_modules/console-control-strings
gauge@2.7.4 /home/pi/.node-red/node_modules/gauge
aproba@1.2.0 /home/pi/.node-red/node_modules/aproba
has-unicode@2.0.1 /home/pi/.node-red/node_modules/has-unicode
object-assign@4.1.1 /home/pi/.node-red/node_modules/object-assign
signal-exit@3.0.3 /home/pi/.node-red/node_modules/signal-exit
string-width@1.0.2 /home/pi/.node-red/node_modules/string-width
code-point-at@1.1.0 /home/pi/.node-red/node_modules/code-point-at
is-fullwidth-code-point@1.0.0 /home/pi/.node-red/node_modules/is-fullwidth-code-point
number-is-nan@1.0.1 /home/pi/.node-red/node_modules/number-is-nan
strip-ansi@3.0.1 /home/pi/.node-red/node_modules/strip-ansi
ansi-regex@2.1.1 /home/pi/.node-red/node_modules/ansi-regex
wide-align@1.1.3 /home/pi/.node-red/node_modules/wide-align
set-blocking@2.0.0 /home/pi/.node-red/node_modules/set-blocking
rc@1.2.8 /home/pi/.node-red/node_modules/rc
deep-extend@0.6.0 /home/pi/.node-red/node_modules/deep-extend
ini@1.3.5 /home/pi/.node-red/node_modules/ini
strip-json-comments@2.0.1 /home/pi/.node-red/node_modules/strip-json-comments
simple-get@3.1.0 /home/pi/.node-red/node_modules/simple-get
decompress-response@4.2.1 /home/pi/.node-red/node_modules/decompress-response
mimic-response@2.1.0 /home/pi/.node-red/node_modules/mimic-response
simple-concat@1.0.0 /home/pi/.node-red/node_modules/simple-concat
tar-fs@2.1.0 /home/pi/.node-red/node_modules/tar-fs
chownr@1.1.4 /home/pi/.node-red/node_modules/chownr
mkdirp-classic@0.5.3 /home/pi/.node-red/node_modules/mkdirp-classic
tar-stream@2.1.3 /home/pi/.node-red/node_modules/tar-stream
bl@4.0.2 /home/pi/.node-red/node_modules/tar-stream/node_modules/bl
buffer@5.6.0 /home/pi/.node-red/node_modules/buffer
base64-js@1.3.1 /home/pi/.node-red/node_modules/base64-js
ieee754@1.1.13 /home/pi/.node-red/node_modules/ieee754
readable-stream@3.6.0 /home/pi/.node-red/node_modules/tar-stream/node_modules/readable-stream
fs-constants@1.0.0 /home/pi/.node-red/node_modules/fs-constants
tunnel-agent@0.6.0 /home/pi/.node-red/node_modules/tunnel-agent
which-pm-runs@1.0.0 /home/pi/.node-red/node_modules/which-pm-runs
@serialport/parser-byte-length@8.0.6 /home/pi/.node-red/node_modules/@serialport/parser-byte-length
@serialport/parser-cctalk@8.0.6 /home/pi/.node-red/node_modules/@serialport/parser-cctalk
@serialport/parser-ready@8.0.6 /home/pi/.node-red/node_modules/@serialport/parser-ready
@serialport/parser-regex@8.0.6 /home/pi/.node-red/node_modules/@serialport/parser-regex
@serialport/stream@8.0.6 /home/pi/.node-red/node_modules/@serialport/stream
node-red-node-smooth@0.1.2 /home/pi/.node-red/node_modules/node-red-node-smooth

At least it attempted to build something and epoll was mentioned there. I couldn't spot an error from the output either (as it was not properly formatted). Does it work now?

It looks a bit like that was not the full output. There was nothing indicating the end of build.

when i run node-red

Welcome to Node-RED

11 Jul 13:19:22 - [info] Node-RED version: v1.1.2
11 Jul 13:19:22 - [info] Node.js version: v10.21.0
11 Jul 13:19:22 - [info] Linux 4.19.118-v7l+ arm LE
11 Jul 13:19:22 - [info] Loading palette nodes
11 Jul 13:19:24 - [info] Settings file : /home/pi/.node-red/settings.js
11 Jul 13:19:24 - [info] Context store : 'default' [module=memory]
11 Jul 13:19:24 - [info] User directory : /home/pi/.node-red
11 Jul 13:19:24 - [warn] Projects disabled : editorTheme.projects.enabled=false
11 Jul 13:19:24 - [info] Flows file : /home/pi/.node-red/flows_raspberrypi.json
11 Jul 13:19:24 - [warn]

its cant show error on epoll

but its still not working

Show us the package.json from your node. Does it include the node-red section?

1 Like

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