Hi,
I'm running Node-RED v2.1.3 on Ubuntu 21.10 (GNU/Linux 5.13.0-1010-raspi aarch64) and I get the following error log when trying to install this module. I'm pretty new to Linux and Node-RED and can't make any sense of what this is telling me, so any help would be appreciated. Thanks
-----------------------------------------------------------
2021-11-24T17:25:17.995Z Install : node-red-contrib-midi 1.0.1
2021-11-24T17:25:18.076Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-midi@1.0.1
2021-11-24T17:25:26.229Z [out]
2021-11-24T17:25:26.229Z [out] > midi@0.9.5 install /home/ubuntu/.node-red/node_modules/midi
2021-11-24T17:25:26.229Z [out] > node-gyp rebuild
2021-11-24T17:25:26.229Z [out]
2021-11-24T17:25:28.310Z [out] make: Entering directory '/home/ubuntu/.node-red/node_modules/midi/build'
2021-11-24T17:25:28.340Z [out] CXX(target) Release/obj.target/midi/src/node-midi.o
2021-11-24T17:25:32.112Z [err] ../src/node-midi.cpp:14:26: error: ‘v8::Handle’ has not been declared
2021-11-24T17:25:32.112Z [err] 14 | static void Init(v8::Handle<v8::Object> target)
2021-11-24T17:25:32.112Z [err] | ^~~~~~
2021-11-24T17:25:32.112Z [err] ../src/node-midi.cpp:14:32: error: expected ‘,’ or ‘...’ before ‘<’ token
2021-11-24T17:25:32.112Z [err] 14 | static void Init(v8::Handle<v8::Object> target)
2021-11-24T17:25:32.112Z [err] | ^
2021-11-24T17:25:32.146Z [err] ../src/node-midi.cpp: In static member function ‘static void NodeMidiOutput::Init(int)’:
2021-11-24T17:25:32.146Z [err] ../src/node-midi.cpp:33:9: error: ‘target’ was not declared in this scope
2021-11-24T17:25:32.146Z [err] 33 | target->Set(Nan::New<v8::String>("output").ToLocalChecked(), t->GetFunction());
2021-11-24T17:25:32.146Z [err] | ^~~~~~
2021-11-24T17:25:32.146Z [err] ../src/node-midi.cpp:33:84: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
2021-11-24T17:25:32.146Z [err] 33 | target->Set(Nan::New<v8::String>("output").ToLocalChecked(), t->GetFunction());
2021-11-24T17:25:32.146Z [err] | ~~~~~~~~~~~~~~^~
2021-11-24T17:25:32.149Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.149Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.149Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.149Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:6482:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
2021-11-24T17:25:32.149Z [err] 6482 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
2021-11-24T17:25:32.149Z [err] | ^~~~~~~~~~~
2021-11-24T17:25:32.158Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:6482:46: note: candidate expects 1 argument, 0 provided
2021-11-24T17:25:32.167Z [err] ../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiOutput::GetPortName(Nan::NAN_METHOD_ARGS_TYPE)’:
2021-11-24T17:25:32.167Z [err] ../src/node-midi.cpp:76:55: error: no matching function for call to ‘v8::Value::Uint32Value()’
2021-11-24T17:25:32.167Z [err] 76 | unsigned int portNumber = info[0]->Uint32Value();
2021-11-24T17:25:32.167Z [err] | ~~~~~~~~~~~~~~~~~~~~^~
2021-11-24T17:25:32.167Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.167Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.167Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.167Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
2021-11-24T17:25:32.167Z [err] 2866 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2021-11-24T17:25:32.167Z [err] | ^~~~~~~~~~~
2021-11-24T17:25:32.167Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2866:41: note: candidate expects 1 argument, 0 provided
2021-11-24T17:25:32.169Z [err] ../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiOutput::OpenPort(Nan::NAN_METHOD_ARGS_TYPE)’:
2021-11-24T17:25:32.169Z [err] ../src/node-midi.cpp:88:55: error: no matching function for call to ‘v8::Value::Uint32Value()’
2021-11-24T17:25:32.169Z [err] 88 | unsigned int portNumber = info[0]->Uint32Value();
2021-11-24T17:25:32.169Z [err] | ~~~~~~~~~~~~~~~~~~~~^~
2021-11-24T17:25:32.169Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.169Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.169Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.169Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
2021-11-24T17:25:32.169Z [err] 2866 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2021-11-24T17:25:32.169Z [err] | ^~~~~~~~~~~
2021-11-24T17:25:32.169Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2866:41: note: candidate expects 1 argument, 0 provided
2021-11-24T17:25:32.170Z [err] ../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiOutput::OpenVirtualPort(Nan::NAN_METHOD_ARGS_TYPE)’:
2021-11-24T17:25:32.170Z [err] ../src/node-midi.cpp:105:73: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::String>)’
2021-11-24T17:25:32.170Z [err] 105 | std::string name(*v8::String::Utf8Value(info[0].As<v8::String>()));
2021-11-24T17:25:32.170Z [err] | ^
2021-11-24T17:25:32.171Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.171Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.171Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.171Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3287:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)’
2021-11-24T17:25:32.171Z [err] 3287 | Utf8Value(Isolate* isolate, Local<v8::Value> obj);
2021-11-24T17:25:32.171Z [err] | ^~~~~~~~~
2021-11-24T17:25:32.171Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3287:5: note: candidate expects 2 arguments, 1 provided
2021-11-24T17:25:32.172Z [err] ../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiOutput::SendMessage(Nan::NAN_METHOD_ARGS_TYPE)’:
2021-11-24T17:25:32.172Z [err] ../src/node-midi.cpp:127:58: error: no matching function for call to ‘v8::Value::ToObject()’
2021-11-24T17:25:32.172Z [err] 127 | v8::Local<v8::Object> message = info[0]->ToObject();
2021-11-24T17:25:32.172Z [err] | ~~~~~~~~~~~~~~~~~^~
2021-11-24T17:25:32.172Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.172Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.172Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.172Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
2021-11-24T17:25:32.172Z [err] 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
2021-11-24T17:25:32.172Z [err] | ^~~~~~~~
2021-11-24T17:25:32.172Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
2021-11-24T17:25:32.173Z [err] ../src/node-midi.cpp:128:45: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
2021-11-24T17:25:32.173Z [err] 128 | int32_t messageLength = message->Get(Nan::New<v8::String>("length").ToLocalChecked())->Int32Value();
2021-11-24T17:25:32.173Z [err] | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-11-24T17:25:32.173Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.173Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.173Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.173Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
2021-11-24T17:25:32.173Z [err] 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2021-11-24T17:25:32.173Z [err] | ^~~
2021-11-24T17:25:32.173Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
2021-11-24T17:25:32.173Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
2021-11-24T17:25:32.173Z [err] 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2021-11-24T17:25:32.173Z [err] | ^~~
2021-11-24T17:25:32.173Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided
2021-11-24T17:25:32.179Z [err] ../src/node-midi.cpp:131:49: error: no matching function for call to ‘v8::Object::Get(Nan::imp::IntegerFactory<v8::Integer>::return_t)’
2021-11-24T17:25:32.179Z [err] 131 | messageOutput.push_back(message->Get(Nan::New<v8::Integer>(i))->Int32Value());
2021-11-24T17:25:32.179Z [err] | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
2021-11-24T17:25:32.179Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.179Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.179Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.179Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
2021-11-24T17:25:32.179Z [err] 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2021-11-24T17:25:32.179Z [err] | ^~~
2021-11-24T17:25:32.179Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
2021-11-24T17:25:32.179Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
2021-11-24T17:25:32.179Z [err] 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2021-11-24T17:25:32.179Z [err] | ^~~
2021-11-24T17:25:32.179Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided
2021-11-24T17:25:32.192Z [err] ../src/node-midi.cpp: At global scope:
2021-11-24T17:25:32.192Z [err] ../src/node-midi.cpp:158:26: error: ‘v8::Handle’ has not been declared
2021-11-24T17:25:32.192Z [err] 158 | static void Init(v8::Handle<v8::Object> target)
2021-11-24T17:25:32.192Z [err] | ^~~~~~
2021-11-24T17:25:32.192Z [err] ../src/node-midi.cpp:158:32: error: expected ‘,’ or ‘...’ before ‘<’ token
2021-11-24T17:25:32.192Z [err] 158 | static void Init(v8::Handle<v8::Object> target)
2021-11-24T17:25:32.192Z [err] | ^
2021-11-24T17:25:32.217Z [err] ../src/node-midi.cpp: In static member function ‘static void NodeMidiInput::Init(int)’:
2021-11-24T17:25:32.217Z [err] ../src/node-midi.cpp:177:9: error: ‘target’ was not declared in this scope
2021-11-24T17:25:32.217Z [err] 177 | target->Set(Nan::New<v8::String>("input").ToLocalChecked(), t->GetFunction());
2021-11-24T17:25:32.217Z [err] | ^~~~~~
2021-11-24T17:25:32.219Z [err] ../src/node-midi.cpp:177:83: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
2021-11-24T17:25:32.219Z [err] 177 | target->Set(Nan::New<v8::String>("input").ToLocalChecked(), t->GetFunction());
2021-11-24T17:25:32.219Z [err] | ~~~~~~~~~~~~~~^~
2021-11-24T17:25:32.219Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.219Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.219Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.219Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:6482:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
2021-11-24T17:25:32.219Z [err] 6482 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
2021-11-24T17:25:32.219Z [err] | ^~~~~~~~~~~
2021-11-24T17:25:32.219Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:6482:46: note: candidate expects 1 argument, 0 provided
2021-11-24T17:25:32.223Z [err] ../src/node-midi.cpp: In static member function ‘static void NodeMidiInput::EmitMessage(uv_async_t*)’:
2021-11-24T17:25:32.223Z [err] ../src/node-midi.cpp:198:68: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
2021-11-24T17:25:32.223Z [err] 198 | v8::Local<v8::Function> emitFunction = input->handle()->Get(Nan::New<v8::String>(symbol_emit).ToLocalChecked()).As<v8::Function>();
2021-11-24T17:25:32.223Z [err] | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-11-24T17:25:32.224Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.224Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.224Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.224Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
2021-11-24T17:25:32.224Z [err] 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2021-11-24T17:25:32.224Z [err] | ^~~
2021-11-24T17:25:32.224Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided
2021-11-24T17:25:32.224Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
2021-11-24T17:25:32.224Z [err] 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
2021-11-24T17:25:32.224Z [err] | ^~~
2021-11-24T17:25:32.224Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided
2021-11-24T17:25:32.224Z [err] ../src/node-midi.cpp:198:136: error: expected primary-expression before ‘>’ token
2021-11-24T17:25:32.224Z [err] 198 | v8::Local<v8::Function> emitFunction = input->handle()->Get(Nan::New<v8::String>(symbol_emit).ToLocalChecked()).As<v8::Function>();
2021-11-24T17:25:32.224Z [err] | ^
2021-11-24T17:25:32.224Z [err] ../src/node-midi.cpp:198:138: error: expected primary-expression before ‘)’ token
2021-11-24T17:25:32.224Z [err] 198 | v8::Local<v8::Function> emitFunction = input->handle()->Get(Nan::New<v8::String>(symbol_emit).ToLocalChecked()).As<v8::Function>();
2021-11-24T17:25:32.224Z [err] | ^
2021-11-24T17:25:32.229Z [err] ../src/node-midi.cpp:208:26: error: no matching function for call to ‘v8::Array::Set(Nan::imp::FactoryBase<v8::Number>::return_t, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
2021-11-24T17:25:32.229Z [err] 208 | data->Set(Nan::New<v8::Number>(i), Nan::New<v8::Integer>(message->message[i]));
2021-11-24T17:25:32.229Z [err] | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-11-24T17:25:32.229Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.229Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.229Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.229Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/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>)’
2021-11-24T17:25:32.229Z [err] 3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
2021-11-24T17:25:32.229Z [err] | ^~~
2021-11-24T17:25:32.229Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided
2021-11-24T17:25:32.229Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
2021-11-24T17:25:32.229Z [err] 3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
2021-11-24T17:25:32.229Z [err] | ^~~
2021-11-24T17:25:32.229Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided
2021-11-24T17:25:32.230Z [err] ../src/node-midi.cpp:211:30: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
2021-11-24T17:25:32.230Z [err] 211 | Nan::MakeCallback(input->handle(), emitFunction, 3, info);
2021-11-24T17:25:32.230Z [err] | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-11-24T17:25:32.230Z [err] In file included from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.230Z [err] ../../nan/nan.h:1028:46: note: declared here
2021-11-24T17:25:32.230Z [err] 1028 | NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
2021-11-24T17:25:32.230Z [err] | ^~~~~~~~~~~~
2021-11-24T17:25:32.234Z [err] ../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiInput::GetPortName(Nan::NAN_METHOD_ARGS_TYPE)’:
2021-11-24T17:25:32.234Z [err] ../src/node-midi.cpp:262:55: error: no matching function for call to ‘v8::Value::Uint32Value()’
2021-11-24T17:25:32.234Z [err] 262 | unsigned int portNumber = info[0]->Uint32Value();
2021-11-24T17:25:32.234Z [err] | ~~~~~~~~~~~~~~~~~~~~^~
2021-11-24T17:25:32.235Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.235Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.235Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.235Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
2021-11-24T17:25:32.235Z [err] 2866 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2021-11-24T17:25:32.235Z [err] | ^~~~~~~~~~~
2021-11-24T17:25:32.235Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2866:41: note: candidate expects 1 argument, 0 provided
2021-11-24T17:25:32.236Z [err] ../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiInput::OpenPort(Nan::NAN_METHOD_ARGS_TYPE)’:
2021-11-24T17:25:32.236Z [err] ../src/node-midi.cpp:274:55: error: no matching function for call to ‘v8::Value::Uint32Value()’
2021-11-24T17:25:32.236Z [err] 274 | unsigned int portNumber = info[0]->Uint32Value();
2021-11-24T17:25:32.236Z [err] | ~~~~~~~~~~~~~~~~~~~~^~
2021-11-24T17:25:32.236Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.236Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.236Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.236Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2866:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
2021-11-24T17:25:32.236Z [err] 2866 | V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2021-11-24T17:25:32.236Z [err] | ^~~~~~~~~~~
2021-11-24T17:25:32.236Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2866:41: note: candidate expects 1 argument, 0 provided
2021-11-24T17:25:32.238Z [err] ../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiInput::OpenVirtualPort(Nan::NAN_METHOD_ARGS_TYPE)’:
2021-11-24T17:25:32.238Z [err] ../src/node-midi.cpp:293:73: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::String>)’
2021-11-24T17:25:32.238Z [err] 293 | std::string name(*v8::String::Utf8Value(info[0].As<v8::String>()));
2021-11-24T17:25:32.238Z [err] | ^
2021-11-24T17:25:32.238Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.238Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.238Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.238Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3287:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)’
2021-11-24T17:25:32.238Z [err] 3287 | Utf8Value(Isolate* isolate, Local<v8::Value> obj);
2021-11-24T17:25:32.238Z [err] | ^~~~~~~~~
2021-11-24T17:25:32.238Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:3287:5: note: candidate expects 2 arguments, 1 provided
2021-11-24T17:25:32.240Z [err] ../src/node-midi.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE NodeMidiInput::IgnoreTypes(Nan::NAN_METHOD_ARGS_TYPE)’:
2021-11-24T17:25:32.240Z [err] ../src/node-midi.cpp:322:50: error: no matching function for call to ‘v8::Value::BooleanValue()’
2021-11-24T17:25:32.240Z [err] 322 | bool filter_sysex = info[0]->BooleanValue();
2021-11-24T17:25:32.240Z [err] | ~~~~~~~~~~~~~~~~~~~~~^~
2021-11-24T17:25:32.240Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.240Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.240Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.240Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2858:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
2021-11-24T17:25:32.240Z [err] 2858 | bool BooleanValue(Isolate* isolate) const;
2021-11-24T17:25:32.240Z [err] | ^~~~~~~~~~~~
2021-11-24T17:25:32.240Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2858:8: note: candidate expects 1 argument, 0 provided
2021-11-24T17:25:32.240Z [err] ../src/node-midi.cpp:323:51: error: no matching function for call to ‘v8::Value::BooleanValue()’
2021-11-24T17:25:32.240Z [err] 323 | bool filter_timing = info[1]->BooleanValue();
2021-11-24T17:25:32.240Z [err] | ~~~~~~~~~~~~~~~~~~~~~^~
2021-11-24T17:25:32.240Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.240Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.240Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.240Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2858:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
2021-11-24T17:25:32.240Z [err] 2858 | bool BooleanValue(Isolate* isolate) const;
2021-11-24T17:25:32.240Z [err] | ^~~~~~~~~~~~
2021-11-24T17:25:32.240Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2858:8: note: candidate expects 1 argument, 0 provided
2021-11-24T17:25:32.240Z [err] ../src/node-midi.cpp:324:52: error: no matching function for call to ‘v8::Value::BooleanValue()’
2021-11-24T17:25:32.240Z [err] 324 | bool filter_sensing = info[2]->BooleanValue();
2021-11-24T17:25:32.240Z [err] | ~~~~~~~~~~~~~~~~~~~~~^~
2021-11-24T17:25:32.240Z [err] In file included from /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:67,
2021-11-24T17:25:32.240Z [err] from ../../nan/nan.h:58,
2021-11-24T17:25:32.240Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.240Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2858:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
2021-11-24T17:25:32.240Z [err] 2858 | bool BooleanValue(Isolate* isolate) const;
2021-11-24T17:25:32.240Z [err] | ^~~~~~~~~~~~
2021-11-24T17:25:32.240Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/v8.h:2858:8: note: candidate expects 1 argument, 0 provided
2021-11-24T17:25:32.241Z [err] ../src/node-midi.cpp: At global scope:
2021-11-24T17:25:32.241Z [err] ../src/node-midi.cpp:334:10: error: variable or field ‘init’ declared void
2021-11-24T17:25:32.241Z [err] 334 | void init (v8::Handle<v8::Object> target)
2021-11-24T17:25:32.241Z [err] | ^~~~
2021-11-24T17:25:32.242Z [err] ../src/node-midi.cpp:334:20: error: ‘Handle’ is not a member of ‘v8’; did you mean ‘JobHandle’?
2021-11-24T17:25:32.242Z [err] 334 | void init (v8::Handle<v8::Object> target)
2021-11-24T17:25:32.242Z [err] | ^~~~~~
2021-11-24T17:25:32.242Z [err] | JobHandle
2021-11-24T17:25:32.242Z [err] ../src/node-midi.cpp:334:37: error: expected primary-expression before ‘>’ token
2021-11-24T17:25:32.242Z [err] 334 | void init (v8::Handle<v8::Object> target)
2021-11-24T17:25:32.242Z [err] | ^
2021-11-24T17:25:32.255Z [err] ../src/node-midi.cpp:334:39: error: ‘target’ was not declared in this scope
2021-11-24T17:25:32.255Z [err] 334 | void init (v8::Handle<v8::Object> target)
2021-11-24T17:25:32.255Z [err] | ^~~~~~
2021-11-24T17:25:32.267Z [err] In file included from ../../nan/nan.h:58,
2021-11-24T17:25:32.267Z [err] from ../src/node-midi.cpp:1:
2021-11-24T17:25:32.267Z [err] ../src/node-midi.cpp:339:23: error: ‘init’ was not declared in this scope; did you mean ‘int’?
2021-11-24T17:25:32.267Z [err] 339 | NODE_MODULE(midi, init)
2021-11-24T17:25:32.267Z [err] | ^~~~
2021-11-24T17:25:32.267Z [err] /home/ubuntu/.cache/node-gyp/14.18.1/include/node/node.h:787:36: note: in definition of macro ‘NODE_MODULE_X’
2021-11-24T17:25:32.267Z [err] 787 | (node::addon_register_func) (regfunc), \
2021-11-24T17:25:32.267Z [err] | ^~~~~~~
2021-11-24T17:25:32.267Z [err] ../src/node-midi.cpp:339:5: note: in expansion of macro ‘NODE_MODULE’
2021-11-24T17:25:32.267Z [err] 339 | NODE_MODULE(midi, init)
2021-11-24T17:25:32.267Z [err] | ^~~~~~~~~~~
2021-11-24T17:25:32.690Z [err] In file included from ../src/node-midi.cpp:6:
2021-11-24T17:25:32.690Z [err] ../src/lib/RtMidi/RtMidi.cpp: In function ‘void* alsaMidiHandler(void*)’:
2021-11-24T17:25:32.690Z [err] ../src/lib/RtMidi/RtMidi.cpp:1228:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
2021-11-24T17:25:32.690Z [err] 1228 | if ( ev->data.ext.len > apiData->bufferSize ) {
2021-11-24T17:25:32.690Z [err] | ^~
2021-11-24T17:25:32.690Z [err] ../src/lib/RtMidi/RtMidi.cpp:1239:5: note: here
2021-11-24T17:25:32.690Z [err] 1239 | default:
2021-11-24T17:25:32.690Z [err] | ^~~~~~~
2021-11-24T17:25:32.775Z [err] make: *** [midi.target.mk:111: Release/obj.target/midi/src/node-midi.o] Error 1
2021-11-24T17:25:32.775Z [out] make: Leaving directory '/home/ubuntu/.node-red/node_modules/midi/build'
2021-11-24T17:25:32.778Z [err] gyp
2021-11-24T17:25:32.779Z [err]
2021-11-24T17:25:32.779Z [err] ERR! build error
2021-11-24T17:25:32.781Z [err] gyp
2021-11-24T17:25:32.781Z [err] ERR! stack
2021-11-24T17:25:32.781Z [err] Error: `make` failed with exit code: 2
2021-11-24T17:25:32.781Z [err] gyp
2021-11-24T17:25:32.781Z [err] ERR! stack
2021-11-24T17:25:32.781Z [err] at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
2021-11-24T17:25:32.781Z [err] gyp
2021-11-24T17:25:32.781Z [err] ERR!
2021-11-24T17:25:32.781Z [err] stack at ChildProcess.emit (events.js:400:28)
2021-11-24T17:25:32.781Z [err] gyp
2021-11-24T17:25:32.781Z [err] ERR!
2021-11-24T17:25:32.782Z [err] stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)
2021-11-24T17:25:32.782Z [err] gyp
2021-11-24T17:25:32.782Z [err] ERR! System Linux 5.13.0-1010-raspi
2021-11-24T17:25:32.782Z [err] gyp
2021-11-24T17:25:32.783Z [err] ERR! command
2021-11-24T17:25:32.783Z [err] "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2021-11-24T17:25:32.783Z [err] gyp
2021-11-24T17:25:32.783Z [err] ERR!
2021-11-24T17:25:32.783Z [err] cwd /home/ubuntu/.node-red/node_modules/midi
2021-11-24T17:25:32.783Z [err] gyp ERR!
2021-11-24T17:25:32.783Z [err] node -v v14.18.1
2021-11-24T17:25:32.783Z [err] gyp ERR! node-gyp -v
2021-11-24T17:25:32.783Z [err] v5.1.0
2021-11-24T17:25:32.783Z [err] gyp
2021-11-24T17:25:32.784Z [err] ERR! not ok
2021-11-24T17:25:33.145Z [err] npm
2021-11-24T17:25:33.145Z [err] ERR! code
2021-11-24T17:25:33.145Z [err] ELIFECYCLE
2021-11-24T17:25:33.145Z [err] npm
2021-11-24T17:25:33.146Z [err] ERR! errno 1
2021-11-24T17:25:33.174Z [err] npm
2021-11-24T17:25:33.174Z [err] ERR! midi@0.9.5 install: `node-gyp rebuild`
2021-11-24T17:25:33.174Z [err] npm ERR!
2021-11-24T17:25:33.174Z [err] Exit status 1
2021-11-24T17:25:33.174Z [err] npm ERR!
2021-11-24T17:25:33.174Z [err] npm ERR!
2021-11-24T17:25:33.174Z [err] Failed at the midi@0.9.5 install script.
2021-11-24T17:25:33.174Z [err] npm
2021-11-24T17:25:33.174Z [err] ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-11-24T17:25:33.201Z [err]
2021-11-24T17:25:33.201Z [err] npm ERR! A complete log of this run can be found in:
2021-11-24T17:25:33.201Z [err] npm
2021-11-24T17:25:33.201Z [err] ERR! /home/ubuntu/.npm/_logs/2021-11-24T17_25_33_178Z-debug.log
2021-11-24T17:25:33.230Z rc=1