prebuild-install info begin Prebuild-install version 5.3.6
prebuild-install info looking for cached prebuild @ /home/pi/.npm/_prebuilds/89a9c3-usb-v1.7.1-napi-v4-linux-arm.tar.gz
prebuild-install info found cached prebuild
prebuild-install info unpacking @ /home/pi/.npm/_prebuilds/89a9c3-usb-v1.7.1-napi-v4-linux-arm.tar.gz
prebuild-install info unpack resolved to /home/pi/.node-red/node_modules/usb/build/Release/usb_bindings.node
prebuild-install info install Successfully installed prebuilt binary!
make: Entering directory '/home/pi/.node-red/node_modules/bluetooth-hci-socket/build'
CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
../src/BluetoothHciSocket.cpp:128:82: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
get->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction());
^
In file included from /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:67,
from /home/pi/.cache/node-gyp/12.22.1/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^~~
/home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided
../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’:
../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*’ is deprecated [-Wdeprecated-declarations]
back(Nan::New
In file included from ../src/BluetoothHciSocket.cpp:8:
../../nan/nan.h:1047:46: note: declared here
NAN_DEPRECATED inline v8::Local MakeCallback(
^~~~
../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*’ is deprecated [-Wdeprecated-declarations]
back(Nan::New
In file included from ../src/BluetoothHciSocket.cpp:8:
../../nan/nan.h:1047:46: note: declared here
NAN_DEPRECATED inline v8::Local MakeCallback(
^~~~
../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’:
../src/BluetoothHciSocket.cpp:269:109: warning: ‘v8::Local v8::Object::Get(v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
or = Local::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked()));
^
In file included from /home/pi/.cache/node-gyp/12.22.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:67,
from /home/pi/.cache/node-gyp/12.22.1/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:3553:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/home/pi/.cache/node-gyp/12.22.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~
../src/BluetoothHciSocket.cpp:275:72: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::Local [1])’
Local error = errorConstructor->NewInstance(1, constructorArgs);
^
In file included from /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:67,
from /home/pi/.cache/node-gyp/12.22.1/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:4281:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local) const’
V8_WARN_UNUSED_RESULT MaybeLocal’ is deprecated [-Wdeprecated-declarations]
back(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
In file included from ../src/BluetoothHciSocket.cpp:8:
../../nan/nan.h:1047:46: note: declared here
NAN_DEPRECATED inline v8::Local MakeCallback(
^~~~
../src/BluetoothHciSocket.cpp:282:93: warning: ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*’ is deprecated [-Wdeprecated-declarations]
back(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
In file included from ../src/BluetoothHciSocket.cpp:8:
../../nan/nan.h:1047:46: note: declared here
NAN_DEPRECATED inline v8::Local MakeCallback(
^~~~
../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/BluetoothHciSocket.cpp:395:34: error: no matching function for call to ‘v8::Value::IntegerValue()’
devId = arg0->IntegerValue();
^
In file included from /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:67,
from /home/pi/.cache/node-gyp/12.22.1/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:2705:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’
V8_WARN_UNUSED_RESULT Maybe IntegerValue(
^~~~
/home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided
../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/BluetoothHciSocket.cpp:417:34: error: no matching function for call to ‘v8::Value::IntegerValue()’
devId = arg0->IntegerValue();
^
In file included from /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:67,
from /home/pi/.cache/node-gyp/12.22.1/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:2705:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’
V8_WARN_UNUSED_RESULT Maybe IntegerValue(
^~~~
/home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided
In file included from /home/pi/.cache/node-gyp/12.22.1/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
../src/BluetoothHciSocket.cpp: At global scope:
/home/pi/.cache/node-gyp/12.22.1/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Local, v8::Local, void)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/pi/.cache/node-gyp/12.22.1/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~
../src/BluetoothHciSocket.cpp:499:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(binding, BluetoothHciSocket::Init);
^~~
make: *** [binding.target.mk:109: Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1
make: Leaving directory '/home/pi/.node-red/node_modules/bluetooth-hci-socket/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 5.10.17-v7l+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/.node-red/node_modules/bluetooth-hci-socket
gyp ERR! node -v v12.22.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/bluetooth-hci-socket):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
node-red-contrib-spruthub@1.0.0-beta.0
updated 1 package and audited 1098 packages in 27.83s
57 packages are looking for funding
run npm fund for details
found 69 vulnerabilities (7 low, 9 moderate, 53 high)
run npm audit fix to fix them, or npm audit for details
Обновил Spruthub
Обновил node red , перезапустил node red.
И нет аксессуаров. Прикладывадаю логи с установки.
pi@raspberrypi:~ $ cd ~/.node-red && npm install node-red-contrib-spruthub@beta && sudo systemctl restart nodered.service
prebuild-install info begin Prebuild-install version 5.3.6 prebuild-install info looking for cached prebuild @ /home/pi/.npm/_prebuilds/89a9c3-usb-v1.7.1-napi-v4-linux-arm.tar.gz prebuild-install info found cached prebuild prebuild-install info unpacking @ /home/pi/.npm/_prebuilds/89a9c3-usb-v1.7.1-napi-v4-linux-arm.tar.gz prebuild-install info unpack resolved to /home/pi/.node-red/node_modules/usb/build/Release/usb_bindings.node prebuild-install info install Successfully installed prebuilt binary!
make: Entering directory '/home/pi/.node-red/node_modules/bluetooth-hci-socket/build' CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o ../src/BluetoothHciSocket.cpp: In static member function ‘static void BluetoothHciSocket::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’: ../src/BluetoothHciSocket.cpp:128:82: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ get->Set(Nan::New("BluetoothHciSocket").ToLocalChecked(), tmpl->GetFunction()); ^
In file included from /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:67, from /home/pi/.cache/node-gyp/12.22.1/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^ Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*’ is deprecated [-Wdeprecated-declarations]
back(Nan::New
~~/home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::poll()’: ../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::LocalIn file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h:1047:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback(
^ Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*’ is deprecated [-Wdeprecated-declarations]
back(Nan::New
~~~ ../src/BluetoothHciSocket.cpp:251:95: warning: ‘v8::LocalIn file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h:1047:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback(
^ v8::Object::Get(v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
or = Local::Cast(globalObj->Get(Nan::New("Error").ToLocalChecked()));
^
~~~ ../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’: ../src/BluetoothHciSocket.cpp:269:109: warning: ‘v8::LocalIn file included from /home/pi/.cache/node-gyp/12.22.1/include/node/v8-internal.h:14, from /home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:27, from /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:67, from /home/pi/.cache/node-gyp/12.22.1/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/home/pi/.cache/node-gyp/12.22.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ [1])’
Local error = errorConstructor->NewInstance(1, constructorArgs);
^
In file included from /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:67,
from /home/pi/.cache/node-gyp/12.22.1/include/node/node_buffer.h:25,
from ../src/BluetoothHciSocket.cpp:7:
/home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:4281:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local) const’
V8_WARN_UNUSED_RESULT MaybeLocal’ is deprecated [-Wdeprecated-declarations]
back(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
~~~~~ ../src/BluetoothHciSocket.cpp:275:72: error: no matching function for call to ‘v8::Function::NewInstance(int, v8::LocalIn file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h:1047:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback(
^ Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local*’ is deprecated [-Wdeprecated-declarations]
back(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
~~~ ../src/BluetoothHciSocket.cpp:282:93: warning: ‘v8::LocalIn file included from ../src/BluetoothHciSocket.cpp:8: ../../nan/nan.h:1047:46: note: declared here NAN_DEPRECATED inline v8::Local MakeCallback(
^ v8::Value::IntegerValue(v8::Local) const’
V8_WARN_UNUSED_RESULT Maybe IntegerValue(
^ v8::Value::IntegerValue(v8::Local) const’
V8_WARN_UNUSED_RESULT Maybe IntegerValue(
^)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Local, v8::Local, void )’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/pi/.cache/node-gyp/12.22.1/include/node/node.h:770:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^
~~~ ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindRaw(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/BluetoothHciSocket.cpp:395:34: error: no matching function for call to ‘v8::Value::IntegerValue()’ devId = arg0->IntegerValue(); ^ In file included from /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:67, from /home/pi/.cache/node-gyp/12.22.1/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:2705:40: note: candidate: ‘v8::Maybe~~~ /home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided ../src/BluetoothHciSocket.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BluetoothHciSocket::BindUser(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/BluetoothHciSocket.cpp:417:34: error: no matching function for call to ‘v8::Value::IntegerValue()’ devId = arg0->IntegerValue(); ^ In file included from /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:67, from /home/pi/.cache/node-gyp/12.22.1/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: /home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:2705:40: note: candidate: ‘v8::Maybe~~~ /home/pi/.cache/node-gyp/12.22.1/include/node/v8.h:2705:40: note: candidate expects 1 argument, 0 provided In file included from /home/pi/.cache/node-gyp/12.22.1/include/node/node_buffer.h:25, from ../src/BluetoothHciSocket.cpp:7: ../src/BluetoothHciSocket.cpp: At global scope: /home/pi/.cache/node-gyp/12.22.1/include/node/node.h:736:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Local~~~~ ../src/BluetoothHciSocket.cpp:499:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(binding, BluetoothHciSocket::Init); ^~~make: *** [binding.target.mk:109: Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1 make: Leaving directory '/home/pi/.node-red/node_modules/bluetooth-hci-socket/build' gyp ERR! build error gyp ERR! stack Error:make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:314:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) gyp ERR! System Linux 5.10.17-v7l+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/pi/.node-red/node_modules/bluetooth-hci-socket gyp ERR! node -v v12.22.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/bluetooth-hci-socket): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 install:node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 157 packages are looking for funding run
npm fund
for detailsfound 69 vulnerabilities (7 low, 9 moderate, 53 high) run
npm audit fix
to fix them, ornpm audit
for details