hello, i am using Ubuntu 24.04.1 LTS. My Node-RED version: v4.0.5, and Node.js version: v20.18.0. I want to install node-red-contrib-audio i get the following message:
9 Nov 20:57:29 - [info] Installing module: node-red-contrib-audio, version: 1.0.2
9 Nov 20:57:49 - [warn] Installation of module node-red-contrib-audio failed:
9 Nov 20:57:49 - [warn] ------------------------------------------
9 Nov 20:57:49 - [warn] npm error code 1
npm error path /home/e/.node-red/node_modules/speaker
npm error command failed
npm error command sh -c node-gyp rebuild
npm error make: Entering directory '/home/e/.node-red/node_modules/speaker/build'
npm error CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o
npm error rm -f Release/obj.target/deps/mpg123/liboutput.a Release/obj.target/deps/mpg123/liboutput.a.ar-file-list; mkdir -p `dirname Release/obj.target/deps/mpg123/liboutput.a`
npm error ar crs Release/obj.target/deps/mpg123/liboutput.a @Release/obj.target/deps/mpg123/liboutput.a.ar-file-list
npm error COPY Release/liboutput.a
npm error CXX(target) Release/obj.target/binding/src/binding.o
npm error make: Leaving directory '/home/e/.node-red/node_modules/speaker/build'
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@10.1.0
npm error gyp info using node@20.18.0 | linux | x64
npm error gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/e/.node-red/node_modules/speaker/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/home/e/.cache/node-gyp/20.18.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/home/e/.cache/node-gyp/20.18.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/home/e/.cache/node-gyp/20.18.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/home/e/.node-red/node_modules/speaker',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error ../deps/mpg123/src/output/alsa.c: In function ‘initialize_device’:
npm error ../deps/mpg123/src/output/alsa.c:78:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
npm error 78 | for (i = 0; i < NUM_FORMATS; ++i) {
npm error | ^
npm error ../deps/mpg123/src/output/alsa.c: In function ‘get_formats_alsa’:
npm error ../deps/mpg123/src/output/alsa.c:201:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
npm error 201 | for (i = 0; i < NUM_FORMATS; ++i) {
npm error | ^
npm error ../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Open(Nan::NAN_METHOD_ARGS_TYPE)’:
npm error ../src/binding.cc:30:37: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 30 | ao->channels = info[1]->Int32Value(); /* channels */
npm error | ~~~~~~~~~~~~~~~~~~~^~
npm error In file included from /home/e/.cache/node-gyp/20.18.0/include/node/v8-primitive.h:11,
npm error from /home/e/.cache/node-gyp/20.18.0/include/node/v8-object.h:11,
npm error from /home/e/.cache/node-gyp/20.18.0/include/node/v8-array-buffer.h:13,
npm error from /home/e/.cache/node-gyp/20.18.0/include/node/v8.h:24,
npm error from /home/e/.cache/node-gyp/20.18.0/include/node/node.h:73,
npm error from ../../nan/nan.h:62,
npm error from ../src/node_pointer.h:6,
npm error from ../src/binding.cc:5:
npm error /home/e/.cache/node-gyp/20.18.0/include/node/v8-value.h:429:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm error 429 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm error | ^~~~~~~~~~
npm error /home/e/.cache/node-gyp/20.18.0/include/node/v8-value.h:429:40: note: candidate expects 1 argument, 0 provided
npm error ../src/binding.cc:31:33: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 31 | ao->rate = info[2]->Int32Value(); /* sample rate */
npm error | ~~~~~~~~~~~~~~~~~~~^~
npm error /home/e/.cache/node-gyp/20.18.0/include/node/v8-value.h:429:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm error 429 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm error | ^~~~~~~~~~
npm error /home/e/.cache/node-gyp/20.18.0/include/node/v8-value.h:429:40: note: candidate expects 1 argument, 0 provided
npm error ../src/binding.cc:32:35: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 32 | ao->format = info[3]->Int32Value(); /* MPG123_ENC_* format */
npm error | ~~~~~~~~~~~~~~~~~~~^~
npm error /home/e/.cache/node-gyp/20.18.0/include/node/v8-value.h:429:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm error 429 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm error | ^~~~~~~~~~
npm error /home/e/.cache/node-gyp/20.18.0/include/node/v8-value.h:429:40: note: candidate expects 1 argument, 0 provided
npm error ../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Write(Nan::NAN_METHOD_ARGS_TYPE)’:
npm error ../src/binding.cc:51:32: error: no matching function for call to ‘v8::Value::Int32Value()’
npm error 51 | int len = info[2]->Int32Value();
npm error | ~~~~~~~~~~~~~~~~~~~^~
npm error /home/e/.cache/node-gyp/20.18.0/include/node/v8-value.h:429:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm error 429 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm error | ^~~~~~~~~~
npm error /home/e/.cache/node-gyp/20.18.0/include/node/v8-value.h:429:40: note: candidate expects 1 argument, 0 provided
npm error ../src/binding.cc:62:60: 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]
npm error 62 | uv_queue_work(uv_default_loop(), &req->req, write_async, (uv_after_work_cb)write_after);
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../src/binding.cc: In function ‘void {anonymous}::write_after(uv_work_t*)’:
npm error ../src/binding.cc:80:23: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
npm error 80 | wreq->callback->Call(1, argv);
npm error | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
npm error ../../nan/nan.h:1818:3: note: declared here
npm error 1818 | Call(int argc, v8::Local<v8::Value> argv[]) const {
npm error | ^~~~
npm error ../src/binding.cc: In function ‘void {anonymous}::Initialize(v8::Handle<v8::Object>)’:
npm error ../src/binding.cc:106:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 106 | Nan::ForceSet(target,
npm error | ~~~~~~~~~~~~~^~~~~~~~
npm error 107 | Nan::New("api_version").ToLocalChecked(),
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 108 | Nan::New(mpg123_output_module_info.api_version));
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error In file included from ../../nan/nan.h:302:
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:109:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 109 | Nan::ForceSet(target,
npm error | ~~~~~~~~~~~~~^~~~~~~~
npm error 110 | Nan::New("name").ToLocalChecked(),
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 111 | Nan::New(mpg123_output_module_info.name).ToLocalChecked());
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:112:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 112 | Nan::ForceSet(target,
npm error | ~~~~~~~~~~~~~^~~~~~~~
npm error 113 | Nan::New("description").ToLocalChecked(),
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 114 | Nan::New(mpg123_output_module_info.description).ToLocalChecked());
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:115:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 115 | Nan::ForceSet(target,
npm error | ~~~~~~~~~~~~~^~~~~~~~
npm error 116 | Nan::New("revision").ToLocalChecked(),
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 117 | Nan::New(mpg123_output_module_info.revision).ToLocalChecked());
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:126:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 126 | Nan::ForceSet(target, Nan::New("formats").ToLocalChecked(), Nan::New(ao.get_formats(&ao)));
npm error | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:129:14: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Uint32>::return_t)’
npm error 129 | target->Set(Nan::New("sizeof_audio_output_t").ToLocalChecked(),
npm error | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 130 | Nan::New(static_cast<uint32_t>(sizeof(audio_output_t))));
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /home/e/.cache/node-gyp/20.18.0/include/node/v8-object.h:246:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm error 246 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm error | ^~~
npm error /home/e/.cache/node-gyp/20.18.0/include/node/v8-object.h:246:37: note: candidate expects 3 arguments, 2 provided
npm error /home/e/.cache/node-gyp/20.18.0/include/node/v8-object.h:249:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm error 249 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm error | ^~~
npm error /home/e/.cache/node-gyp/20.18.0/include/node/v8-object.h:249:37: note: candidate expects 3 arguments, 2 provided
npm error ../src/binding.cc:133:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 133 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
npm error | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 134 | static_cast<PropertyAttribute>(ReadOnly|DontDelete));
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../src/binding.cc:136:3: note: in expansion of macro ‘CONST_INT’
npm error 136 | CONST_INT(MPG123_ENC_FLOAT_32);
npm error | ^~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:133:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 133 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
npm error | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 134 | static_cast<PropertyAttribute>(ReadOnly|DontDelete));
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../src/binding.cc:137:3: note: in expansion of macro ‘CONST_INT’
npm error 137 | CONST_INT(MPG123_ENC_FLOAT_64);
npm error | ^~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:133:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 133 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
npm error | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 134 | static_cast<PropertyAttribute>(ReadOnly|DontDelete));
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../src/binding.cc:138:3: note: in expansion of macro ‘CONST_INT’
npm error 138 | CONST_INT(MPG123_ENC_SIGNED_8);
npm error | ^~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:133:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 133 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
npm error | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 134 | static_cast<PropertyAttribute>(ReadOnly|DontDelete));
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../src/binding.cc:139:3: note: in expansion of macro ‘CONST_INT’
npm error 139 | CONST_INT(MPG123_ENC_UNSIGNED_8);
npm error | ^~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:133:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 133 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
npm error | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 134 | static_cast<PropertyAttribute>(ReadOnly|DontDelete));
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../src/binding.cc:140:3: note: in expansion of macro ‘CONST_INT’
npm error 140 | CONST_INT(MPG123_ENC_SIGNED_16);
npm error | ^~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:133:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 133 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
npm error | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 134 | static_cast<PropertyAttribute>(ReadOnly|DontDelete));
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../src/binding.cc:141:3: note: in expansion of macro ‘CONST_INT’
npm error 141 | CONST_INT(MPG123_ENC_UNSIGNED_16);
npm error | ^~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:133:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 133 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
npm error | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 134 | static_cast<PropertyAttribute>(ReadOnly|DontDelete));
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../src/binding.cc:142:3: note: in expansion of macro ‘CONST_INT’
npm error 142 | CONST_INT(MPG123_ENC_SIGNED_24);
npm error | ^~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:133:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 133 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
npm error | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 134 | static_cast<PropertyAttribute>(ReadOnly|DontDelete));
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../src/binding.cc:143:3: note: in expansion of macro ‘CONST_INT’
npm error 143 | CONST_INT(MPG123_ENC_UNSIGNED_24);
npm error | ^~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:133:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 133 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
npm error | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 134 | static_cast<PropertyAttribute>(ReadOnly|DontDelete));
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../src/binding.cc:144:3: note: in expansion of macro ‘CONST_INT’
npm error 144 | CONST_INT(MPG123_ENC_SIGNED_32);
npm error | ^~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc:133:16: warning: ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’ is deprecated [-Wdeprecated-declarations]
npm error 133 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \
npm error | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error 134 | static_cast<PropertyAttribute>(ReadOnly|DontDelete));
npm error | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error ../src/binding.cc:145:3: note: in expansion of macro ‘CONST_INT’
npm error 145 | CONST_INT(MPG123_ENC_UNSIGNED_32);
npm error | ^~~~~~~~~
npm error ../../nan/nan_maybe_43_inl.h:117:35: note: declared here
npm error 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet(
npm error | ^~~~~~~~
npm error ../src/binding.cc: At global scope:
npm error /home/e/.cache/node-gyp/20.18.0/include/node/node.h:1232:7: warning: cast between incompatible function types from ‘void (*)(v8::Handle<v8::Object>)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
npm error 1232 | (node::addon_register_func) (regfunc), \
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /home/e/.cache/node-gyp/20.18.0/include/node/node.h:1266:3: note: in expansion of macro ‘NODE_MODULE_X’
npm error 1266 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
npm error | ^~~~~~~~~~~~~
npm error ../src/binding.cc:155:1: note: in expansion of macro ‘NODE_MODULE’
npm error 155 | NODE_MODULE(binding, Initialize)
npm error | ^~~~~~~~~~~
npm error make: *** [binding.target.mk:119: Release/obj.target/binding/src/binding.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm error gyp ERR! System Linux 6.8.0-48-generic
npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /home/e/.node-red/node_modules/speaker
npm error gyp ERR! node -v v20.18.0
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /home/e/.npm/_logs/2024-11-09T18_57_29_360Z-debug-0.log
9 Nov 20:57:49 - [warn] ------------------------------------------
Error: Install failed
at /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/installer.js:290:25
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
9 Nov 20:57:49 - [error] Error: Install failed