Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Installation bugs with both methods presented in documentation #46

Open
filipedfr opened this issue Jan 15, 2022 · 5 comments
Open

Installation bugs with both methods presented in documentation #46

filipedfr opened this issue Jan 15, 2022 · 5 comments

Comments

@filipedfr
Copy link

Has anyone tried installing orbit-db-cli recently (both from npm or from git clone/npm install)?

I've been having some issues with both the installation methods.

I tried using different node versions. Actually I had success with node 11 but when I launched orbit-cli, it crashed because of a globalThis reference (which as far as I know, node 11 does not support).

OUTPUTS:

Using npm (directly)

npm ERR! code 1
npm ERR! path /home/filipedfr/.npm-global/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/filipedfr/.npm-global/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/filipedfr/.npm-global/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 node-gyp@8.3.0
npm ERR! gyp info using node@16.13.2 | linux | x64
npm ERR! gyp info find Python using Python version 3.9.6 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   '/home/filipedfr/.npm-global/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   '/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   '/home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2',
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=/home/filipedfr/.cache/node-gyp/16.13.2/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/filipedfr/.npm-global/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/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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! 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::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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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!                  from ../src/batch.cc:3:
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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! In file included from ../../nan/nan_new.h:189,
npm ERR!                  from ../../nan/nan.h:203,
npm ERR!                  from ../src/batch.cc:3:
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:37: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:6196:23: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../../nan/nan_new.h:189,
npm ERR!                  from ../../nan/nan.h:203,
npm ERR!                  from ../src/batch.cc:3:
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! In file included from ../src/batch.cc:3:
npm ERR! ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan.h:1034:53: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!  1034 |       v8::Local<v8::String> string = from->ToString();
npm ERR!       |                                                     ^
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3048:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/batch.cc:3:
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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! In file included from ../src/batch.cc:3:
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:64: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/batch.cc:3:
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:42: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/batch.cc:3:
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:44: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/batch.cc:3:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
npm ERR! ../../nan/nan.h:1836:61: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/batch.cc:3:
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:55: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/batch.cc:3:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
npm ERR! ../../nan/nan.h:1847:57: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/batch.cc:3:
npm ERR! ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
npm ERR! ../../nan/nan.h:2167:62: 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++/9/cassert:44,
npm ERR!                  from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node_object_wrap.h:26,
npm ERR!                  from ../../nan/nan.h:53,
npm ERR!                  from ../src/batch.cc:3:
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!                  from ../src/batch.cc:3:
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! In file included from /usr/include/c++/9/cassert:44,
npm ERR!                  from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node_object_wrap.h:26,
npm ERR!                  from ../../nan/nan.h:53,
npm ERR!                  from ../src/batch.cc:3:
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:26: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    16 |   return (!obj->ToObject().IsEmpty()
npm ERR!       |                          ^
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:17:48: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    17 |     && node::Buffer::HasInstance(obj->ToObject()))
npm ERR!       |                                                ^
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:18:42: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    18 |     ? node::Buffer::Length(obj->ToObject())
npm ERR!       |                                          ^
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:19:21: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!    19 |     : obj->ToString()->Utf8Length();
npm ERR!       |                     ^
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3048:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h: In function ‘void DisposeStringOrBufferFromSlice(Nan::Persistent<v8::Object>&, leveldb::Slice)’:
npm ERR! ../src/leveldown.h:30:110: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/batch.cc:5:
npm ERR! ../src/database.h: In constructor ‘leveldown::Reference::Reference(v8::Local<v8::Value>, leveldb::Slice)’:
npm ERR! ../src/database.h:31:52: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/batch.cc:5:
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! 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:24: error: no matching function for call to ‘v8::Object::Has(v8::Local<v8::String>&)’
npm ERR!    19 |     && options->Has(key)
npm ERR!       |                        ^
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4042:37: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4048:37: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/batch.cc:8:
npm ERR! ../src/common.h:20:23: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/batch.cc:8:
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:24: error: no matching function for call to ‘v8::Object::Has(v8::Local<v8::String>&)’
npm ERR!    30 |     && options->Has(key)
npm ERR!       |                        ^
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4042:37: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4048:37: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/batch.cc:8:
npm ERR! ../src/common.h:31:24: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/batch.cc:8:
npm ERR! ../src/common.h:32:23: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/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:76: 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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/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:69: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!    72 |     maybeInstance = Nan::NewInstance(constructorHandle->GetFunction(), 1, argv);
npm ERR!       |                                                                     ^
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:6802:46: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/batch.cc:75:69: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
npm ERR!    75 |     maybeInstance = Nan::NewInstance(constructorHandle->GetFunction(), 2, argv);
npm ERR!       |                                                                     ^
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:6802:46: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
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:30: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    53 |   } else if (!from->ToObject().IsEmpty()                                       \
npm ERR!       |                              ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:54:51: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    54 |       && node::Buffer::HasInstance(from->ToObject())) {                        \
npm ERR!       |                                                   ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:55:53: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    55 |     to ## Sz_ = node::Buffer::Length(from->ToObject());                        \
npm ERR!       |                                                     ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:56:51: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    56 |     to ## Ch_ = node::Buffer::Data(from->ToObject());                          \
npm ERR!       |                                                   ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:58:54: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!    58 |     v8::Local<v8::String> to ## Str = from->ToString();                        \
npm ERR!       |                                                      ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3048:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:59:39: error: no matching function for call to ‘v8::String::Utf8Length()’
npm ERR!    59 |     to ## Sz_ = to ## Str->Utf8Length();                                       \
npm ERR!       |                                       ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3217:7: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:53:30: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    53 |   } else if (!from->ToObject().IsEmpty()                                       \
npm ERR!       |                              ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:54:51: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    54 |       && node::Buffer::HasInstance(from->ToObject())) {                        \
npm ERR!       |                                                   ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:55:53: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    55 |     to ## Sz_ = node::Buffer::Length(from->ToObject());                        \
npm ERR!       |                                                     ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:56:51: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    56 |     to ## Ch_ = node::Buffer::Data(from->ToObject());                          \
npm ERR!       |                                                   ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:58:54: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!    58 |     v8::Local<v8::String> to ## Str = from->ToString();                        \
npm ERR!       |                                                      ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3048:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:59:39: error: no matching function for call to ‘v8::String::Utf8Length()’
npm ERR!    59 |     to ## Sz_ = to ## Str->Utf8Length();                                       \
npm ERR!       |                                       ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3217:7: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
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:30: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    53 |   } else if (!from->ToObject().IsEmpty()                                       \
npm ERR!       |                              ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:54:51: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    54 |       && node::Buffer::HasInstance(from->ToObject())) {                        \
npm ERR!       |                                                   ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:55:53: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    55 |     to ## Sz_ = node::Buffer::Length(from->ToObject());                        \
npm ERR!       |                                                     ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:56:51: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    56 |     to ## Ch_ = node::Buffer::Data(from->ToObject());                          \
npm ERR!       |                                                   ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:58:54: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!    58 |     v8::Local<v8::String> to ## Str = from->ToString();                        \
npm ERR!       |                                                      ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3048:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
npm ERR! ../src/leveldown.h:59:39: error: no matching function for call to ‘v8::String::Utf8Length()’
npm ERR!    59 |     to ## Sz_ = to ## Str->Utf8Length();                                       \
npm ERR!       |                                       ^
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3217:7: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/database.h:18,
npm ERR!                  from ../src/batch.cc:5:
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! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../src/batch.cc:1:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
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 /home/filipedfr/.npm-global/lib/node_modules/orbit-db-cli/node_modules/leveldown
npm ERR! gyp ERR! node -v v16.13.2
npm ERR! gyp ERR! node-gyp -v v8.3.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/filipedfr/.npm/_logs/2022-01-15T14_56_53_201Z-debug.log

Using git clone and npm install

npm ERR! code 1
npm ERR! path /home/filipedfr/orbit-db-cli/node_modules/tiny-secp256k1
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/home/filipedfr/orbit-db-cli/node_modules/tiny-secp256k1/build'
npm ERR!   CXX(target) Release/obj.target/secp256k1/native/addon.o
npm ERR! make: Leaving directory '/home/filipedfr/orbit-db-cli/node_modules/tiny-secp256k1/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.3.0
npm ERR! gyp info using node@16.13.2 | linux | x64
npm ERR! gyp info find Python using Python version 3.9.6 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   '/home/filipedfr/orbit-db-cli/node_modules/tiny-secp256k1/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   '/home/filipedfr/.cache/node-gyp/16.13.2/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/filipedfr/.cache/node-gyp/16.13.2',
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=/home/filipedfr/.cache/node-gyp/16.13.2/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/filipedfr/orbit-db-cli/node_modules/tiny-secp256k1',
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! In file included from ../native/addon.cpp:4:
npm ERR! ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
npm ERR! ../../nan/nan.h:2232:62: 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!  2232 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
npm ERR!       |                                                              ^
npm ERR! ../native/addon.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE ecdsaVerify(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../native/addon.cpp:320:34: error: no matching function for call to ‘v8::Value::BooleanValue()’
npm ERR!   320 |   strict = info[3]->BooleanValue();
npm ERR!       |                                  ^
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:53,
npm ERR!                  from ../native/addon.cpp:4:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3096:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
npm ERR!  3096 |   bool BooleanValue(Isolate* isolate) const;
npm ERR!       |        ^~~~~~~~~~~~
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3096:8: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../../nan/nan.h:53,
npm ERR!                  from ../native/addon.cpp:4:
npm ERR! ../native/addon.cpp: At global scope:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:821:43: 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!   821 |       (node::addon_register_func) (regfunc),                          \
npm ERR!       |                                           ^
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’
npm ERR!   855 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
npm ERR!       |   ^~~~~~~~~~~~~
npm ERR! ../native/addon.cpp:359:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR!   359 | NODE_MODULE(secp256k1, Init)
npm ERR!       | ^~~~~~~~~~~
npm ERR! ../native/addon.cpp: In instantiation of ‘unsigned int {anonymous}::assumeCompression(const I&, const A&) [with long unsigned int index = 2; I = Nan::FunctionCallbackInfo<v8::Value>; A = v8::Local<v8::Object>]’:
npm ERR! ../native/addon.cpp:142:50:   required from here
npm ERR! ../native/addon.cpp:80:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
npm ERR!    80 |   if (info.Length() <= index) return __isPointCompressed(p) ? SECP256K1_EC_COMPRESSED : SECP256K1_EC_UNCOMPRESSED;
npm ERR! ../native/addon.cpp:82:38: error: no matching function for call to ‘v8::Value::BooleanValue()’
npm ERR!    82 |   return info[index]->BooleanValue() ? SECP256K1_EC_COMPRESSED : SECP256K1_EC_UNCOMPRESSED;
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:53,
npm ERR!                  from ../native/addon.cpp:4:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3096:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
npm ERR!  3096 |   bool BooleanValue(Isolate* isolate) const;
npm ERR!       |        ^~~~~~~~~~~~
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3096:8: note:   candidate expects 1 argument, 0 provided
npm ERR! ../native/addon.cpp: In instantiation of ‘unsigned int {anonymous}::assumeCompression(const I&, const A&) [with long unsigned int index = 1; I = Nan::FunctionCallbackInfo<v8::Value>; A = v8::Local<v8::Object>]’:
npm ERR! ../native/addon.cpp:174:49:   required from here
npm ERR! ../native/addon.cpp:80:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
npm ERR!    80 |   if (info.Length() <= index) return __isPointCompressed(p) ? SECP256K1_EC_COMPRESSED : SECP256K1_EC_UNCOMPRESSED;
npm ERR! ../native/addon.cpp:82:38: error: no matching function for call to ‘v8::Value::BooleanValue()’
npm ERR!    82 |   return info[index]->BooleanValue() ? SECP256K1_EC_COMPRESSED : SECP256K1_EC_UNCOMPRESSED;
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:53,
npm ERR!                  from ../native/addon.cpp:4:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3096:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
npm ERR!  3096 |   bool BooleanValue(Isolate* isolate) const;
npm ERR!       |        ^~~~~~~~~~~~
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3096:8: note:   candidate expects 1 argument, 0 provided
npm ERR! ../native/addon.cpp: In instantiation of ‘unsigned int {anonymous}::assumeCompression(const I&) [with long unsigned int index = 1; I = Nan::FunctionCallbackInfo<v8::Value>]’:
npm ERR! ../native/addon.cpp:189:46:   required from here
npm ERR! ../native/addon.cpp:87:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
npm ERR!    87 |   if (info.Length() <= index) return SECP256K1_EC_COMPRESSED;
npm ERR! ../native/addon.cpp:89:38: error: no matching function for call to ‘v8::Value::BooleanValue()’
npm ERR!    89 |   return info[index]->BooleanValue() ? SECP256K1_EC_COMPRESSED : SECP256K1_EC_UNCOMPRESSED;
npm ERR! In file included from /home/filipedfr/.cache/node-gyp/16.13.2/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:53,
npm ERR!                  from ../native/addon.cpp:4:
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3096:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
npm ERR!  3096 |   bool BooleanValue(Isolate* isolate) const;
npm ERR!       |        ^~~~~~~~~~~~
npm ERR! /home/filipedfr/.cache/node-gyp/16.13.2/include/node/v8.h:3096:8: note:   candidate expects 1 argument, 0 provided
npm ERR! ../native/addon.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE eccPrivateSub(Nan::NAN_METHOD_ARGS_TYPE)’:
npm ERR! ../native/addon.cpp:240:29: warning: ignoring return value of ‘int secp256k1_ec_privkey_negate(const secp256k1_context*, unsigned char*)’, declared with attribute warn_unused_result [-Wunused-result]
npm ERR!   240 |  secp256k1_ec_privkey_negate(context, tweak_negated); // returns 1 always
npm ERR!       |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! make: *** [secp256k1.target.mk:152: Release/obj.target/secp256k1/native/addon.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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
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 /home/filipedfr/orbit-db-cli/node_modules/tiny-secp256k1
npm ERR! gyp ERR! node -v v16.13.2
npm ERR! gyp ERR! node-gyp -v v8.3.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/filipedfr/.npm/_logs/2022-01-15T14_54_45_933Z-debug.log

Thanks!

@filipedfr
Copy link
Author

I tried to install it using node 10 and it is working fine!

@gavinowens
Copy link

I tried installing it and it couldn't find the main files.

@gavinowens
Copy link

I got mine to work by changing node_modules permissions. 😄

@evokelektrique
Copy link

Same error here

~$ node --version
v17.6.0

@sgmihai
Copy link

sgmihai commented Aug 9, 2022

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://git@github.com/orbitdb/orbit-db.git
npm ERR! git@github.com: 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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants