Level / leveldown

Superseded by classic-level. Pure C++ Node.js LevelDB binding. An abstract-leveldown compliant store.
MIT License
776 stars 177 forks source link

node v12 error: too few arguments to function call, expected 2, have 1 #695

Closed loretoparisi closed 5 years ago

loretoparisi commented 5 years ago
$ node --version
v12.13.1
$ npm --version
6.13.1

logging

> leveldown@4.0.2 install /Users/loretoparisi/Documents/Projects/musixmatch-ai-console/webservice/node_modules/musixmatch-node-sdk/node_modules/leveldown
> prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=12.13.1 runtime=node arch=x64 libc= platform=darwin)
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_impl.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_iter.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/filename.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/dbformat.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_reader.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_writer.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/memtable.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/repair.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/table_cache.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_edit.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_set.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/write_batch.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix_sse.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block_builder.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/filter_block.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/format.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/iterator.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/merger.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table_builder.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/two_level_iterator.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/arena.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/bloom.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/cache.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/coding.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/comparator.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/crc32c.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/filter_policy.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/hash.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/logging.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/options.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/status.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix.o
  CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env_posix.o
  LIBTOOL-STATIC Release/leveldb.a
  CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy-sinksource.o
  CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy-stubs-internal.o
  CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy.o
  LIBTOOL-STATIC Release/snappy.a
  CXX(target) Release/obj.target/leveldown/src/batch.o
In file included from ../src/batch.cc:3:
In file included from ../node_modules/nan/nan.h:222:
In file included from ../node_modules/nan/nan_converters.h:67:
../node_modules/nan/nan_converters_43_inl.h:22:1: warning: 'ToBoolean' is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
X(Boolean)
^
../node_modules/nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X'
      val->To ## TYPE(isolate->GetCurrentContext())                            \
           ^
<scratch space>:214:1: note: expanded from here
ToBoolean
^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2567:3: note: 'ToBoolean' has been explicitly marked deprecated here
  V8_DEPRECATED("ToBoolean can never throw. Use Local version.",
  ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:3:
In file included from ../node_modules/nan/nan.h:222:
In file included from ../node_modules/nan/nan_converters.h:67:
../node_modules/nan/nan_converters_43_inl.h:40:1: warning: 'BooleanValue' is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
X(bool, Boolean)
^
../node_modules/nan/nan_converters_43_inl.h:37:15: note: expanded from macro 'X'
  return val->NAME ## Value(isolate->GetCurrentContext());                     \
              ^
<scratch space>:221:1: note: expanded from here
BooleanValue
^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2605:3: note: 'BooleanValue' has been explicitly marked deprecated here
  V8_DEPRECATED("BooleanValue can never throw. Use Isolate version.",
  ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:3:
In file included from ../node_modules/nan/nan.h:223:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:356:37: error: too few arguments to function call, expected 2, have 1
  return v8::StringObject::New(value).As<v8::StringObject>();
         ~~~~~~~~~~~~~~~~~~~~~      ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:5426:3: note: 'New' declared here
  static Local<Value> New(Isolate* isolate, Local<String> value);
  ^
In file included from ../src/batch.cc:3:
In file included from ../node_modules/nan/nan.h:223:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:356:58: error: expected '(' for function-style cast or type construction
  return v8::StringObject::New(value).As<v8::StringObject>();
                                         ~~~~~~~~~~~~~~~~^
../node_modules/nan/nan_implementation_12_inl.h:356:60: error: expected expression
  return v8::StringObject::New(value).As<v8::StringObject>();
                                                           ^
In file included from ../src/batch.cc:3:
In file included from ../node_modules/nan/nan.h:2722:
../node_modules/nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    assert(persistent().IsNearDeath());
           ~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
In file included from ../src/batch.cc:3:
In file included from ../node_modules/nan/nan.h:2722:
../node_modules/nan/nan_object_wrap.h:127:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    assert(wrap->handle_.IsNearDeath());
           ~~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:16:17: error: no matching member function for call to 'ToObject'
  return (!obj->ToObject().IsEmpty()
           ~~~~~^~~~~~~~
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate function not viable: requires single argument 'context', but no
      arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate function not viable: requires single argument 'isolate', but no
      arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:17:39: error: no matching member function for call to 'ToObject'
    && node::Buffer::HasInstance(obj->ToObject()))
                                 ~~~~~^~~~~~~~
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate function not viable: requires single argument 'context', but no
      arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate function not viable: requires single argument 'isolate', but no
      arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:18:33: error: no matching member function for call to 'ToObject'
    ? node::Buffer::Length(obj->ToObject())
                           ~~~~~^~~~~~~~
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate function not viable: requires single argument 'context', but no
      arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate function not viable: requires single argument 'isolate', but no
      arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:19:12: error: no matching member function for call to 'ToString'
    : obj->ToString()->Utf8Length();
      ~~~~~^~~~~~~~
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2572:44: note: candidate function not viable: requires single argument 'context', but no
      arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2588:31: note: candidate function not viable: requires single argument 'isolate', but no
      arguments were provided
                Local<String> ToString(Isolate* isolate) const);
                              ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:30:62: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
    v8::Local<v8::Value> obj = Nan::New<v8::Object>(handle)->Get(Nan::New<v8::String>("obj").ToLocalChecked());
                                                             ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:3457:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:5:
../src/database.h:31:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
    _obj->Set(Nan::New("obj").ToLocalChecked(), obj);
          ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:3402:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version",
  ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:8:
../src/common.h:19:17: error: no matching member function for call to 'Has'
    && options->Has(key)
       ~~~~~~~~~^~~
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:3494:37: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
                                    ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:3500:37: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
                                    ^
In file included from ../src/batch.cc:8:
../src/common.h:20:16: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
    ? options->Get(key)->BooleanValue()
               ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:3457:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:8:
../src/common.h:20:26: error: no matching member function for call to 'BooleanValue'
    ? options->Get(key)->BooleanValue()
      ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2603:8: note: candidate function not viable: requires single argument 'isolate', but no arguments
      were provided
  bool BooleanValue(Isolate* isolate) const;
       ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2606:51: note: candidate function not viable: requires single argument 'context', but no
      arguments were provided
                V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                  ^
In file included from ../src/batch.cc:8:
../src/common.h:30:17: error: no matching member function for call to 'Has'
    && options->Has(key)
       ~~~~~~~~~^~~
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:3494:37: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context,
                                    ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:3500:37: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Has(Local<Context> context, uint32_t index);
                                    ^
In file included from ../src/batch.cc:8:
../src/common.h:31:17: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
    && options->Get(key)->IsNumber()
                ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:3457:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:8:
../src/common.h:32:16: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
    ? options->Get(key)->Uint32Value()
               ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:3457:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:8:
../src/common.h:32:38: error: too few arguments to function call, single argument 'context' was not specified
    ? options->Get(key)->Uint32Value()
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2611:3: note: 'Uint32Value' declared here
  V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
  ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/batch.cc:42:67: error: no matching member function for call to 'ToObject'
  Database* database = Nan::ObjectWrap::Unwrap<Database>(info[0]->ToObject());
                                                         ~~~~~~~~~^~~~~~~~
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate function not viable: requires single argument 'context', but no
      arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate function not viable: requires single argument 'isolate', but no
      arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../src/batch.cc:72:69: error: too few arguments to function call, single argument 'context' was not specified
    maybeInstance = Nan::NewInstance(constructorHandle->GetFunction(), 1, argv);
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:5995:3: note: 'GetFunction' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
  ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/batch.cc:75:69: error: too few arguments to function call, single argument 'context' was not specified
    maybeInstance = Nan::NewInstance(constructorHandle->GetFunction(), 2, argv);
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:5995:3: note: 'GetFunction' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
  ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/batch.cc:91:3: error: no matching member function for call to 'ToObject'
  LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/leveldown.h:53:21: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
  } else if (!from->ToObject().IsEmpty()                                       \
              ~~~~~~^~~~~~~~
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate function not viable: requires single argument 'context', but no
      arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate function not viable: requires single argument 'isolate', but no
      arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../src/batch.cc:91:3: error: no matching member function for call to 'ToObject'
  LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/leveldown.h:54:42: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
      && node::Buffer::HasInstance(from->ToObject())) {                        \
                                   ~~~~~~^~~~~~~~
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate function not viable: requires single argument 'context', but no
      arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate function not viable: requires single argument 'isolate', but no
      arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../src/batch.cc:91:3: error: no matching member function for call to 'ToObject'
  LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/leveldown.h:55:44: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    to ## Sz_ = node::Buffer::Length(from->ToObject());                        \
                                     ~~~~~~^~~~~~~~
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2576:44: note: candidate function not viable: requires single argument 'context', but no
      arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/loretoparisi/Library/Caches/node-gyp/12.13.1/include/node/v8.h:2590:31: note: candidate function not viable: requires single argument 'isolate', but no
      arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
7 warnings and 20 errors generated.

Related to nan https://github.com/nodejs/nan/issues/877

ralphtheninja commented 5 years ago

You need to upgrade leveldown to at least version 5 to run it on node 12.

loretoparisi commented 5 years ago

@ralphtheninja I'm not using leveldown directly this is the problem, so how we can get rid of this issue?

ralphtheninja commented 5 years ago

@loretoparisi Then whatever is using leveldown need to upgrade. You could always fork that project and bump the dependency yourself and use that meanwhile upstream is being updated.

loretoparisi commented 5 years ago

@ralphtheninja that is an option, thank you. Let me check which is the dependant package:

│ │ │ ├─┬ level-packager@3.1.0
│ │ │ │ ├─┬ encoding-down@5.0.4
│ │ │ │ │ ├── abstract-leveldown@5.0.0 deduped
│ │ │ │ │ ├── inherits@2.0.4 deduped
│ │ │ │ │ ├── level-codec@9.0.1
│ │ │ │ │ ├─┬ level-errors@2.0.1
│ │ │ │ │ │ └── errno@0.1.7 deduped
│ │ │ │ │ └── xtend@4.0.2 deduped
│ │ │ │ └─┬ levelup@3.1.1
│ │ │ │   ├─┬ deferred-leveldown@4.0.2
│ │ │ │   │ ├── abstract-leveldown@5.0.0 deduped
│ │ │ │   │ └── inherits@2.0.4 deduped
│ │ │ │   ├── level-errors@2.0.1 deduped
│ │ │ │   ├─┬ level-iterator-stream@3.0.1
│ │ │ │   │ ├── inherits@2.0.4 deduped
│ │ │ │   │ ├─┬ readable-stream@2.3.6
│ │ │ │   │ │ ├── core-util-is@1.0.2 deduped
│ │ │ │   │ │ ├── inherits@2.0.4 deduped
│ │ │ │   │ │ ├── isarray@1.0.0 deduped
│ │ │ │   │ │ ├── process-nextick-args@2.0.1 deduped
│ │ │ │   │ │ ├── safe-buffer@5.1.2
│ │ │ │   │ │ ├─┬ string_decoder@1.1.1
│ │ │ │   │ │ │ └── safe-buffer@5.1.2 deduped
│ │ │ │   │ │ └── util-deprecate@1.0.2 deduped
│ │ │ │   │ └── xtend@4.0.2 deduped
│ │ │ │   └── xtend@4.0.2 deduped
│ │ │ ├─┬ leveldown@4.0.2

and

│ │ ├─┬ level@4.0.0
│ │ │ ├─┬ level-packager@3.1.0
│ │ │ │ ├─┬ encoding-down@5.0.4
│ │ │ │ │ ├── abstract-leveldown@5.0.0 deduped
│ │ │ │ │ ├── inherits@2.0.4 deduped
│ │ │ │ │ ├── level-codec@9.0.1
│ │ │ │ │ ├─┬ level-errors@2.0.1
│ │ │ │ │ │ └── errno@0.1.7 deduped
│ │ │ │ │ └── xtend@4.0.2 deduped
│ │ │ │ └─┬ levelup@3.1.1
│ │ │ │   ├─┬ deferred-leveldown@4.0.2
│ │ │ │   │ ├── abstract-leveldown@5.0.0 deduped
│ │ │ │   │ └── inherits@2.0.4 deduped
│ │ │ │   ├── level-errors@2.0.1 deduped
│ │ │ │   ├─┬ level-iterator-stream@3.0.1
│ │ │ │   │ ├── inherits@2.0.4 deduped
│ │ │ │   │ ├─┬ readable-stream@2.3.6
│ │ │ │   │ │ ├── core-util-is@1.0.2 deduped
│ │ │ │   │ │ ├── inherits@2.0.4 deduped
│ │ │ │   │ │ ├── isarray@1.0.0 deduped
│ │ │ │   │ │ ├── process-nextick-args@2.0.1 deduped
│ │ │ │   │ │ ├── safe-buffer@5.1.2
│ │ │ │   │ │ ├─┬ string_decoder@1.1.1
│ │ │ │   │ │ │ └── safe-buffer@5.1.2 deduped
│ │ │ │   │ │ └── util-deprecate@1.0.2 deduped
│ │ │ │   │ └── xtend@4.0.2 deduped
│ │ │ │   └── xtend@4.0.2 deduped
│ │ │ ├─┬ leveldown@4.0.2
│ ├─┬ annoy@2.0.1
│ │ ├─┬ bindings@1.5.0
│ │ │ └── file-uri-to-path@1.0.0
│ │ ├─┬ level@4.0.0
│ │ │ ├─┬ level-packager@3.1.0
│ │ │ │ ├─┬ encoding-down@5.0.4
│ │ │ │ │ ├── abstract-leveldown@5.0.0 deduped
│ │ │ │ │ ├── inherits@2.0.4 deduped
│ │ │ │ │ ├── level-codec@9.0.1
│ │ │ │ │ ├─┬ level-errors@2.0.1
│ │ │ │ │ │ └── errno@0.1.7 deduped
│ │ │ │ │ └── xtend@4.0.2 deduped
│ │ │ │ └─┬ levelup@3.1.1
│ │ │ │   ├─┬ deferred-leveldown@4.0.2
│ │ │ │   │ ├── abstract-leveldown@5.0.0 deduped
│ │ │ │   │ └── inherits@2.0.4 deduped
│ │ │ │   ├── level-errors@2.0.1 deduped
│ │ │ │   ├─┬ level-iterator-stream@3.0.1
│ │ │ │   │ ├── inherits@2.0.4 deduped
│ │ │ │   │ ├─┬ readable-stream@2.3.6
│ │ │ │   │ │ ├── core-util-is@1.0.2 deduped
│ │ │ │   │ │ ├── inherits@2.0.4 deduped
│ │ │ │   │ │ ├── isarray@1.0.0 deduped
│ │ │ │   │ │ ├── process-nextick-args@2.0.1 deduped
│ │ │ │   │ │ ├── safe-buffer@5.1.2
│ │ │ │   │ │ ├─┬ string_decoder@1.1.1
│ │ │ │   │ │ │ └── safe-buffer@5.1.2 deduped
│ │ │ │   │ │ └── util-deprecate@1.0.2 deduped
│ │ │ │   │ └── xtend@4.0.2 deduped
│ │ │ │   └── xtend@4.0.2 deduped
│ │ │ ├─┬ leveldown@4.0.2

so It seems that the dependant were level, its level-packager

vweevers commented 5 years ago

so It seems that the dependant were level, its level-packager

Those already upgraded to latest leveldown, so you gotta go up one more, which is annoy.

I'm closing this because there's nothing to do here. Good luck!