orbit-db-cli icon indicating copy to clipboard operation
orbit-db-cli copied to clipboard

Error when installing globally the package

Open mbledkowski opened this issue 1 year ago • 2 comments

When I am trying to install orbit-db-cli globally using npm i get the following error:

npm ERR! code 1
npm ERR! path /home/mble/.local/share/nvm/v16.15.1/lib/node_modules/orbit-db-cli/node_modules/leveldown
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
npm ERR! make: Entering directory '/home/mble/.local/share/nvm/v16.15.1/lib/node_modules/orbit-db-cli/node_modules/leveldown/build'
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_impl.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_iter.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/filename.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/dbformat.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_reader.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_writer.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/memtable.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/repair.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/table_cache.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_edit.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_set.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/write_batch.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix_sse.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block_builder.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/filter_block.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/format.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/iterator.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/merger.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table_builder.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/two_level_iterator.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/arena.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/bloom.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/cache.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/coding.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/comparator.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/crc32c.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/filter_policy.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/hash.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/logging.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/options.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/status.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix.o
npm ERR!   CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env_posix.o
npm ERR!   AR(target) Release/obj.target/deps/leveldb/leveldb.a
npm ERR!   COPY Release/leveldb.a
npm ERR!   CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy-sinksource.o
npm ERR!   CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy-stubs-internal.o
npm ERR!   CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy.o
npm ERR!   AR(target) Release/obj.target/deps/snappy/snappy.a
npm ERR!   COPY Release/snappy.a
npm ERR!   CXX(target) Release/obj.target/leveldown/src/batch.o
npm ERR! make: Leaving directory '/home/mble/.local/share/nvm/v16.15.1/lib/node_modules/orbit-db-cli/node_modules/leveldown/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.10.5 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/home/mble/.local/share/nvm/v16.15.1/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/mble/.local/share/nvm/v16.15.1/lib/node_modules/orbit-db-cli/node_modules/leveldown/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/mble/.local/share/nvm/v16.15.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/mble/.cache/node-gyp/16.15.1/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/mble/.cache/node-gyp/16.15.1',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/mble/.local/share/nvm/v16.15.1/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/mble/.cache/node-gyp/16.15.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/mble/.local/share/nvm/v16.15.1/lib/node_modules/orbit-db-cli/node_modules/leveldown',
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/leveldb/leveldb-1.20/util/hash.cc: In function ‘uint32_t leveldb::Hash(const char*, size_t, uint32_t)’:
npm ERR! ../deps/leveldb/leveldb-1.20/util/hash.cc:37:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!    37 |       h += static_cast<unsigned char>(data[2]) << 16;
npm ERR!       |       ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../deps/leveldb/leveldb-1.20/util/hash.cc:39:5: note: here
npm ERR!    39 |     case 2:
npm ERR!       |     ^~~~
npm ERR! ../deps/leveldb/leveldb-1.20/util/hash.cc:40:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!    40 |       h += static_cast<unsigned char>(data[1]) << 8;
npm ERR!       |       ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../deps/leveldb/leveldb-1.20/util/hash.cc:42:5: note: here
npm ERR!    42 |     case 1:
npm ERR!       |     ^~~~
npm ERR! In file included from ../../nan/nan_converters.h:67,
npm ERR!                  from ../../nan/nan.h:202,
npm ERR!                  from ../src/batch.cc:3:
npm ERR! ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_converters_43_inl.h:18:49: error: cannot convert ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
npm ERR!    18 |       val->To ## TYPE(isolate->GetCurrentContext())                            \
npm ERR!       |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
npm ERR!       |                                                 |
npm ERR!       |                                                 v8::Local<v8::Context>
npm ERR! ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
npm ERR!    22 | X(Boolean)
npm ERR!       | ^
npm ERR! In file included from /home/mble/.cache/node-gyp/16.15.1/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3086:37: note:   initializing argument 1 of ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’
npm ERR!  3086 |   Local<Boolean> ToBoolean(Isolate* isolate) const;
npm ERR!       |                            ~~~~~~~~~^~~~~~~
npm ERR! ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_converters_43_inl.h:37:55: error: cannot convert ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
npm ERR!    37 |   return val->NAME ## Value(isolate->GetCurrentContext());                     \
npm ERR!       |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
npm ERR!       |                                                       |
npm ERR!       |                                                       v8::Local<v8::Context>
npm ERR! ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
npm ERR!    40 | X(bool, Boolean)
npm ERR!       | ^
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3096:30: note:   initializing argument 1 of ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
npm ERR!  3096 |   bool BooleanValue(Isolate* isolate) const;
npm ERR!       |                     ~~~~~~~~~^~~~~~~
npm ERR! In file included from ../../nan/nan_new.h:189,
npm ERR!                  from ../../nan/nan.h:203:
npm ERR! ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_implementation_12_inl.h:103:42: error: cannot convert ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
npm ERR!   103 |   return scope.Escape(v8::Function::New( isolate
npm ERR!       |                                          ^~~~~~~
npm ERR!       |                                          |
npm ERR!       |                                          v8::Isolate*
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4754:22: note:   initializing argument 1 of ‘static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)’
npm ERR!  4754 |       Local<Context> context, FunctionCallback callback,
npm ERR!       |       ~~~~~~~~~~~~~~~^~~~~~~
npm ERR! ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
npm ERR! ../../nan/nan_implementation_12_inl.h:337:31: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
npm ERR!   337 |   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!       |          ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:6196:23: note: candidate: ‘static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)’
npm ERR!  6196 |   static Local<Value> New(Isolate* isolate, Local<String> value);
npm ERR!       |                       ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:6196:23: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
npm ERR!   337 |   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!       |                                                          ^
npm ERR! ../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
npm ERR!   337 |   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!       |                                                            ^
npm ERR! ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan.h:1034:52: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!  1034 |       v8::Local<v8::String> string = from->ToString();
npm ERR!       |                                      ~~~~~~~~~~~~~~^~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3048:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR!  3048 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3048:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../../nan/nan.h:1044:37: error: cannot convert ‘char*’ to ‘v8::Isolate*’
npm ERR!  1044 |         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
npm ERR!       |                                     ^~~~
npm ERR!       |                                     |
npm ERR!       |                                     char*
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3277:26: note:   initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
npm ERR!  3277 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
npm ERR!       |                 ~~~~~~~~~^~~~~~~
npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
npm ERR! ../../nan/nan.h:1818:31: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, const v8::Local<v8::Value>&)’
npm ERR!  1818 |     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
npm ERR!       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
npm ERR! ../../nan/nan.h:1824:31: error: no matching function for call to ‘v8::Object::Set(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’
npm ERR!  1824 |     New(persistentHandle)->Set(key, value);
npm ERR!       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
npm ERR! ../../nan/nan.h:1830:31: error: no matching function for call to ‘v8::Object::Set(uint32_t&, const v8::Local<v8::Value>&)’
npm ERR!  1830 |     New(persistentHandle)->Set(index, value);
npm ERR!       |     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
npm ERR! ../../nan/nan.h:1836:35: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
npm ERR!  1836 |         New(persistentHandle)->Get(New(key).ToLocalChecked()));
npm ERR!       |         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
npm ERR! ../../nan/nan.h:1842:51: error: no matching function for call to ‘v8::Object::Get(const v8::Local<v8::String>&)’
npm ERR!  1842 |     return scope.Escape(New(persistentHandle)->Get(key));
npm ERR!       |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
npm ERR! ../../nan/nan.h:1847:51: error: no matching function for call to ‘v8::Object::Get(uint32_t&)’
npm ERR!  1847 |     return scope.Escape(New(persistentHandle)->Get(index));
npm ERR!       |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(AsyncWorker*)’:
npm ERR! ../../nan/nan.h:2167:7: 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!  2167 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! In file included from /usr/include/c++/12.1.0/cassert:44,
npm ERR!                  from /home/mble/.cache/node-gyp/16.15.1/include/node/node_object_wrap.h:26,
npm ERR!                  from ../../nan/nan.h:53:
npm ERR! ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
npm ERR! ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
npm ERR!    24 |     assert(persistent().IsNearDeath());
npm ERR!       |                         ^~~~~~~~~~~
npm ERR! In file included from ../../nan/nan.h:2657:
npm ERR! ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
npm ERR! ../../nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’
npm ERR!    67 |     persistent().MarkIndependent();
npm ERR!       |                  ^~~~~~~~~~~~~~~
npm ERR! ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
npm ERR! ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
npm ERR!   124 |     assert(wrap->handle_.IsNearDeath());
npm ERR!       |                          ^~~~~~~~~~~
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h: In function ‘size_t StringOrBufferLength(v8::Local<v8::Value>)’:
npm ERR! ../src/leveldown.h:16:25: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    16 |   return (!obj->ToObject().IsEmpty()
npm ERR!       |            ~~~~~~~~~~~~~^~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:17:47: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    17 |     && node::Buffer::HasInstance(obj->ToObject()))
npm ERR!       |                                  ~~~~~~~~~~~~~^~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:18:41: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    18 |     ? node::Buffer::Length(obj->ToObject())
npm ERR!       |                            ~~~~~~~~~~~~~^~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:19:20: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!    19 |     : obj->ToString()->Utf8Length();
npm ERR!       |       ~~~~~~~~~~~~~^~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3048:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR!  3048 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3048:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h: In function ‘void DisposeStringOrBufferFromSlice(Nan::Persistent<v8::Object>&, leveldb::Slice)’:
npm ERR! ../src/leveldown.h:30:65: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
npm ERR!    30 |     v8::Local<v8::Value> obj = Nan::New<v8::Object>(handle)->Get(Nan::New<v8::String>("obj").ToLocalChecked());
npm ERR!       |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../src/database.h: In constructor ‘leveldown::Reference::Reference(v8::Local<v8::Value>, leveldb::Slice)’:
npm ERR! ../src/database.h:31:14: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, v8::Local<v8::Value>&)’
npm ERR!    31 |     _obj->Set(Nan::New("obj").ToLocalChecked(), obj);
npm ERR!       |     ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! ../src/database.h: At global scope:
npm ERR! ../src/database.h:86:7: warning: unnecessary parentheses in declaration of ‘pendingCloseWorker’ [-Wparentheses]
npm ERR!    86 |   void(*pendingCloseWorker);
npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~
npm ERR! ../src/database.h:86:7: note: remove parentheses
npm ERR!    86 |   void(*pendingCloseWorker);
npm ERR!       |       ^~~~~~~~~~~~~~~~~~~~~
npm ERR!       |       -                   -
npm ERR! In file included from ../src/batch.cc:8:
npm ERR! ../src/common.h: In function ‘bool leveldown::BooleanOptionValue(v8::Local<v8::Object>, const char*, bool)’:
npm ERR! ../src/common.h:19:20: error: no matching function for call to ‘v8::Object::Has(v8::Local<v8::String>&)’
npm ERR!    19 |     && options->Has(key)
npm ERR!       |        ~~~~~~~~~~~~^~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4042:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Has(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  4042 |   V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4042:37: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4048:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Has(v8::Local<v8::Context>, uint32_t)’
npm ERR!  4048 |   V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
npm ERR!       |                                     ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4048:37: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../src/common.h:20:19: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>&)’
npm ERR!    20 |     ? options->Get(key)->BooleanValue()
npm ERR!       |       ~~~~~~~~~~~~^~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../src/common.h: In function ‘uint32_t leveldown::UInt32OptionValue(v8::Local<v8::Object>, const char*, uint32_t)’:
npm ERR! ../src/common.h:30:20: error: no matching function for call to ‘v8::Object::Has(v8::Local<v8::String>&)’
npm ERR!    30 |     && options->Has(key)
npm ERR!       |        ~~~~~~~~~~~~^~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4042:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Has(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  4042 |   V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4042:37: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4048:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Has(v8::Local<v8::Context>, uint32_t)’
npm ERR!  4048 |   V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
npm ERR!       |                                     ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4048:37: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../src/common.h:31:20: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>&)’
npm ERR!    31 |     && options->Get(key)->IsNumber()
npm ERR!       |        ~~~~~~~~~~~~^~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../src/common.h:32:19: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>&)’
npm ERR!    32 |     ? options->Get(key)->Uint32Value()
npm ERR!       |       ~~~~~~~~~~~~^~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../src/batch.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE leveldown::Batch::New(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/batch.cc:42:75: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    42 |   Database* database = Nan::ObjectWrap::Unwrap<Database>(info[0]->ToObject());
npm ERR!       |                                                          ~~~~~~~~~~~~~~~~~^~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/batch.cc: In static member function ‘static v8::Local<v8::Value> leveldown::Batch::NewInstance(v8::Local<v8::Object>, v8::Local<v8::Object>)’:
npm ERR! ../src/batch.cc:72:68: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!    72 |     maybeInstance = Nan::NewInstance(constructorHandle->GetFunction(), 1, argv);
npm ERR!       |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:6802:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6802 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:6802:46: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/batch.cc:75:68: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!    75 |     maybeInstance = Nan::NewInstance(constructorHandle->GetFunction(), 2, argv);
npm ERR!       |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:6802:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’
npm ERR!  6802 |   V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR!       |                                              ^~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:6802:46: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/batch.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE leveldown::Batch::Put(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/leveldown.h:53:29: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    53 |   } else if (!from->ToObject().IsEmpty()                                       \
npm ERR! ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    91 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:54:50: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    54 |       && node::Buffer::HasInstance(from->ToObject())) {                        \
npm ERR! ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    91 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:55:52: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    55 |     to ## Sz_ = node::Buffer::Length(from->ToObject());                        \
npm ERR! ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    91 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:56:50: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    56 |     to ## Ch_ = node::Buffer::Data(from->ToObject());                          \
npm ERR! ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    91 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:58:53: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!    58 |     v8::Local<v8::String> to ## Str = from->ToString();                        \
npm ERR! ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    91 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3048:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR!  3048 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3048:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:59:38: error: no matching function for call to ‘v8::String::Utf8Length()’
npm ERR!    59 |     to ## Sz_ = to ## Str->Utf8Length();                                       \
npm ERR! ../src/batch.cc:91:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    91 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3217:7: note: candidate: ‘int v8::String::Utf8Length(v8::Isolate*) const’
npm ERR!  3217 |   int Utf8Length(Isolate* isolate) const;
npm ERR!       |       ^~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3217:7: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/batch.cc:91:32: error: cannot convert ‘char*’ to ‘v8::Isolate*’
npm ERR!    91 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |                                ^~~
npm ERR!       |                                |
npm ERR!       |                                char*
npm ERR! ../src/leveldown.h:62:9: note: in definition of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    62 |         to ## Ch_                                                              \
npm ERR!       |         ^~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3277:26: note:   initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
npm ERR!  3277 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
npm ERR!       |                 ~~~~~~~~~^~~~~~~
npm ERR! ../src/leveldown.h:53:29: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    53 |   } else if (!from->ToObject().IsEmpty()                                       \
npm ERR! ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    92 |   LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:54:50: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    54 |       && node::Buffer::HasInstance(from->ToObject())) {                        \
npm ERR! ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    92 |   LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:55:52: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    55 |     to ## Sz_ = node::Buffer::Length(from->ToObject());                        \
npm ERR! ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    92 |   LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:56:50: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    56 |     to ## Ch_ = node::Buffer::Data(from->ToObject());                          \
npm ERR! ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    92 |   LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:58:53: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!    58 |     v8::Local<v8::String> to ## Str = from->ToString();                        \
npm ERR! ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    92 |   LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3048:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR!  3048 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3048:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:59:38: error: no matching function for call to ‘v8::String::Utf8Length()’
npm ERR!    59 |     to ## Sz_ = to ## Str->Utf8Length();                                       \
npm ERR! ../src/batch.cc:92:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    92 |   LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3217:7: note: candidate: ‘int v8::String::Utf8Length(v8::Isolate*) const’
npm ERR!  3217 |   int Utf8Length(Isolate* isolate) const;
npm ERR!       |       ^~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3217:7: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/batch.cc:92:32: error: cannot convert ‘char*’ to ‘v8::Isolate*’
npm ERR!    92 |   LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
npm ERR!       |                                ^~~~~
npm ERR!       |                                |
npm ERR!       |                                char*
npm ERR! ../src/leveldown.h:62:9: note: in definition of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    62 |         to ## Ch_                                                              \
npm ERR!       |         ^~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3277:26: note:   initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
npm ERR!  3277 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
npm ERR!       |                 ~~~~~~~~~^~~~~~~
npm ERR! ../src/batch.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE leveldown::Batch::Del(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../src/leveldown.h:53:29: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    53 |   } else if (!from->ToObject().IsEmpty()                                       \
npm ERR! ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!   110 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:54:50: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    54 |       && node::Buffer::HasInstance(from->ToObject())) {                        \
npm ERR! ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!   110 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:55:52: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    55 |     to ## Sz_ = node::Buffer::Length(from->ToObject());                        \
npm ERR! ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!   110 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:56:50: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    56 |     to ## Ch_ = node::Buffer::Data(from->ToObject());                          \
npm ERR! ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!   110 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!  3060 |   V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:58:53: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!    58 |     v8::Local<v8::String> to ## Str = from->ToString();                        \
npm ERR! ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!   110 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3048:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR!  3048 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3048:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/leveldown.h:59:38: error: no matching function for call to ‘v8::String::Utf8Length()’
npm ERR!    59 |     to ## Sz_ = to ## Str->Utf8Length();                                       \
npm ERR! ../src/batch.cc:110:3: note: in expansion of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!   110 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3217:7: note: candidate: ‘int v8::String::Utf8Length(v8::Isolate*) const’
npm ERR!  3217 |   int Utf8Length(Isolate* isolate) const;
npm ERR!       |       ^~~~~~~~~~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3217:7: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/batch.cc:110:32: error: cannot convert ‘char*’ to ‘v8::Isolate*’
npm ERR!   110 |   LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
npm ERR!       |                                ^~~
npm ERR!       |                                |
npm ERR!       |                                char*
npm ERR! ../src/leveldown.h:62:9: note: in definition of macro ‘LD_STRING_OR_BUFFER_TO_SLICE’
npm ERR!    62 |         to ## Ch_                                                              \
npm ERR!       |         ^~
npm ERR! /home/mble/.cache/node-gyp/16.15.1/include/node/v8.h:3277:26: note:   initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
npm ERR!  3277 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
npm ERR!       |                 ~~~~~~~~~^~~~~~~
npm ERR! make: *** [leveldown.target.mk:131: Release/obj.target/leveldown/src/batch.o] Error 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/mble/.local/share/nvm/v16.15.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Linux 5.18.10-zen1-1-zen
npm ERR! gyp ERR! command "/home/mble/.local/share/nvm/v16.15.1/bin/node" "/home/mble/.local/share/nvm/v16.15.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/mble/.local/share/nvm/v16.15.1/lib/node_modules/orbit-db-cli/node_modules/leveldown
npm ERR! gyp ERR! node -v v16.15.1
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/mble/.npm/_logs/2022-07-13T17_01_13_651Z-debug-0.log

mbledkowski avatar Jul 13 '22 17:07 mbledkowski

I got the same error by installing it globally. It seems so that orbitdb-cli ist outdated and not in active development, if I look at the commit history.

jeanz6 avatar Jul 20 '22 11:07 jeanz6

For node --version v16.16.0

I get this:

npm install -g orbit-db-cli npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/orbitdb/orbit-db.git npm ERR! [email protected]: Permission denied (publickey). npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-08-09T12_08_44_802Z-debug-0.log

Any idea how to fix?

sgmihai avatar Aug 09 '22 12:08 sgmihai