Open felipelalli opened 1 year ago
➜ ~ nodejs --version v12.22.5 ➜ ~ npm --version 8.19.3
npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/youtube-terminal/node_modules/speaker npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entrando no diretório '/usr/local/lib/node_modules/youtube-terminal/node_modules/speaker/build' npm ERR! npm ERR! CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o npm ERR! 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 ERR! ar crs Release/obj.target/deps/mpg123/liboutput.a @Release/obj.target/deps/mpg123/liboutput.a.ar-file-list npm ERR! COPY Release/liboutput.a npm ERR! CXX(target) Release/obj.target/binding/src/binding.o npm ERR! make: Saindo do diretório '/usr/local/lib/node_modules/youtube-terminal/node_modules/speaker/build' npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.3.0 npm ERR! gyp info using node@18.13.0 | linux | x64 npm ERR! gyp info find Python using Python version 3.9.7 found at "/usr/local/bin/python3" npm ERR! gyp info spawn /usr/local/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/youtube-terminal/node_modules/speaker/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/root/.cache/node-gyp/18.13.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/18.13.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/18.13.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/youtube-terminal/node_modules/speaker', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! ../deps/mpg123/src/output/alsa.c: In function ‘initialize_device’: npm ERR! ../deps/mpg123/src/output/alsa.c:78:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] npm ERR! 78 | for (i = 0; i < NUM_FORMATS; ++i) { npm ERR! | ^ npm ERR! ../deps/mpg123/src/output/alsa.c: In function ‘get_formats_alsa’: npm ERR! ../deps/mpg123/src/output/alsa.c:201:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] npm ERR! 201 | for (i = 0; i < NUM_FORMATS; ++i) { npm ERR! | ^ npm ERR! ../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Open(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/binding.cc:30:38: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! 30 | ao->channels = info[1]->Int32Value(); /* channels */ npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/18.13.0/include/node/v8-primitive.h:11, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8-object.h:11, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8-array-buffer.h:13, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8.h:24, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! | ^~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/binding.cc:31:34: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! 31 | ao->rate = info[2]->Int32Value(); /* sample rate */ npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/18.13.0/include/node/v8-primitive.h:11, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8-object.h:11, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8-array-buffer.h:13, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8.h:24, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! | ^~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/binding.cc:32:36: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! 32 | ao->format = info[3]->Int32Value(); /* MPG123_ENC_* format */ npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/18.13.0/include/node/v8-primitive.h:11, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8-object.h:11, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8-array-buffer.h:13, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8.h:24, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! | ^~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/binding.cc:35:60: error: no matching function for call to ‘v8::Value::ToString()’ npm ERR! 35 | v8::Local<v8::String> deviceString = info[4]->ToString(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/18.13.0/include/node/v8-primitive.h:11, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8-object.h:11, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8-array-buffer.h:13, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8.h:24, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-value.h:360:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ npm ERR! 360 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( npm ERR! | ^~~~~~~~ npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-value.h:360:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/binding.cc:37:71: error: no matching function for call to ‘v8::String::WriteOneByte(uint8_t*)’ npm ERR! 37 | deviceString->WriteOneByte(reinterpret_cast<uint8_t *>(ao->device)); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/18.13.0/include/node/v8-object.h:11, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8-array-buffer.h:13, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8.h:24, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-primitive.h:199:7: note: candidate: ‘int v8::String::WriteOneByte(v8::Isolate*, uint8_t*, int, int, int) const’ npm ERR! 199 | int WriteOneByte(Isolate* isolate, uint8_t* buffer, int start = 0, npm ERR! | ^~~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-primitive.h:199:7: note: candidate expects 5 arguments, 1 provided npm ERR! ../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Write(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/binding.cc:57:33: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! 57 | int len = info[2]->Int32Value(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/18.13.0/include/node/v8-primitive.h:11, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8-object.h:11, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8-array-buffer.h:13, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8.h:24, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-value.h:419:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! 419 | V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! | ^~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-value.h:419:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/binding.cc:68:69: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 68 | uv_queue_work(Nan::GetCurrentEventLoop(), &req->req, write_async, (uv_after_work_cb)write_after); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/binding.cc: In function ‘void {anonymous}::write_after(uv_work_t*)’: npm ERR! ../src/binding.cc:86:31: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 86 | wreq->callback->Call(1, argv); npm ERR! | ^ npm ERR! In file included from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/binding.cc: In function ‘void {anonymous}::Initialize(v8::Local<v8::Object>)’: npm ERR! ../src/binding.cc:117:8: 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 ERR! 117 | Nan::ForceSet(target, npm ERR! | ^~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:119:64: 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 ERR! 119 | Nan::New(mpg123_output_module_info.api_version)); npm ERR! | ^ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:120:8: 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 ERR! 120 | Nan::ForceSet(target, npm ERR! | ^~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:122:74: 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 ERR! 122 | Nan::New(mpg123_output_module_info.name).ToLocalChecked()); npm ERR! | ^ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:123:8: 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 ERR! 123 | Nan::ForceSet(target, npm ERR! | ^~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:125:81: 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 ERR! 125 | Nan::New(mpg123_output_module_info.description).ToLocalChecked()); npm ERR! | ^ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:126:8: 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 ERR! 126 | Nan::ForceSet(target, npm ERR! | ^~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:128:78: 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 ERR! 128 | Nan::New(mpg123_output_module_info.revision).ToLocalChecked()); npm ERR! | ^ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:137:8: 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 ERR! 137 | Nan::ForceSet(target, Nan::New("formats").ToLocalChecked(), Nan::New(ao.get_formats(&ao))); npm ERR! | ^~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:137:92: 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 ERR! 137 | Nan::ForceSet(target, Nan::New("formats").ToLocalChecked(), Nan::New(ao.get_formats(&ao))); npm ERR! | ^ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:141:70: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Uint32>::return_t)’ npm ERR! 141 | Nan::New(static_cast<uint32_t>(sizeof(audio_output_t)))); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/18.13.0/include/node/v8-array-buffer.h:13, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/v8.h:24, npm ERR! from /root/.cache/node-gyp/18.13.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-object.h:244:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! 244 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-object.h:244:37: note: candidate expects 3 arguments, 2 provided npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-object.h:247:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! 247 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! | ^~~ npm ERR! /root/.cache/node-gyp/18.13.0/include/node/v8-object.h:247:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/binding.cc:144:8: 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 ERR! 144 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \ npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:147:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 147 | CONST_INT(MPG123_ENC_FLOAT_32); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:145:58: 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 ERR! 145 | static_cast<PropertyAttribute>(ReadOnly|DontDelete)); npm ERR! | ^ npm ERR! ../src/binding.cc:147:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 147 | CONST_INT(MPG123_ENC_FLOAT_32); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:144:8: 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 ERR! 144 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \ npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:148:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 148 | CONST_INT(MPG123_ENC_FLOAT_64); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:145:58: 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 ERR! 145 | static_cast<PropertyAttribute>(ReadOnly|DontDelete)); npm ERR! | ^ npm ERR! ../src/binding.cc:148:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 148 | CONST_INT(MPG123_ENC_FLOAT_64); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:144:8: 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 ERR! 144 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \ npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:149:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 149 | CONST_INT(MPG123_ENC_SIGNED_8); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:145:58: 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 ERR! 145 | static_cast<PropertyAttribute>(ReadOnly|DontDelete)); npm ERR! | ^ npm ERR! ../src/binding.cc:149:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 149 | CONST_INT(MPG123_ENC_SIGNED_8); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:144:8: 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 ERR! 144 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \ npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:150:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 150 | CONST_INT(MPG123_ENC_UNSIGNED_8); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:145:58: 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 ERR! 145 | static_cast<PropertyAttribute>(ReadOnly|DontDelete)); npm ERR! | ^ npm ERR! ../src/binding.cc:150:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 150 | CONST_INT(MPG123_ENC_UNSIGNED_8); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:144:8: 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 ERR! 144 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \ npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:151:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 151 | CONST_INT(MPG123_ENC_SIGNED_16); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:145:58: 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 ERR! 145 | static_cast<PropertyAttribute>(ReadOnly|DontDelete)); npm ERR! | ^ npm ERR! ../src/binding.cc:151:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 151 | CONST_INT(MPG123_ENC_SIGNED_16); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:144:8: 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 ERR! 144 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \ npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:152:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 152 | CONST_INT(MPG123_ENC_UNSIGNED_16); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:145:58: 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 ERR! 145 | static_cast<PropertyAttribute>(ReadOnly|DontDelete)); npm ERR! | ^ npm ERR! ../src/binding.cc:152:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 152 | CONST_INT(MPG123_ENC_UNSIGNED_16); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:144:8: 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 ERR! 144 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \ npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:153:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 153 | CONST_INT(MPG123_ENC_SIGNED_24); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:145:58: 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 ERR! 145 | static_cast<PropertyAttribute>(ReadOnly|DontDelete)); npm ERR! | ^ npm ERR! ../src/binding.cc:153:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 153 | CONST_INT(MPG123_ENC_SIGNED_24); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:144:8: 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 ERR! 144 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \ npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:154:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 154 | CONST_INT(MPG123_ENC_UNSIGNED_24); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:145:58: 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 ERR! 145 | static_cast<PropertyAttribute>(ReadOnly|DontDelete)); npm ERR! | ^ npm ERR! ../src/binding.cc:154:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 154 | CONST_INT(MPG123_ENC_UNSIGNED_24); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:144:8: 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 ERR! 144 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \ npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:155:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 155 | CONST_INT(MPG123_ENC_SIGNED_32); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:145:58: 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 ERR! 145 | static_cast<PropertyAttribute>(ReadOnly|DontDelete)); npm ERR! | ^ npm ERR! ../src/binding.cc:155:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 155 | CONST_INT(MPG123_ENC_SIGNED_32); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:144:8: 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 ERR! 144 | Nan::ForceSet(target, Nan::New(#value).ToLocalChecked(), Nan::New(value), \ npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:156:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 156 | CONST_INT(MPG123_ENC_UNSIGNED_32); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! ../src/binding.cc:145:58: 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 ERR! 145 | static_cast<PropertyAttribute>(ReadOnly|DontDelete)); npm ERR! | ^ npm ERR! ../src/binding.cc:156:3: note: in expansion of macro ‘CONST_INT’ npm ERR! 156 | CONST_INT(MPG123_ENC_UNSIGNED_32); npm ERR! | ^~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:288, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../../nan/nan_maybe_43_inl.h:117:35: note: declared here npm ERR! 117 | NAN_DEPRECATED inline Maybe<bool> ForceSet( npm ERR! | ^~~~~~~~ npm ERR! In file included from ../../nan/nan.h:60, npm ERR! from ../src/node_pointer.h:6, npm ERR! from ../src/binding.cc:5: npm ERR! ../src/binding.cc: At global scope: npm ERR! /root/.cache/node-gyp/18.13.0/include/node/node.h:978:7: 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] npm ERR! 978 | (node::addon_register_func) (regfunc), \ npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! /root/.cache/node-gyp/18.13.0/include/node/node.h:1012:3: note: in expansion of macro ‘NODE_MODULE_X’ npm ERR! 1012 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) npm ERR! | ^~~~~~~~~~~~~ npm ERR! ../src/binding.cc:166:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! 166 | NODE_MODULE(binding, Initialize) npm ERR! | ^~~~~~~~~~~ npm ERR! make: *** [binding.target.mk:124: Release/obj.target/binding/src/binding.o] Erro 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Linux 4.19.0-13-amd64 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/youtube-terminal/node_modules/speaker npm ERR! gyp ERR! node -v v18.13.0 npm ERR! gyp ERR! node-gyp -v v9.3.0 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2023-01-08T01_45_26_141Z-debug-0.log
upvote