Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compiling on Mac with node 11 #595

Closed
tomitrescak opened this issue Feb 19, 2019 · 20 comments
Closed

Not compiling on Mac with node 11 #595

tomitrescak opened this issue Feb 19, 2019 · 20 comments
Labels
bug Something isn't working v4.x

Comments

@tomitrescak
Copy link

Any idea? Thanks!!!

error /usr/local/share/.config/yarn/global/node_modules/level/node_modules/leveldown: Command failed.
Exit code: 1
Command: prebuild-install || node-gyp rebuild
Arguments: 
Directory: /usr/local/share/.config/yarn/global/node_modules/level/node_modules/leveldown
Output:
prebuild-install WARN install No prebuilt binaries found (target=11.9.0 runtime=node arch=x64 platform=darwin)
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn /usr/local/bin/python2
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/share/.config/yarn/global/node_modules/level/node_modules/leveldown/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/tomi/.node-gyp/11.9.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/tomi/.node-gyp/11.9.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/tomi/.node-gyp/11.9.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/usr/local/share/.config/yarn/global/node_modules/level/node_modules/leveldown',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  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 ../../nan/nan.h:192:
../../nan/nan_maybe_43_inl.h:112:15: error: no member named 'ForceSet' in 'v8::Object'
  return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
         ~~~  ^
In file included from ../src/batch.cc:3:
In file included from ../../nan/nan.h:198:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:337:28: warning: 'New' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
  return v8::StringObject::New(value).As<v8::StringObject>();
                           ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:5241:3: note: 'New' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate* version",
  ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:3:
../../nan/nan.h:834:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/tomi/.node-gyp/11.9.0/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/tomi/.node-gyp/11.9.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/batch.cc:3:
../../nan/nan.h:849:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/tomi/.node-gyp/11.9.0/include/node/node.h:164:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/tomi/.node-gyp/11.9.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/batch.cc:3:
../../nan/nan.h:864:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/tomi/.node-gyp/11.9.0/include/node/node.h:157:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/tomi/.node-gyp/11.9.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/batch.cc:3:
../../nan/nan.h:911:44: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
      v8::Local<v8::String> string = from->ToString();
                                           ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:3:
../../nan/nan.h:921:27: warning: 'WriteUtf8' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
        length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                          ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2753:3: note: 'WriteUtf8' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate* version",
  ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:3:
../../nan/nan.h:1473:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
    return scope.Escape(node::MakeCallback(
                              ^
/Users/tomi/.node-gyp/11.9.0/include/node/node.h:171:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/tomi/.node-gyp/11.9.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:16:17: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  return (!obj->ToObject().IsEmpty()
                ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:17:39: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    && node::Buffer::HasInstance(obj->ToObject()))
                                      ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:18:33: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
    ? node::Buffer::Length(obj->ToObject())
                                ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:19:12: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
    : obj->ToString()->Utf8Length();
           ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:19:24: warning: 'Utf8Length' is deprecated: Use Isolate version instead [-Wdeprecated-declarations]
    : obj->ToString()->Utf8Length();
                       ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2682:3: note: 'Utf8Length' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate version instead", int Utf8Length() const);
  ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:8:
../src/common.h:20:26: warning: 'BooleanValue' is deprecated: Use maybe version [-Wdeprecated-declarations]
    ? options->Get(key)->BooleanValue()
                         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2568:3: note: 'BooleanValue' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", bool BooleanValue() const);
  ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../src/batch.cc:8:
../src/common.h:32:26: warning: 'Uint32Value' is deprecated: Use maybe version [-Wdeprecated-declarations]
    ? options->Get(key)->Uint32Value()
                         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2571:3: note: 'Uint32Value' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", uint32_t Uint32Value() const);
  ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:42:67: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  Database* database = Nan::ObjectWrap::Unwrap<Database>(info[0]->ToObject());
                                                                  ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:91:3: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  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/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:91:3: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  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/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:91:3: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  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/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:91:3: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
  ^
../src/leveldown.h:56:42: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    to ## Ch_ = node::Buffer::Data(from->ToObject());                          \
                                         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:91:3: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
  ^
../src/leveldown.h:58:45: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    v8::Local<v8::String> to ## Str = from->ToString();                        \
                                            ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:91:3: warning: 'Utf8Length' is deprecated: Use Isolate version instead [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
  ^
../src/leveldown.h:59:28: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    to ## Sz_ = to ## Str->Utf8Length();                                       \
                           ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2682:3: note: 'Utf8Length' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate version instead", int Utf8Length() const);
  ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:91:3: warning: 'WriteUtf8' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
  ^
../src/leveldown.h:61:16: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    to ## Str->WriteUtf8(                                                      \
               ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2753:3: note: 'WriteUtf8' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate* version",
  ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:92:3: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
  ^
../src/leveldown.h:53:21: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
  } else if (!from->ToObject().IsEmpty()                                       \
                    ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:92:3: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
  ^
../src/leveldown.h:54:42: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
      && node::Buffer::HasInstance(from->ToObject())) {                        \
                                         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:92:3: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
  ^
../src/leveldown.h:55:44: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    to ## Sz_ = node::Buffer::Length(from->ToObject());                        \
                                           ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:92:3: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
  ^
../src/leveldown.h:56:42: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    to ## Ch_ = node::Buffer::Data(from->ToObject());                          \
                                         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:92:3: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
  ^
../src/leveldown.h:58:45: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    v8::Local<v8::String> to ## Str = from->ToString();                        \
                                            ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:92:3: warning: 'Utf8Length' is deprecated: Use Isolate version instead [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
  ^
../src/leveldown.h:59:28: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    to ## Sz_ = to ## Str->Utf8Length();                                       \
                           ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2682:3: note: 'Utf8Length' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate version instead", int Utf8Length() const);
  ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:92:3: warning: 'WriteUtf8' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(value, valueBuffer, value)
  ^
../src/leveldown.h:61:16: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    to ## Str->WriteUtf8(                                                      \
               ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2753:3: note: 'WriteUtf8' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate* version",
  ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:110:3: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  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/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:110:3: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  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/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:110:3: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  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/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:110:3: warning: 'ToObject' is deprecated: Use maybe version [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
  ^
../src/leveldown.h:56:42: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    to ## Ch_ = node::Buffer::Data(from->ToObject());                          \
                                         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2549:10: note: 'ToObject' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<Object> ToObject() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:110:3: warning: 'ToString' is deprecated: Use maybe version [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
  ^
../src/leveldown.h:58:45: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    v8::Local<v8::String> to ## Str = from->ToString();                        \
                                            ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2548:10: note: 'ToString' has been explicitly marked deprecated here
  inline V8_DEPRECATED("Use maybe version", Local<String> ToString() const);
         ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:110:3: warning: 'Utf8Length' is deprecated: Use Isolate version instead [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
  ^
../src/leveldown.h:59:28: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    to ## Sz_ = to ## Str->Utf8Length();                                       \
                           ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2682:3: note: 'Utf8Length' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate version instead", int Utf8Length() const);
  ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/batch.cc:110:3: warning: 'WriteUtf8' is deprecated: Use Isolate* version [-Wdeprecated-declarations]
  LD_STRING_OR_BUFFER_TO_SLICE(key, keyBuffer, key)
  ^
../src/leveldown.h:61:16: note: expanded from macro 'LD_STRING_OR_BUFFER_TO_SLICE'
    to ## Str->WriteUtf8(                                                      \
               ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8.h:2753:3: note: 'WriteUtf8' has been explicitly marked deprecated here
  V8_DEPRECATED("Use Isolate* version",
  ^
/Users/tomi/.node-gyp/11.9.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
36 warnings and 1 error generated.
make: *** [Release/obj.target/leveldown/src/batch.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/share/.config/yarn/global/node_modules/level/node_modules/leveldown
gyp ERR! node -v v11.9.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
@vweevers
Copy link
Member

Which version of leveldown are you installing?

@vweevers vweevers added question Support or open question(s) more information needed Further information is requested labels Feb 19, 2019
@tomitrescak
Copy link
Author

@vweevers latest. Just running npm i -g leveldown

@vweevers
Copy link
Member

Most if not all messages I see above are merely deprecations that don't explain why it failed.

To rule out permission issues, could you try a local install (without -g) and/or an install with sudo?

@vweevers
Copy link
Member

Most if not all messages I see above are merely deprecations that don't explain why it failed.

Correction, there are 36 warnings and 1 error:

In file included from ../../nan/nan.h:192:
../../nan/nan_maybe_43_inl.h:112:15: error: no member named 'ForceSet' in 'v8::Object'
  return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
         ~~~  ^

@ralphtheninja any idea? IIRC you tested leveldown on mac before

@ralphtheninja
Copy link
Member

It seems the error comes from:

screenshot from 2019-02-20 08-43-02

Which only happens if NODE_MODULE_VERSION is lower than NODE_9_0_MODULE_VERSION which seems a bit strange. This compiles on linux (at least on my machine). I made sure to install v11.9.0.

@vweevers
Copy link
Member

Our version of nan is slightly outdated (note we're not getting greenkeeper PRs anymore, because nan is gone in master). We're on ~2.10.0, latest is 2.12.1.

@vweevers vweevers added bug Something isn't working and removed more information needed Further information is requested question Support or open question(s) labels Feb 20, 2019
@scholtzm
Copy link

Having the same issue with clean install of node 10.

$ node -v
v10.15.1
$ npm -v
6.8.0

21 warnings, 1 error

@vweevers
Copy link
Member

I can't replicate it myself. @tomitrescak @scholtzm Would you mind trying the following?

npm i Level/leveldown#v4.x-upgrade-nan

@vweevers
Copy link
Member

vweevers commented Feb 23, 2019

Side note @ralphtheninja: because I pushed a new v4.x branch to GitHub, forked from the v4.0.1 tag, prebuild-ci was triggered, luckily without consequences (AFAICT). I canceled AppVeyor, Travis was already done.

@mtn
Copy link

mtn commented Feb 23, 2019

Not sure if this is helpful, but since I struggled a bit with (unrelated) build issues, sharing that I was able to install the latest version via npm:

$ node -v
v11.10.0
$ npm -v
6.8.0

@vweevers
Copy link
Member

@mtn On which platform? So far it seems that only Mac is having trouble, Linux and Windows are fine.

@mtn
Copy link

mtn commented Feb 23, 2019

@vweevers Macos Mojave (sorry, meant to include that)

@mtn
Copy link

mtn commented Feb 23, 2019

On the other hand, I'm able to replicate this exact issue, but only when trying to install an old version (leveldb-1.20, leveldown-1.90).

@vweevers vweevers added the v4.x label Mar 2, 2019
@vweevers
Copy link
Member

vweevers commented Mar 2, 2019

I've just released v4.0.2, with updated dependencies and prebuilds for Node.js 11. Let us know whether it fixes installation on Mac with Node.js 11, otherwise we'll reopen (but I don't know what more we can do).

@vweevers vweevers closed this as completed Mar 2, 2019
@vweevers
Copy link
Member

vweevers commented Mar 2, 2019

FWIW I rented a Mac and was unable to replicate the ForceSet error on 4.0.1.

$ npm i [email protected] --no-save 2>&1 >/dev/null | grep ForceSet
$ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.14.2
BuildVersion:	18C54
$ uname -r
18.2.0
$ node -v
v11.9.0

$ npm i [email protected] --no-save

> [email protected] install /Users/<redacted>/test/node_modules/leveldown
> prebuild-install || node-gyp rebuild

+ [email protected]
added 3 packages from 16 contributors, updated 1 package and audited 470 packages in 1.721s
found 0 vulnerabilities

@tomitrescak
Copy link
Author

All good, compiled with no issues on my mac. Thanks for the fix.

@zsux
Copy link

zsux commented Aug 2, 2019

~/data/projects/wechaty-puppet-padchat(master*) » npm i [email protected] --no-save joseph@josephs-MacBook-Pro

[email protected] install /Users/joseph/data/projects/wechaty-puppet-padchat/node_modules/leveldown
prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=12.7.0 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 ../../nan/nan.h:222:
In file included from ../../nan/nan_converters.h:67:
../../nan/nan_converters_43_inl.h:22:1: warning: 'ToBoolean' is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
X(Boolean)
^
../../nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X'
val->To ## TYPE(isolate->GetCurrentContext())
^
:205:1: note: expanded from here
ToBoolean
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:2530:3: note: 'ToBoolean' has been explicitly marked deprecated here
V8_DEPRECATED("ToBoolean can never throw. Use Local version.",
^
/Users/joseph/.node-gyp/12.7.0/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 ../../nan/nan.h:222:
In file included from ../../nan/nan_converters.h:67:
../../nan/nan_converters_43_inl.h:40:1: warning: 'BooleanValue' is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
X(bool, Boolean)
^
../../nan/nan_converters_43_inl.h:37:15: note: expanded from macro 'X'
return val->NAME ## Value(isolate->GetCurrentContext());
^
:212:1: note: expanded from here
BooleanValue
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:2568:3: note: 'BooleanValue' has been explicitly marked deprecated here
V8_DEPRECATED("BooleanValue can never throw. Use Isolate version.",
^
/Users/joseph/.node-gyp/12.7.0/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 ../../nan/nan.h:223:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:356:37: error: too few arguments to function call, expected 2, have 1
return v8::StringObject::New(value).Asv8::StringObject();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:5388:3: note: 'New' declared here
static Local New(Isolate* isolate, Local value);
^
In file included from ../src/batch.cc:3:
In file included from ../../nan/nan.h:223:
In file included from ../../nan/nan_new.h:189:
../../nan/nan_implementation_12_inl.h:356:58: error: expected '(' for function-style cast or type construction
return v8::StringObject::New(value).Asv8::StringObject();
~~~~~~~~~~~~~~~~^
../../nan/nan_implementation_12_inl.h:356:60: error: expected expression
return v8::StringObject::New(value).Asv8::StringObject();
^
In file included from ../src/batch.cc:3:
In file included from ../../nan/nan.h:2722:
../../nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraitsv8::Object >'
assert(persistent().IsNearDeath());
~~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.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 ../../nan/nan.h:2722:
../../nan/nan_object_wrap.h:127:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraitsv8::Object >'
assert(wrap->handle
.IsNearDeath());
~~~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.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/joseph/.node-gyp/12.7.0/include/node/v8.h:2539:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:2553:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local 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/joseph/.node-gyp/12.7.0/include/node/v8.h:2539:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:2553:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local 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/joseph/.node-gyp/12.7.0/include/node/v8.h:2539:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:2553:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local 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/joseph/.node-gyp/12.7.0/include/node/v8.h:2535:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:2551:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local 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::Localv8::Value obj = Nan::Newv8::Object(handle)->Get(Nan::Newv8::String("obj").ToLocalChecked());
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:3419:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key));
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
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/joseph/.node-gyp/12.7.0/include/node/v8.h:3365:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version",
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
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/joseph/.node-gyp/12.7.0/include/node/v8.h:3456:37: note: candidate function not viable: requires 2 arguments, but 1 was provided
V8_WARN_UNUSED_RESULT Maybe Has(Local context,
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:3462:37: note: candidate function not viable: requires 2 arguments, but 1 was provided
V8_WARN_UNUSED_RESULT Maybe Has(Local 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/joseph/.node-gyp/12.7.0/include/node/v8.h:3419:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key));
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
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/joseph/.node-gyp/12.7.0/include/node/v8.h:2566:8: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
bool BooleanValue(Isolate* isolate) const;
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:2569:51: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT Maybe 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/joseph/.node-gyp/12.7.0/include/node/v8.h:3456:37: note: candidate function not viable: requires 2 arguments, but 1 was provided
V8_WARN_UNUSED_RESULT Maybe Has(Local context,
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:3462:37: note: candidate function not viable: requires 2 arguments, but 1 was provided
V8_WARN_UNUSED_RESULT Maybe Has(Local 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/joseph/.node-gyp/12.7.0/include/node/v8.h:3419:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key));
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
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/joseph/.node-gyp/12.7.0/include/node/v8.h:3419:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key));
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
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/joseph/.node-gyp/12.7.0/include/node/v8.h:2574:3: note: 'Uint32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^
/Users/joseph/.node-gyp/12.7.0/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(info[0]->ToObject());
~~~~~~~~~^~~~~~~~
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:2539:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:2553:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local 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/joseph/.node-gyp/12.7.0/include/node/v8.h:5955:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/joseph/.node-gyp/12.7.0/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/joseph/.node-gyp/12.7.0/include/node/v8.h:5955:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/joseph/.node-gyp/12.7.0/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/joseph/.node-gyp/12.7.0/include/node/v8.h:2539:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:2553:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local 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/joseph/.node-gyp/12.7.0/include/node/v8.h:2539:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:2553:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local 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/joseph/.node-gyp/12.7.0/include/node/v8.h:2539:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/Users/joseph/.node-gyp/12.7.0/include/node/v8.h:2553:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local ToObject(Isolate* isolate) const);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
7 warnings and 20 errors generated.
make: *** [Release/obj.target/leveldown/src/batch.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/joseph/.nvm/versions/node/v12.7.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:266:23)
gyp ERR! stack at ChildProcess.emit (events.js:203:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/Users/joseph/.nvm/versions/node/v12.7.0/bin/node" "/Users/joseph/.nvm/versions/node/v12.7.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/joseph/data/projects/wechaty-puppet-padchat/node_modules/leveldown
gyp ERR! node -v v12.7.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: prebuild-install || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/joseph/.npm/_logs/2019-08-02T02_27_14_587Z-debug.log

@zsux
Copy link

zsux commented Aug 2, 2019

~/data/projects/wechaty-puppet-padchat(master*) » nvm use v11.9.0 joseph@josephs-MacBook-Pro
Now using node v11.9.0 (npm v6.5.0)

~/data/projects/wechaty-puppet-padchat(master*) » joseph@josephs-MacBook-Pro

~/data/projects/wechaty-puppet-padchat(master*) » npm i [email protected] --no-save joseph@josephs-MacBook-Pro

[email protected] install /Users/joseph/data/projects/wechaty-puppet-padchat/node_modules/leveldown
prebuild-install || node-gyp rebuild

  • [email protected]
    added 51 packages from 47 contributors and audited 687 packages in 17.689s
    found 2 vulnerabilities (1 moderate, 1 high)
    run npm audit fix to fix them, or npm audit for details

@zsux
Copy link

zsux commented Aug 2, 2019

node v12 has problem

@vweevers
Copy link
Member

vweevers commented Aug 2, 2019

@zsux You need leveldown@5 for node 12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v4.x
Projects
None yet
Development

No branches or pull requests

6 participants