Won't install with current LTS node 14: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)'
I have installed node 14 (lts), which works fine, i could install nemerous modules without any problems. Now trying installing this module i've got an error:
root@localhost:~/node$ sudo npm install bluetooth-serial-port
> [email protected] install /root/node/node_modules/bluetooth-serial-port
> node-gyp configure build
make: Entering directory '/root/node/node_modules/bluetooth-serial-port/build'
CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o
In file included from ../src/linux/BluetoothSerialPort.cc:12:
/root/.cache/node-gyp/14.17.0/include/node/node.h:758:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/root/.cache/node-gyp/14.17.0/include/node/node.h:792:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/linux/BluetoothSerialPort.cc:23:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(BluetoothSerialPort, InitAll)
^~~~~~~~~~~
CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/DeviceINQ.o
../src/linux/DeviceINQ.cc: In static member function ‘static void DeviceINQ::EIO_AfterSdpSearch(uv_work_t*)’:
../src/linux/DeviceINQ.cc:139:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
baton->cb->Call(1, argv);
^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/linux/DeviceINQ.cc: In static member function ‘static void DeviceINQ::Init(v8::Local<v8::Object>)’:
../src/linux/DeviceINQ.cc:166:98: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute warn_unused_result [-Wunused-result]
target->Set(ctx, Nan::New("DeviceINQ").ToLocalChecked(), t->GetFunction(ctx).ToLocalChecked());
^
In file included from ../src/linux/DeviceINQ.cc:12:
/root/.cache/node-gyp/14.17.0/include/node/v8.h:3670:37: note: declared here
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
^~~
../src/linux/DeviceINQ.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DeviceINQ::InquireSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/DeviceINQ.cc:251:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
found->Call(2, argv);
^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/linux/DeviceINQ.cc:255:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
callback->Call(0, argv);
^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/linux/DeviceINQ.cc: In member function ‘virtual void InquireWorker::HandleOKCallback()’:
../src/linux/DeviceINQ.cc:284:26: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
found->Call(2, argv);
^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/linux/DeviceINQ.cc:288:27: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
callback->Call(0, argv);
^
In file included from ../src/linux/DeviceINQ.cc:14:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/linux/DeviceINQ.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DeviceINQ::SdpSearch(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/DeviceINQ.cc:335:88: 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(), &baton->request, EIO_SdpSearch, (uv_after_work_cb)EIO_AfterSdpSearch);
^~~~~~~~~~~~~~~~~~
../src/linux/DeviceINQ.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE DeviceINQ::ListPairedDevices(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/DeviceINQ.cc:366:83: warning: ignoring return value of ‘v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)’, declared with attribute warn_unused_result [-Wunused-result]
cb->Call(Nan::GetCurrentContext(), Nan::GetCurrentContext()->Global(), 1, argv);
^
In file included from ../src/linux/DeviceINQ.cc:12:
/root/.cache/node-gyp/14.17.0/include/node/v8.h:4468:43: note: declared here
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
^~~~
/root/.cache/node-gyp/14.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/root/.cache/node-gyp/14.17.0/include/node/node_object_wrap.h:85:78: required from here
/root/.cache/node-gyp/14.17.0/include/node/v8.h:10874:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/14.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/root/.cache/node-gyp/14.17.0/include/node/v8.h:10874:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BTSerialPortBinding.o
../src/linux/BTSerialPortBinding.cc: In static member function ‘static void BTSerialPortBinding::EIO_AfterConnect(uv_work_t*)’:
../src/linux/BTSerialPortBinding.cc:83:32: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
baton->cb->Call(0, NULL);
^
In file included from ../src/linux/BTSerialPortBinding.cc:14:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/linux/BTSerialPortBinding.cc:90:33: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
baton->ecb->Call(1, argv);
^
In file included from ../src/linux/BTSerialPortBinding.cc:14:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/linux/BTSerialPortBinding.cc: In static member function ‘static void BTSerialPortBinding::EIO_Write(uv_work_t*)’:
../src/linux/BTSerialPortBinding.cc:114:62: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
int bytesSent = write(rfcomm->s, data->bufferData+data->result, bytesToSend);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../src/linux/BTSerialPortBinding.cc: In static member function ‘static void BTSerialPortBinding::EIO_AfterWrite(uv_work_t*)’:
../src/linux/BTSerialPortBinding.cc:143:33: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
data->callback->Call(2, argv);
^
In file included from ../src/linux/BTSerialPortBinding.cc:14:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/linux/BTSerialPortBinding.cc:152:94: 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(), &nextQueuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
^~~~~~~~~~~~~~
../src/linux/BTSerialPortBinding.cc: In static member function ‘static void BTSerialPortBinding::EIO_AfterRead(uv_work_t*)’:
../src/linux/BTSerialPortBinding.cc:206:117: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
Local<Function> bufferConstructor = Local<Function>::Cast(globalObj->Get(Nan::New("Buffer").ToLocalChecked()));
^
In file included from ../src/linux/BTSerialPortBinding.cc:12:
/root/.cache/node-gyp/14.17.0/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
^~~
/root/.cache/node-gyp/14.17.0/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
/root/.cache/node-gyp/14.17.0/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
^~~
/root/.cache/node-gyp/14.17.0/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided
../src/linux/BTSerialPortBinding.cc:215:28: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
baton->cb->Call(2, argv);
^
In file included from ../src/linux/BTSerialPortBinding.cc:14:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/linux/BTSerialPortBinding.cc: In static member function ‘static void BTSerialPortBinding::Init(v8::Local<v8::Object>)’:
../src/linux/BTSerialPortBinding.cc:242:103: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Function>)’
target->Set(Nan::New("BTSerialPortBinding").ToLocalChecked(), t->GetFunction(ctx).ToLocalChecked());
^
In file included from ../src/linux/BTSerialPortBinding.cc:12:
/root/.cache/node-gyp/14.17.0/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
^~~
/root/.cache/node-gyp/14.17.0/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
/root/.cache/node-gyp/14.17.0/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
^~~
/root/.cache/node-gyp/14.17.0/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
../src/linux/BTSerialPortBinding.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BTSerialPortBinding::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/BTSerialPortBinding.cc:290:86: 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(), &baton->request, EIO_Connect, (uv_after_work_cb)EIO_AfterConnect);
^~~~~~~~~~~~~~~~
../src/linux/BTSerialPortBinding.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BTSerialPortBinding::Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/BTSerialPortBinding.cc:323:43: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct BTSerialPortBinding::write_baton_t’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset(baton, 0, sizeof(write_baton_t));
^
In file included from ../src/linux/BTSerialPortBinding.cc:19:
../src/BTSerialPortBinding.h:68:16: note: ‘struct BTSerialPortBinding::write_baton_t’ declared here
struct write_baton_t {
^~~~~~~~~~~~~
../src/linux/BTSerialPortBinding.cc:342:90: 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(), &queuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite);
^~~~~~~~~~~~~~
../src/linux/BTSerialPortBinding.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BTSerialPortBinding::Read(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/linux/BTSerialPortBinding.cc:392:25: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
nc->Call(2, argv);
^
In file included from ../src/linux/BTSerialPortBinding.cc:14:
../../nan/nan.h:1742:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/linux/BTSerialPortBinding.cc:400:87: 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(), &baton->request, EIO_Read, (uv_after_work_cb)EIO_AfterRead);
^~~~~~~~~~~~~
In file included from ../src/linux/BTSerialPortBinding.cc:12:
/root/.cache/node-gyp/14.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
/root/.cache/node-gyp/14.17.0/include/node/node_object_wrap.h:85:78: required from here
/root/.cache/node-gyp/14.17.0/include/node/v8.h:10874:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
reinterpret_cast<Callback>(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/14.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
../../nan/nan_object_wrap.h:65:61: required from here
/root/.cache/node-gyp/14.17.0/include/node/v8.h:10874:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
make: *** [BluetoothSerialPort.target.mk:115: Release/obj.target/BluetoothSerialPort/src/linux/BTSerialPortBinding.o] Error 1
make: Leaving directory '/root/node/node_modules/bluetooth-serial-port/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:376:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 5.10.14+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /root/node/node_modules/bluetooth-serial-port
gyp ERR! node -v v14.17.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/root/node/package.json'
npm WARN node No description
npm WARN node No repository field.
npm WARN node No README data
npm WARN node No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-06-03T07_29_58_312Z-debug.log
the logs mentioned above are as follows:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'bluetooth-serial-port' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session d5eda56a78716bf6
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/bluetooth-serial-port 1155ms (from cache)
8 silly pacote tag manifest for bluetooth-serial-port@latest fetched in 1329ms
9 timing stage:loadCurrentTree Completed in 1892ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 5ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 15ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule [email protected] checking installable status
17 http fetch GET 304 https://registry.npmjs.org/bindings 1337ms (from cache)
18 http fetch GET 304 https://registry.npmjs.org/nan 1407ms (from cache)
19 silly pacote range manifest for [email protected] fetched in 1473ms
20 silly resolveWithNewModule [email protected] checking installable status
21 http fetch GET 304 https://registry.npmjs.org/stable 1442ms (from cache)
22 silly pacote tag manifest for nan@latest fetched in 1499ms
23 silly resolveWithNewModule [email protected] checking installable status
24 silly pacote range manifest for stable@^0.1.8 fetched in 1504ms
25 silly resolveWithNewModule [email protected] checking installable status
26 http fetch GET 304 https://registry.npmjs.org/@types%2fnode 1565ms (from cache)
27 silly pacote range manifest for @types/node@^7.0.10 fetched in 1880ms
28 silly resolveWithNewModule @types/[email protected] checking installable status
29 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 2097ms
30 timing stage:loadIdealTree Completed in 2177ms
31 silly currentTree node
32 silly idealTree node
32 silly idealTree ├── @types/[email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree ├── [email protected]
32 silly idealTree └── [email protected]
33 silly install generateActionsToTake
34 timing stage:generateActionsToTake Completed in 95ms
35 silly diffTrees action count 5
36 silly diffTrees add @types/[email protected]
37 silly diffTrees add [email protected]
38 silly diffTrees add [email protected]
39 silly diffTrees add [email protected]
40 silly diffTrees add [email protected]
41 silly decomposeActions action count 40
42 silly decomposeActions fetch @types/[email protected]
43 silly decomposeActions extract @types/[email protected]
44 silly decomposeActions preinstall @types/[email protected]
45 silly decomposeActions build @types/[email protected]
46 silly decomposeActions install @types/[email protected]
47 silly decomposeActions postinstall @types/[email protected]
48 silly decomposeActions finalize @types/[email protected]
49 silly decomposeActions refresh-package-json @types/[email protected]
50 silly decomposeActions fetch [email protected]
51 silly decomposeActions extract [email protected]
52 silly decomposeActions preinstall [email protected]
53 silly decomposeActions build [email protected]
54 silly decomposeActions install [email protected]
55 silly decomposeActions postinstall [email protected]
56 silly decomposeActions finalize [email protected]
57 silly decomposeActions refresh-package-json [email protected]
58 silly decomposeActions fetch [email protected]
59 silly decomposeActions extract [email protected]
60 silly decomposeActions preinstall [email protected]
61 silly decomposeActions build [email protected]
62 silly decomposeActions install [email protected]
63 silly decomposeActions postinstall [email protected]
64 silly decomposeActions finalize [email protected]
65 silly decomposeActions refresh-package-json [email protected]
66 silly decomposeActions fetch [email protected]
67 silly decomposeActions extract [email protected]
68 silly decomposeActions preinstall [email protected]
69 silly decomposeActions build [email protected]
70 silly decomposeActions install [email protected]
71 silly decomposeActions postinstall [email protected]
72 silly decomposeActions finalize [email protected]
73 silly decomposeActions refresh-package-json [email protected]
74 silly decomposeActions fetch [email protected]
75 silly decomposeActions extract [email protected]
76 silly decomposeActions preinstall [email protected]
77 silly decomposeActions build [email protected]
78 silly decomposeActions install [email protected]
79 silly decomposeActions postinstall [email protected]
80 silly decomposeActions finalize [email protected]
81 silly decomposeActions refresh-package-json [email protected]
82 silly install executeActions
83 silly doSerial global-install 40
84 verbose correctMkdir /root/.npm/_locks correctMkdir not in flight; initializing
85 verbose lock using /root/.npm/_locks/staging-a9a1fec00fe79a63.lock for /root/node/node_modules/.staging
86 silly doParallel extract 5
87 silly extract @types/[email protected]
88 silly extract [email protected]
89 silly extract [email protected]
90 silly extract [email protected]
91 silly extract [email protected]
92 silly tarball trying [email protected] by hash: sha1-FK1hE4EtLTfXLme0ystLtyZQXxE=
93 silly tarball trying nan@latest by hash: sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==
94 silly tarball trying stable@^0.1.8 by hash: sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==
95 silly tarball trying bluetooth-serial-port@latest by hash: sha512-R/ozYD6bUPBaYstowIwPPezZph2zW84Icryh02vVJYQxWuAcigxSoZRljbvp4IEGMWwjREArLQCKxT6B/ME60A==
96 silly tarball trying @types/node@^7.0.10 by hash: sha512-29GS75BE8asnTno3yB6ubOJOO0FboExEqNJy4bpz0GSmW/8wPTNL4h9h63c6s1uTrOopCmJYe/4yJLh5r92ZUA==
97 timing audit submit Completed in 890ms
98 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 890ms
99 timing audit body Completed in 24ms
100 silly extract [email protected] extracted to /root/node/node_modules/.staging/bindings-3344ed6e (840ms)
101 silly extract stable@^0.1.8 extracted to /root/node/node_modules/.staging/stable-147ce1ed (873ms)
102 silly extract @types/node@^7.0.10 extracted to /root/node/node_modules/.staging/@types/node-bca4fe05 (981ms)
103 silly extract nan@latest extracted to /root/node/node_modules/.staging/nan-8c95a7e2 (1388ms)
104 silly extract bluetooth-serial-port@latest extracted to /root/node/node_modules/.staging/bluetooth-serial-port-dac87a2a (2515ms)
105 timing action:extract Completed in 2573ms
106 silly doReverseSerial unbuild 40
107 silly doSerial remove 40
108 silly doSerial move 40
109 silly doSerial finalize 40
110 silly finalize /root/node/node_modules/@types/node
111 silly finalize /root/node/node_modules/bindings
112 silly finalize /root/node/node_modules/nan
113 silly finalize /root/node/node_modules/stable
114 silly finalize /root/node/node_modules/bluetooth-serial-port
115 timing action:finalize Completed in 157ms
116 silly doParallel refresh-package-json 5
117 silly refresh-package-json /root/node/node_modules/@types/node
118 silly refresh-package-json /root/node/node_modules/bindings
119 silly refresh-package-json /root/node/node_modules/nan
120 silly refresh-package-json /root/node/node_modules/stable
121 silly refresh-package-json /root/node/node_modules/bluetooth-serial-port
122 timing action:refresh-package-json Completed in 453ms
123 silly doParallel preinstall 5
124 silly preinstall @types/[email protected]
125 info lifecycle @types/[email protected]~preinstall: @types/[email protected]
126 silly preinstall [email protected]
127 info lifecycle [email protected]~preinstall: [email protected]
128 silly preinstall [email protected]
129 info lifecycle [email protected]~preinstall: [email protected]
130 silly preinstall [email protected]
131 info lifecycle [email protected]~preinstall: [email protected]
132 silly preinstall [email protected]
133 info lifecycle [email protected]~preinstall: [email protected]
134 timing action:preinstall Completed in 39ms
135 silly doSerial build 40
136 silly build @types/[email protected]
137 info linkStuff @types/[email protected]
138 silly linkStuff @types/[email protected] has /root/node/node_modules as its parent node_modules
139 silly build [email protected]
140 info linkStuff [email protected]
141 silly linkStuff [email protected] has /root/node/node_modules as its parent node_modules
142 silly build [email protected]
143 info linkStuff [email protected]
144 silly linkStuff [email protected] has /root/node/node_modules as its parent node_modules
145 silly build [email protected]
146 info linkStuff [email protected]
147 silly linkStuff [email protected] has /root/node/node_modules as its parent node_modules
148 silly build [email protected]
149 info linkStuff [email protected]
150 silly linkStuff [email protected] has /root/node/node_modules as its parent node_modules
151 timing action:build Completed in 45ms
152 silly doSerial global-link 40
153 silly doParallel update-linked 0
154 silly doSerial install 40
155 silly install @types/[email protected]
156 info lifecycle @types/[email protected]~install: @types/[email protected]
157 silly install [email protected]
158 info lifecycle [email protected]~install: [email protected]
159 silly install [email protected]
160 info lifecycle [email protected]~install: [email protected]
161 silly install [email protected]
162 info lifecycle [email protected]~install: [email protected]
163 silly install [email protected]
164 info lifecycle [email protected]~install: [email protected]
165 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle false
166 verbose lifecycle [email protected]~install: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/node/node_modules/bluetooth-serial-port/node_modules/.bin:/root/node/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
167 verbose lifecycle [email protected]~install: CWD: /root/node/node_modules/bluetooth-serial-port
168 silly lifecycle [email protected]~install: Args: [ '-c', 'node-gyp configure build' ]
169 silly lifecycle [email protected]~install: Returned: code: 1 signal: null
170 info lifecycle [email protected]~install: Failed to exec install script
171 timing action:install Completed in 40220ms
172 verbose unlock done using /root/.npm/_locks/staging-a9a1fec00fe79a63.lock for /root/node/node_modules/.staging
173 timing stage:rollbackFailedOptional Completed in 541ms
174 timing stage:runTopLevelLifecycles Completed in 48570ms
175 silly saveTree node
175 silly saveTree └─┬ [email protected]
175 silly saveTree ├── @types/[email protected]
175 silly saveTree ├── [email protected]
175 silly saveTree ├── [email protected]
175 silly saveTree └── [email protected]
176 warn enoent ENOENT: no such file or directory, open '/root/node/package.json'
177 verbose enoent This is related to npm not being able to find a file.
178 warn node No description
179 warn node No repository field.
180 warn node No README data
181 warn node No license field.
182 verbose stack Error: [email protected] install: `node-gyp configure build`
182 verbose stack Exit status 1
182 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
182 verbose stack at EventEmitter.emit (events.js:376:20)
182 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
182 verbose stack at ChildProcess.emit (events.js:376:20)
182 verbose stack at maybeClose (internal/child_process.js:1055:16)
182 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
183 verbose pkgid [email protected]
184 verbose cwd /root/node
185 verbose Linux 5.10.14+
186 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "bluetooth-serial-port"
187 verbose node v14.17.0
188 verbose npm v6.14.13
189 error code ELIFECYCLE
190 error errno 1
191 error [email protected] install: `node-gyp configure build`
191 error Exit status 1
192 error Failed at the [email protected] install script.
192 error This is probably not a problem with npm. There is likely additional logging output above.
193 verbose exit [ 1, true ]
System is a Debian 10 on 32bit ARM (armv7l) A20 from Allwinner.
hope for fix :-)
with best regards, Peter
Hi Peter.
Thanks for your report. I deprecated this module some time ago after maintaining it for quite some years. You may want to check out the forks of this module as some of them may have fixes for this issue.
Good luck!
Working on a fix, please check the next-release branch and let me know if it works (or does not work) for you!
On macos there is an issue. I believe the async behavior using the background worker does not work anymore on the latest sdk.