Hello, I was trying to install vorbis and i got the following error in OS Manjaro:
npm ERR! code 1
npm ERR! path /home/cassio/Developer/playground/ogg2mp3/node_modules/ogg
npm ERR! command failed
npm ERR! command sh -c /tmp/install67923636.sh
npm ERR! make: Entrando no diretório '/home/cassio/Developer/playground/ogg2mp3/node_modules/ogg/build'
npm ERR!
npm ERR! CC(target) Release/obj.target/libogg/deps/libogg/src/framing.o
npm ERR! CC(target) Release/obj.target/libogg/deps/libogg/src/bitwise.o
npm ERR! AR(target) Release/obj.target/deps/libogg/ogg.a
npm ERR! COPY Release/ogg.a
npm ERR! CXX(target) Release/obj.target/ogg/src/binding.o
npm ERR! make: Saindo do diretório '/home/cassio/Developer/playground/ogg2mp3/node_modules/ogg/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@18.4.0 | linux | x64
npm ERR! gyp info find Python using Python version 3.10.8 found at "/usr/bin/python3"
npm ERR! gyp http GET https://nodejs.org/download/release/v18.4.0/node-v18.4.0-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v18.4.0/node-v18.4.0-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v18.4.0/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v18.4.0/SHASUMS256.txt
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/cassio/.asdf/installs/nodejs/18.4.0/.npm/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 '/home/cassio/Developer/playground/ogg2mp3/node_modules/ogg/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/cassio/.asdf/installs/nodejs/18.4.0/.npm/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/cassio/.cache/node-gyp/18.4.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=/home/cassio/.cache/node-gyp/18.4.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/cassio/.asdf/installs/nodejs/18.4.0/.npm/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/cassio/.cache/node-gyp/18.4.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/cassio/Developer/playground/ogg2mp3/node_modules/ogg',
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! ../src/binding.cc: In member function ‘virtual void nodeogg::OggSyncWriteWorker::HandleOKCallback()’:
npm ERR! ../src/binding.cc:62:19: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
npm ERR! 62 | callback->Call(1, argv);
npm ERR! | ~~~~~~~~~~~~~~^~~~~~~~~
npm ERR! In file included from ../src/binding.cc:23:
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 ‘Nan::NAN_METHOD_RETURN_TYPE nodeogg::node_ogg_sync_write(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/binding.cc:76:53: error: no matching function for call to ‘v8::Value::NumberValue()’
npm ERR! 76 | long size = static_cast<long>(info[2]->NumberValue());
npm ERR! | ~~~~~~~~~~~~~~~~~~~~^~
npm ERR! In file included from /home/cassio/.cache/node-gyp/18.4.0/include/node/v8-primitive.h:11,
npm ERR! from /home/cassio/.cache/node-gyp/18.4.0/include/node/v8-object.h:11,
npm ERR! from /home/cassio/.cache/node-gyp/18.4.0/include/node/v8-array-buffer.h:13,
npm ERR! from /home/cassio/.cache/node-gyp/18.4.0/include/node/v8.h:24,
npm ERR! from /home/cassio/.cache/node-gyp/18.4.0/include/node/node.h:73,
npm ERR! from ../src/binding.cc:22:
npm ERR! /home/cassio/.cache/node-gyp/18.4.0/include/node/v8-value.h:411:39: note: candidate: ‘v8::Maybe<double> v8::Value::NumberValue(v8::Local<v8::Context>) const’
npm ERR! 411 | V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
npm ERR! | ^~~~~~~~~~~
npm ERR! /home/cassio/.cache/node-gyp/18.4.0/include/node/v8-value.h:411:39: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/binding.cc: In member function ‘virtual void nodeogg::OggSyncPageoutWorker::HandleOKCallback()’:
npm ERR! ../src/binding.cc:105:19: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
npm ERR! 105 | callback->Call(3, argv);
npm ERR! | ~~~~~~~~~~~~~~^~~~~~~~~
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 ‘Nan::NAN_METHOD_RETURN_TYPE nodeogg::node_ogg_stream_init(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/binding.cc:128:56: error: no matching function for call to ‘v8::Value::IntegerValue()’
npm ERR! 128 | int serialno = static_cast<int>(info[1]->IntegerValue());
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~^~
npm ERR! /home/cassio/.cache/node-gyp/18.4.0/include/node/v8-value.h:413:40: note: candidate: ‘v8::Maybe<long int> v8::Value::IntegerValue(v8::Local<v8::Context>) const’
npm ERR! 413 | V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR! | ^~~~~~~~~~~~
npm ERR! /home/cassio/.cache/node-gyp/18.4.0/include/node/v8-value.h:413:40: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/binding.cc: In member function ‘virtual void nodeogg::OggStreamPageinWorker::HandleOKCallback()’:
npm ERR! ../src/binding.cc:146:19: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
npm ERR! 146 | callback->Call(1, argv);
npm ERR! | ~~~~~~~~~~~~~~^~~~~~~~~
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 member function ‘virtual void nodeogg::OggStreamPacketoutWorker::HandleOKCallback()’:
npm ERR! ../src/binding.cc:193:19: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
npm ERR! 193 | callback->Call(6, argv);
npm ERR! | ~~~~~~~~~~~~~~^~~~~~~~~
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 member function ‘virtual void nodeogg::OggStreamPacketinWorker::HandleOKCallback()’:
npm ERR! ../src/binding.cc:226:19: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
npm ERR! 226 | callback->Call(1, argv);
npm ERR! | ~~~~~~~~~~~~~~^~~~~~~~~
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 member function ‘virtual void nodeogg::StreamWorker::HandleOKCallback()’:
npm ERR! ../src/binding.cc:267:19: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
npm ERR! 267 | callback->Call(4, argv);
npm ERR! | ~~~~~~~~~~~~~~^~~~~~~~~
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 nodeogg::Initialize(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
npm ERR! ../src/binding.cc:404: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 ERR! 404 | Nan::ForceSet(target, Nan::New<String>("sizeof_" #value).ToLocalChecked(), \
npm ERR! | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! 405 | Nan::New<Integer>(static_cast<int32_t>(sizeof(value))), \
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! 406 | static_cast<PropertyAttribute>(ReadOnly|DontDelete))
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/binding.cc:407:3: note: in expansion of macro ‘SIZEOF’
npm ERR! 407 | SIZEOF(ogg_sync_state);
npm ERR! | ^~~~~~
npm ERR! In file included from ../../nan/nan.h:288:
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:404: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 ERR! 404 | Nan::ForceSet(target, Nan::New<String>("sizeof_" #value).ToLocalChecked(), \
npm ERR! | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! 405 | Nan::New<Integer>(static_cast<int32_t>(sizeof(value))), \
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! 406 | static_cast<PropertyAttribute>(ReadOnly|DontDelete))
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/binding.cc:408:3: note: in expansion of macro ‘SIZEOF’
npm ERR! 408 | SIZEOF(ogg_stream_state);
npm ERR! | ^~~~~~
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:404: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 ERR! 404 | Nan::ForceSet(target, Nan::New<String>("sizeof_" #value).ToLocalChecked(), \
npm ERR! | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! 405 | Nan::New<Integer>(static_cast<int32_t>(sizeof(value))), \
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! 406 | static_cast<PropertyAttribute>(ReadOnly|DontDelete))
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/binding.cc:409:3: note: in expansion of macro ‘SIZEOF’
npm ERR! 409 | SIZEOF(ogg_page);
npm ERR! | ^~~~~~
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:404: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 ERR! 404 | Nan::ForceSet(target, Nan::New<String>("sizeof_" #value).ToLocalChecked(), \
npm ERR! | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! 405 | Nan::New<Integer>(static_cast<int32_t>(sizeof(value))), \
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! 406 | static_cast<PropertyAttribute>(ReadOnly|DontDelete))
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/binding.cc:410:3: note: in expansion of macro ‘SIZEOF’
npm ERR! 410 | SIZEOF(ogg_packet);
npm ERR! | ^~~~~~
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:434:76: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR! 434 | Nan::New<FunctionTemplate>(node_ogg_packet_replace_buffer)->GetFunction());
npm ERR! | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
npm ERR! In file included from /home/cassio/.cache/node-gyp/18.4.0/include/node/v8-function.h:15,
npm ERR! from /home/cassio/.cache/node-gyp/18.4.0/include/node/v8.h:33:
npm ERR! /home/cassio/.cache/node-gyp/18.4.0/include/node/v8-template.h:513:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR! 513 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR! | ^~~~~~~~~~~
npm ERR! /home/cassio/.cache/node-gyp/18.4.0/include/node/v8-template.h:513:46: note: candidate expects 1 argument, 0 provided
npm ERR! ../src/binding.cc: At global scope:
npm ERR! /home/cassio/.cache/node-gyp/18.4.0/include/node/node.h:862:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {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 ERR! 862 | (node::addon_register_func) (regfunc), \
npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/cassio/.cache/node-gyp/18.4.0/include/node/node.h:896:3: note: in expansion of macro ‘NODE_MODULE_X’
npm ERR! 896 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
npm ERR! | ^~~~~~~~~~~~~
npm ERR! ../src/binding.cc:440:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR! 440 | NODE_MODULE(ogg, nodeogg::Initialize)
npm ERR! | ^~~~~~~~~~~
npm ERR! make: *** [ogg.target.mk:120: Release/obj.target/ogg/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 (/home/cassio/.asdf/installs/nodejs/18.4.0/.npm/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:537:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Linux 5.15.84-1-MANJARO
npm ERR! gyp ERR! command "/home/cassio/.asdf/installs/nodejs/18.4.0/bin/node" "/home/cassio/.asdf/installs/nodejs/18.4.0/.npm/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/cassio/Developer/playground/ogg2mp3/node_modules/ogg
npm ERR! gyp ERR! node -v v18.4.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /home/cassio/.npm/_logs/2022-12-24T17_00_35_739Z-debug-0.log
Hello, I was trying to install vorbis and i got the following error in OS Manjaro:
Does anyone have any tips?