Failed to run electron-rebuild on MacOS
See original GitHub issueI am using below command to rebuild native module:
node_modules/.bin/electron-rebuild -f -w node_modules/dbkoda-controller/node_modules/node-pty/ -m node_modules/dbkoda-controller
but get errors. My node version is v8.9.1
.
Rebuild Failed
An unhandled error occurred inside electron-rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@8.9.1 | darwin | x64
gyp info spawn /usr/local/bin/python2
gyp info spawn args [ '/Users/joey/dev/dbkoda/dbkoda/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 '/Users/joey/dev/dbkoda/dbkoda-controller/node_modules/socket.io/node_modules/ws/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/joey/dev/dbkoda/dbkoda/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2',
gyp info spawn args '-Dnode_gyp_dir=/Users/joey/dev/dbkoda/dbkoda/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/<(target_arch)/iojs.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/joey/dev/dbkoda/dbkoda-controller/node_modules/socket.io/node_modules/ws',
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/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:337:54: error: too many arguments to function call, expected at most 2, have 4
return v8::Signature::New(nan_isolate, receiver, argc, argv);
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:5750:3: note: 'New' declared here
static Local<Signature> New(
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:392:32: warning: 'CompileUnbound' is deprecated [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(nan_isolate, &source);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:1355:10: note: 'CompileUnbound' has been explicitly marked deprecated here
static V8_DEPRECATED("Use maybe version",
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:400:32: warning: 'CompileUnbound' is deprecated [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(nan_isolate, &source);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:1355:10: note: 'CompileUnbound' has been explicitly marked deprecated here
static V8_DEPRECATED("Use maybe version",
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:405:24: warning: 'NewExternal' is deprecated [-Wdeprecated-declarations]
return v8::String::NewExternal(nan_isolate, resource);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2659:10: note: 'NewExternal' has been explicitly marked deprecated here
static V8_DEPRECATED("Use maybe version",
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:409:19: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
v8::String::ExternalAsciiStringResource *resource) {
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
ExternalStringResource
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2529:19: note: 'ExternalStringResource' declared here
class V8_EXPORT ExternalStringResource
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:408:36: error: redefinition of 'NanNew'
NAN_INLINE v8::Local<v8::String> NanNew(
^
../../nan/nan.h:403:36: note: previous definition is here
NAN_INLINE v8::Local<v8::String> NanNew(
^
../../nan/nan.h:410:24: warning: 'NewExternal' is deprecated [-Wdeprecated-declarations]
return v8::String::NewExternal(nan_isolate, resource);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2659:10: note: 'NewExternal' has been explicitly marked deprecated here
static V8_DEPRECATED("Use maybe version",
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:415:31: warning: 'New' is deprecated [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:4677:3: note: 'New' has been explicitly marked deprecated here
V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:427:3: error: redefinition of 'NanNew'
NanNew<v8::StringObject, v8::Handle<v8::String> >(
^
../../nan/nan.h:420:3: note: previous definition is here
NanNew<v8::StringObject, v8::Local<v8::String> >(
^
../../nan/nan.h:444:36: error: redefinition of 'NanNew'
NAN_INLINE v8::Local<v8::RegExp> NanNew(
^
../../nan/nan.h:438:36: note: previous definition is here
NAN_INLINE v8::Local<v8::RegExp> NanNew(
^
../../nan/nan.h:456:36: error: redefinition of 'NanNew'
NAN_INLINE v8::Local<v8::RegExp> NanNew(
^
../../nan/nan.h:450:36: note: previous definition is here
NAN_INLINE v8::Local<v8::RegExp> NanNew(
^
../../nan/nan.h:463:59: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
return v8::Uint32::NewFromUnsigned(nan_isolate, val)->ToUint32();
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2284:10: note: 'ToUint32' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Uint32> ToUint32() const);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:468:59: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
return v8::Uint32::NewFromUnsigned(nan_isolate, val)->ToUint32();
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2284:10: note: 'ToUint32' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Uint32> ToUint32() const);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:473:46: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations]
return v8::Int32::New(nan_isolate, val)->ToInt32();
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2285:10: note: 'ToInt32' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Int32> ToInt32() const);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:478:46: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations]
return v8::Int32::New(nan_isolate, val)->ToInt32();
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2285:10: note: 'ToInt32' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Int32> ToInt32() const);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:518:24: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
return v8::String::NewFromOneByte(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2620:10: note: 'NewFromOneByte' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:529:24: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
return v8::String::NewFromOneByte(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2620:10: note: 'NewFromOneByte' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:538:24: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
return v8::String::NewFromOneByte(nan_isolate, arg);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2620:10: note: 'NewFromOneByte' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:544:24: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
return v8::String::NewFromOneByte(nan_isolate, arg);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2620:10: note: 'NewFromOneByte' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:586:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
v8::Isolate::GCEpilogueCallback callback
~~~~~~~~~~~~~^
../../nan/nan.h:592:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
v8::Isolate::GCEpilogueCallback callback) {
~~~~~~~~~~~~~^
../../nan/nan.h:597:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate'
v8::Isolate::GCPrologueCallback callback
~~~~~~~~~~~~~^
../../nan/nan.h:603:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate'
v8::Isolate::GCPrologueCallback callback) {
~~~~~~~~~~~~~^
../../nan/nan.h:631:17: error: no template named 'WeakCallbackData' in namespace 'v8'; did you mean 'WeakCallbackInfo'?
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> >& data);
~~~~^~~~~~~~~~~~~~~~
WeakCallbackInfo
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:7904:16: note: 'WeakCallbackInfo' declared here
friend class WeakCallbackInfo;
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:631:17: error: too many template arguments for class template 'WeakCallbackInfo'
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> >& data);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:7904:16: note: template is declared here
friend class WeakCallbackInfo;
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:767:13: error: no member named 'smalloc' in namespace 'node'
, node::smalloc::FreeCallback callback
~~~~~~^
../../nan/nan.h:777:12: error: no matching function for call to 'New'
return node::Buffer::New(nan_isolate, data, size);
^~~~~~~~~~~~~~~~~
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/src/node_buffer.h:67:40: note: candidate function not viable: 2nd argument ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/src/node_buffer.h:55:40: note: candidate function not viable: no known conversion from 'const char *' to 'v8::Local<v8::String>' for 2nd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/src/node_buffer.h:52:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/src/node_buffer.h:60:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:781:12: error: no viable conversion from returned value of type 'v8::MaybeLocal<v8::Object>' to function return type 'v8::Local<v8::Object>'
return node::Buffer::New(nan_isolate, size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:193:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' for 1st argument
class Local {
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:193:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&' for 1st argument
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:197:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
V8_INLINE Local(Local<S> that)
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:788:26: error: no member named 'Use' in namespace 'node::Buffer'
return node::Buffer::Use(nan_isolate, data, size);
~~~~~~~~~~~~~~^
../../nan/nan.h:814:32: warning: 'Compile' is deprecated [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(nan_isolate, &source);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:1374:10: note: 'Compile' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:821:32: warning: 'Compile' is deprecated [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(nan_isolate, &source);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:1374:10: note: 'Compile' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:1728:12: error: no member named 'IsExternalAscii' in 'v8::String'; did you mean 'IsExternal'?
if (str->IsExternalAscii()) {
^~~~~~~~~~~~~~~
IsExternal
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2490:8: note: 'IsExternal' declared here
bool IsExternal() const;
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:1729:23: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
const v8::String::ExternalAsciiStringResource* ext;
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
ExternalStringResource
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2529:19: note: 'ExternalStringResource' declared here
class V8_EXPORT ExternalStringResource
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:1730:16: error: no member named 'GetExternalAsciiStringResource' in 'v8::String'
ext = str->GetExternalAsciiStringResource();
~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
15 warnings and 20 errors generated.
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/joey/dev/dbkoda/dbkoda/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 17.3.0
gyp ERR! command "/Users/joey/.nvm/versions/node/v8.9.1/bin/node" "/Users/joey/dev/dbkoda/dbkoda/node_modules/electron-rebuild/node_modules/.bin/node-gyp" "rebuild" "--target=1.8.2-beta.2" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source"
gyp ERR! cwd /Users/joey/dev/dbkoda/dbkoda-controller/node_modules/socket.io/node_modules/ws
gyp ERR! node -v v8.9.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Failed with exit code: 1
Error: gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@8.9.1 | darwin | x64
gyp info spawn /usr/local/bin/python2
gyp info spawn args [ '/Users/joey/dev/dbkoda/dbkoda/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 '/Users/joey/dev/dbkoda/dbkoda-controller/node_modules/socket.io/node_modules/ws/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/joey/dev/dbkoda/dbkoda/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2',
gyp info spawn args '-Dnode_gyp_dir=/Users/joey/dev/dbkoda/dbkoda/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/<(target_arch)/iojs.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/joey/dev/dbkoda/dbkoda-controller/node_modules/socket.io/node_modules/ws',
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/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:337:54: error: too many arguments to function call, expected at most 2, have 4
return v8::Signature::New(nan_isolate, receiver, argc, argv);
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:5750:3: note: 'New' declared here
static Local<Signature> New(
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:392:32: warning: 'CompileUnbound' is deprecated [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(nan_isolate, &source);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:1355:10: note: 'CompileUnbound' has been explicitly marked deprecated here
static V8_DEPRECATED("Use maybe version",
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:400:32: warning: 'CompileUnbound' is deprecated [-Wdeprecated-declarations]
return v8::ScriptCompiler::CompileUnbound(nan_isolate, &source);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:1355:10: note: 'CompileUnbound' has been explicitly marked deprecated here
static V8_DEPRECATED("Use maybe version",
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:405:24: warning: 'NewExternal' is deprecated [-Wdeprecated-declarations]
return v8::String::NewExternal(nan_isolate, resource);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2659:10: note: 'NewExternal' has been explicitly marked deprecated here
static V8_DEPRECATED("Use maybe version",
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:409:19: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
v8::String::ExternalAsciiStringResource *resource) {
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
ExternalStringResource
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2529:19: note: 'ExternalStringResource' declared here
class V8_EXPORT ExternalStringResource
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:408:36: error: redefinition of 'NanNew'
NAN_INLINE v8::Local<v8::String> NanNew(
^
../../nan/nan.h:403:36: note: previous definition is here
NAN_INLINE v8::Local<v8::String> NanNew(
^
../../nan/nan.h:410:24: warning: 'NewExternal' is deprecated [-Wdeprecated-declarations]
return v8::String::NewExternal(nan_isolate, resource);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2659:10: note: 'NewExternal' has been explicitly marked deprecated here
static V8_DEPRECATED("Use maybe version",
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:415:31: warning: 'New' is deprecated [-Wdeprecated-declarations]
return v8::BooleanObject::New(value).As<v8::BooleanObject>();
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:4677:3: note: 'New' has been explicitly marked deprecated here
V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value));
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:427:3: error: redefinition of 'NanNew'
NanNew<v8::StringObject, v8::Handle<v8::String> >(
^
../../nan/nan.h:420:3: note: previous definition is here
NanNew<v8::StringObject, v8::Local<v8::String> >(
^
../../nan/nan.h:444:36: error: redefinition of 'NanNew'
NAN_INLINE v8::Local<v8::RegExp> NanNew(
^
../../nan/nan.h:438:36: note: previous definition is here
NAN_INLINE v8::Local<v8::RegExp> NanNew(
^
../../nan/nan.h:456:36: error: redefinition of 'NanNew'
NAN_INLINE v8::Local<v8::RegExp> NanNew(
^
../../nan/nan.h:450:36: note: previous definition is here
NAN_INLINE v8::Local<v8::RegExp> NanNew(
^
../../nan/nan.h:463:59: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
return v8::Uint32::NewFromUnsigned(nan_isolate, val)->ToUint32();
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2284:10: note: 'ToUint32' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Uint32> ToUint32() const);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:468:59: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
return v8::Uint32::NewFromUnsigned(nan_isolate, val)->ToUint32();
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2284:10: note: 'ToUint32' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Uint32> ToUint32() const);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:473:46: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations]
return v8::Int32::New(nan_isolate, val)->ToInt32();
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2285:10: note: 'ToInt32' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Int32> ToInt32() const);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:478:46: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations]
return v8::Int32::New(nan_isolate, val)->ToInt32();
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2285:10: note: 'ToInt32' has been explicitly marked deprecated here
inline V8_DEPRECATED("Use maybe version", Local<Int32> ToInt32() const);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:518:24: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
return v8::String::NewFromOneByte(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2620:10: note: 'NewFromOneByte' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:529:24: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
return v8::String::NewFromOneByte(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2620:10: note: 'NewFromOneByte' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:538:24: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
return v8::String::NewFromOneByte(nan_isolate, arg);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2620:10: note: 'NewFromOneByte' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:544:24: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations]
return v8::String::NewFromOneByte(nan_isolate, arg);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2620:10: note: 'NewFromOneByte' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:586:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
v8::Isolate::GCEpilogueCallback callback
~~~~~~~~~~~~~^
../../nan/nan.h:592:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
v8::Isolate::GCEpilogueCallback callback) {
~~~~~~~~~~~~~^
../../nan/nan.h:597:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate'
v8::Isolate::GCPrologueCallback callback
~~~~~~~~~~~~~^
../../nan/nan.h:603:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate'
v8::Isolate::GCPrologueCallback callback) {
~~~~~~~~~~~~~^
../../nan/nan.h:631:17: error: no template named 'WeakCallbackData' in namespace 'v8'; did you mean 'WeakCallbackInfo'?
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> >& data);
~~~~^~~~~~~~~~~~~~~~
WeakCallbackInfo
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:7904:16: note: 'WeakCallbackInfo' declared here
friend class WeakCallbackInfo;
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:631:17: error: too many template arguments for class template 'WeakCallbackInfo'
const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> >& data);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:7904:16: note: template is declared here
friend class WeakCallbackInfo;
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:767:13: error: no member named 'smalloc' in namespace 'node'
, node::smalloc::FreeCallback callback
~~~~~~^
../../nan/nan.h:777:12: error: no matching function for call to 'New'
return node::Buffer::New(nan_isolate, data, size);
^~~~~~~~~~~~~~~~~
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/src/node_buffer.h:67:40: note: candidate function not viable: 2nd argument ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/src/node_buffer.h:55:40: note: candidate function not viable: no known conversion from 'const char *' to 'v8::Local<v8::String>' for 2nd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/src/node_buffer.h:52:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/src/node_buffer.h:60:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:781:12: error: no viable conversion from returned value of type 'v8::MaybeLocal<v8::Object>' to function return type 'v8::Local<v8::Object>'
return node::Buffer::New(nan_isolate, size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:193:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' for 1st argument
class Local {
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:193:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&' for 1st argument
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:197:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
V8_INLINE Local(Local<S> that)
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:788:26: error: no member named 'Use' in namespace 'node::Buffer'
return node::Buffer::Use(nan_isolate, data, size);
~~~~~~~~~~~~~~^
../../nan/nan.h:814:32: warning: 'Compile' is deprecated [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(nan_isolate, &source);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:1374:10: note: 'Compile' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:821:32: warning: 'Compile' is deprecated [-Wdeprecated-declarations]
return v8::ScriptCompiler::Compile(nan_isolate, &source);
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:1374:10: note: 'Compile' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8config.h:332:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:1728:12: error: no member named 'IsExternalAscii' in 'v8::String'; did you mean 'IsExternal'?
if (str->IsExternalAscii()) {
^~~~~~~~~~~~~~~
IsExternal
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2490:8: note: 'IsExternal' declared here
bool IsExternal() const;
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:1729:23: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
const v8::String::ExternalAsciiStringResource* ext;
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
ExternalStringResource
/Users/joey/.electron-gyp/.node-gyp/iojs-1.8.2-beta.2/deps/v8/include/v8.h:2529:19: note: 'ExternalStringResource' declared here
class V8_EXPORT ExternalStringResource
^
In file included from ../src/bufferutil.cc:15:
../../nan/nan.h:1730:16: error: no member named 'GetExternalAsciiStringResource' in 'v8::String'
ext = str->GetExternalAsciiStringResource();
~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
15 warnings and 20 errors generated.
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/joey/dev/dbkoda/dbkoda/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 17.3.0
gyp ERR! command "/Users/joey/.nvm/versions/node/v8.9.1/bin/node" "/Users/joey/dev/dbkoda/dbkoda/node_modules/electron-rebuild/node_modules/.bin/node-gyp" "rebuild" "--target=1.8.2-beta.2" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source"
gyp ERR! cwd /Users/joey/dev/dbkoda/dbkoda-controller/node_modules/socket.io/node_modules/ws
gyp ERR! node -v v8.9.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Failed with exit code: 1
at SafeSubscriber._error (/Users/joey/dev/dbkoda/dbkoda/node_modules/spawn-rx/lib/src/index.js:277:84)
at SafeSubscriber.__tryOrUnsub (/Users/joey/dev/dbkoda/dbkoda/node_modules/rxjs/Subscriber.js:239:16)
at SafeSubscriber.error (/Users/joey/dev/dbkoda/dbkoda/node_modules/rxjs/Subscriber.js:198:26)
at Subscriber._error (/Users/joey/dev/dbkoda/dbkoda/node_modules/rxjs/Subscriber.js:129:26)
at Subscriber.error (/Users/joey/dev/dbkoda/dbkoda/node_modules/rxjs/Subscriber.js:103:18)
at MapSubscriber.Subscriber._error (/Users/joey/dev/dbkoda/dbkoda/node_modules/rxjs/Subscriber.js:129:26)
at MapSubscriber.Subscriber.error (/Users/joey/dev/dbkoda/dbkoda/node_modules/rxjs/Subscriber.js:103:18)
at SafeSubscriber._next (/Users/joey/dev/dbkoda/dbkoda/node_modules/spawn-rx/lib/src/index.js:251:65)
at SafeSubscriber.__tryOrSetError (/Users/joey/dev/dbkoda/dbkoda/node_modules/rxjs/Subscriber.js:248:16)
at SafeSubscriber.next (/Users/joey/dev/dbkoda/dbkoda/node_modules/rxjs/Subscriber.js:188:27)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:7
Top Results From Across the Web
electron-builder 20.29.0+ bundles fail to run on macOS Catalina
To make our app compatible with macOS Catalina, we downgraded to electron-builder@20.28.4 , build into a directory using --dir , manually run ......
Read more >Electron build for MacOS fails occasionally due to "self-signed ...
We are building a application for MacOS using Electron. Everything worked fine until last week, when our old Developer ID certificate expired.
Read more >Electron Application Built on macOS for windows is not ...
I built an electron application on macOS for windows using electron-builder. script: npm run pre-build-electron && electron-builder build ...
Read more >Build Instructions (macOS) - Electron
Build Instructions (macOS). Follow the guidelines below for building Electron itself on macOS, for the purposes of creating custom Electron binaries.
Read more >Any macOS Target - electron-builder
The top-level mac key contains set of options instructing electron-builder on how it should build macOS targets. These options applicable for any macOS...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JulianTapales it is nan bug,we need waitnode torelease a new version sorry,i read it in my phone,your errors is not same, i can use ffi and electron in mac os x 10.14.2, but after i today add some package, it’s error, i think my error is https://github.com/nodejs/nan/issues/832
https://github.com/nodejs/nan/issues/832 i found it, need node update