➜ bluetooth node-gyp build
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: *** No rule to make target `Release/obj.target/BluetoothSerialPort/src/osx/DeviceINQ.o', needed by `Release/BluetoothSerialPort.node'. Stop.
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/node-gyp/lib/build.js:196: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 "/usr/local/Cellar/node/12.6.0/bin/node" "/usr/local/bin/node-gyp" "build"
gyp ERR! cwd /Development/Node/bluetooth
gyp ERR! node -v v12.6.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
➜ bluetooth
This looks specific to the package you're trying to build. Is this an existing addon or your own code? There's not enough context in here to say much about it.
This appears related to a bug that's appearing in other projects -- create-proton-app and proton-native. Both rely on this package and in going down the rabbit hole of trying to figure out where the issue is I tried installing this manually using yarn global add node-gyp (using node 12.9.0).
To be clear, it's being reported by a bunch of users but mainly being reported in what appears to be the wrong context -- as an issue with create-proton-app and proton-native.
My log is attached.
2019-08-27T18_30_30_531Z-debug.log
@eyesno yours doesn't look related to the first report.
7 warn lifecycle The node binary used for scripts is /var/folders/01/py0y5p_13nl3mzh7vwjcpryw0000gn/T/yarn--1566930628163-0.04669281411444648/node but npm is using /usr/local/Cellar/node/12.9.0/bin/node itself. Use the
--scripts-prepend-node-pathoption to include the path for the node binary npm was executed with.
That's pretty weird, Yarn doing something strange I guess. Can you remove Yarn from the equation entirely? I keep on seeing funky reports that involve Yarn, I'm not sure it's the best path to compiling native addons.
I'm not seeing anything else in here that indicates what the problem actually is. Perhaps you can go into /Users/darrylwright/projects/test/node_modules/libui-node and run node-gyp configure build like it's trying to do and see what output you get. Install node-gyp globally npm install node-gyp -g to have the latest available to you.
So the top-level problem I am trying to solve is getting create-proton-app to work so as you suggested I did it entirely without yarn, ignored that issue and went into the resulting app folder ('test'). There was no libui-node in the node_modules, presumably because it didn't succeed. So I issued the commandnpm i libui-node and got the following result which looks pretty much the same:
> [email protected] install /Users/darrylwright/projects/test/node_modules/libui-node
> libui-download && autogypi && npm run build
Downloaded zip: /Users/darrylwright/.libui/libui-shared-osx-x64-alpha3.5-master-008.tar.gz
Libui binaries extracted to: /Users/darrylwright/projects/test/node_modules/libui-node
> [email protected] build /Users/darrylwright/projects/test/node_modules/libui-node
> node-gyp configure build
COPY Release/obj.target/nbind/geni/symbols.txt
CXX(target) Release/obj.target/nbind/../nbind/src/common.o
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:71:
../../nbind/include/nbind/v8/BindWrapper.h:139:8: warning: 'MarkIndependent' is deprecated: Weak objects are always considered independent. Use
TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
ref->MarkIndependent();
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:563:3: note: 'MarkIndependent' has been explicitly marked deprecated here
V8_DEPRECATED(
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:71:
../../nbind/include/nbind/v8/BindWrapper.h:216:63: error: too few arguments to function call, single argument 'context' was not specified
auto flags = static_cast<TypeFlags>(nanArgs[1]->Uint32Value());
~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2580:3: note: 'Uint32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:71:
../../nbind/include/nbind/v8/BindWrapper.h:217:38: error: expected '(' for function-style cast or type construction
void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
~~~~~~~~~~~~^
../../nbind/include/nbind/v8/BindWrapper.h:217:19: error: no member named 'Handle' in namespace 'v8'
void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
~~~~^
../../nbind/include/nbind/v8/BindWrapper.h:217:41: error: no member named 'Cast' in the global namespace
void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
~~^
../../nbind/include/nbind/v8/BindWrapper.h:217:19: error: 'handle_' is a private member of 'node::ObjectWrap'
void *ptr = v8::Handle<v8::External>::Cast(nanArgs[0])->Value();
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/node_object_wrap.h:125:30: note: declared private here
v8::Persistent<v8::Object> handle_;
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:52:9: error: no matching member function for call to 'ToObject'
arg->ToObject(),
~~~~~^~~~~~~~
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2545:44: note: candidate function not viable: requires single argument 'context',
but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2559:31: note: candidate function not viable: requires single argument 'isolate',
but no arguments were provided
Local<Object> ToObject(Isolate* isolate) const);
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:96:9: error: no matching member function for call to 'ToObject'
arg->ToObject(),
~~~~~^~~~~~~~
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2545:44: note: candidate function not viable: requires single argument 'context',
but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2559:31: note: candidate function not viable: requires single argument 'isolate',
but no arguments were provided
Local<Object> ToObject(Isolate* isolate) const);
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:187:45: error: no matching member function for call to 'BooleanValue'
DEFINE_NATIVE_BINDING_TYPE(bool, IsBoolean, BooleanValue, v8::Boolean);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
../../nbind/include/nbind/v8/BindingType.h:173:33: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~^~~~~~
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2572:8: note: candidate function not viable: requires single argument 'isolate',
but no arguments were provided
bool BooleanValue(Isolate* isolate) const;
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2575:51: note: candidate function not viable: requires single argument 'context',
but no arguments were provided
V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:189:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(double, IsNumber, NumberValue, v8::Number);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2577:3: note: 'NumberValue' declared here
V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:190:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(float, IsNumber, NumberValue, v8::Number);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2577:3: note: 'NumberValue' declared here
V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:192:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(unsigned int, IsNumber, Uint32Value, v8::Uint32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2580:3: note: 'Uint32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:193:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(unsigned short, IsNumber, Uint32Value, v8::Uint32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2580:3: note: 'Uint32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:194:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(unsigned char, IsNumber, Uint32Value, v8::Uint32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2580:3: note: 'Uint32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:196:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(signed int, IsNumber, Int32Value, v8::Int32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2582:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:197:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(signed short, IsNumber, Int32Value, v8::Int32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2582:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:198:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(signed char, IsNumber, Int32Value, v8::Int32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2582:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:72:
../../nbind/include/nbind/v8/BindingType.h:200:1: error: too few arguments to function call, single argument 'context' was not specified
DEFINE_NATIVE_BINDING_TYPE(char, IsNumber, Int32Value, v8::Int32);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nbind/include/nbind/v8/BindingType.h:173:40: note: expanded from macro 'DEFINE_NATIVE_BINDING_TYPE'
return(static_cast<Type>(arg->decode())); \
~~~~~~~~~~~ ^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2582:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:78:
../../nbind/include/nbind/v8/External.h:77:9: warning: 'MarkIndependent' is deprecated: Weak objects are always considered independent. Use TracedGlobal
when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
weak.MarkIndependent();
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:563:3: note: 'MarkIndependent' has been explicitly marked deprecated here
V8_DEPRECATED(
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:78:
../../nbind/include/nbind/v8/External.h:112:71: error: no matching member function for call to 'ToObject'
static inline Type fromWireType(WireType arg) { return(External(arg->ToObject())); }
~~~~~^~~~~~~~
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2545:44: note: candidate function not viable: requires single argument 'context',
but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2559:31: note: candidate function not viable: requires single argument 'isolate',
but no arguments were provided
Local<Object> ToObject(Isolate* isolate) const);
^
In file included from ../../nbind/src/common.cc:4:
In file included from ../../nbind/include/nbind/nbind.h:8:
In file included from ../../nbind/include/nbind/noconflict.h:8:
In file included from ../../nbind/include/nbind/BindDefiner.h:11:
In file included from ../../nbind/include/nbind/api.h:80:
../../nbind/include/nbind/v8/BindingStd.h:128:28: error: no matching member function for call to 'ToString'
Nan::Utf8String val(arg->ToString());
~~~~~^~~~~~~~
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2541:44: note: candidate function not viable: requires single argument 'context',
but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^
/Users/darrylwright/Library/Caches/node-gyp/12.9.0/include/node/v8.h:2557:31: note: candidate function not viable: requires single argument 'isolate',
but no arguments were provided
Local<String> ToString(Isolate* isolate) const);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make: *** [Release/obj.target/nbind/../nbind/src/common.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:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:209:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/Cellar/node/12.9.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /Users/darrylwright/projects/test/node_modules/libui-node
gyp ERR! node -v v12.9.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/darrylwright/.npm/_logs/2019-08-28T12_18_54_717Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `libui-download && autogypi && npm run build`
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.
Just noticed your comment about it being unrelated. I'll go ahead and make a separate report.
Probably unreliable information, but for windows users with Node v. 12.X downgrade may help. I switched to node v. 10.16.3 and it works:
> nvm list
12.10.0
* 10.16.3 (Currently using 64-bit executable)
All steps:
npm install --global --production [email protected]
rimraf node_modules
yarn cache clean
nvm use 10.16.3
yarn
Probably unreliable information, but for windows users with Node
v. 12.Xdowngrade may help. I switched to nodev. 10.16.3and it works:> nvm list 12.10.0 * 10.16.3 (Currently using 64-bit executable)All steps:
npm install --global --production [email protected] rimraf node_modules yarn cache clean nvm use 10.16.3 yarn
THIS WORKED FOR ME
This seems to have been resolved? Closing then.
Downgrading node from 12 to 10 to install a package is not a solution, rather a workaround.
Happened to me as well
using 10.16.3 worked for me
In my case I downgraded node 13 to 11 ..
React Native Environment Info:
Binaries:
Node: 11.10.0 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.7.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
IDEs:
Android Studio: 3.0 AI-171.4443003
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: ^0.59.10 => 0.59.10
npmGlobalPackages:
react-native-cli: 2.0.1
I'm experiencing the same issue with Node 12 on Darwin 19.6.0 (macOS 10.15.6)
@tekumara please provide the command that you ran and the output of that command.
@cclauss I'm trying to build node-pty, as part of theia. I'm running yarn. Here's the relevant snippet from its output:
Command: node scripts/install.js
Arguments:
Directory: /Users/tekumara/code/theia-scratch/node_modules/@theia/python/node_modules/@theia/node-pty
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [
gyp info spawn args '/Users/tekumara/.n/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 '/Users/tekumara/code/theia-scratch/node_modules/@theia/python/node_modules/@theia/node-pty/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/tekumara/.n/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/tekumara/Library/Caches/node-gyp/12.14.1/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/tekumara/Library/Caches/node-gyp/12.14.1',
gyp info spawn args '-Dnode_gyp_dir=/Users/tekumara/.n/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/tekumara/Library/Caches/node-gyp/12.14.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/tekumara/code/theia-scratch/node_modules/@theia/python/node_modules/@theia/node-pty',
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 args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/pty/src/unix/pty.o
In file included from ../src/unix/pty.cc:20:
In file included from ../../../nan/nan.h:202:
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()) \
^
<scratch space>:358:1: note: expanded from here
ToBoolean
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2567:3: note: 'ToBoolean' has been explicitly marked deprecated here
V8_DEPRECATED("ToBoolean can never throw. Use Local version.",
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../src/unix/pty.cc:20:
In file included from ../../../nan/nan.h:202:
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()); \
^
<scratch space>:365:1: note: expanded from here
BooleanValue
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2605:3: note: 'BooleanValue' has been explicitly marked deprecated here
V8_DEPRECATED("BooleanValue can never throw. Use Isolate version.",
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../src/unix/pty.cc:20:
In file included from ../../../nan/nan.h:203:
In file included from ../../../nan/nan_new.h:189:
../../../nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'
return scope.Escape(v8::Function::New( isolate
^~~~~~~
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:183:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument
class Local {
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:183:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:187:13: note: candidate template ignored: could not match 'Local<type-parameter-0-0>' against 'v8::Isolate *'
V8_INLINE Local(Local<S> that)
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:4171:22: note: passing argument to parameter 'context' here
Local<Context> context, FunctionCallback callback,
^
In file included from ../src/unix/pty.cc:20:
In file included from ../../../nan/nan.h:203:
In file included from ../../../nan/nan_new.h:189:
../../../nan/nan_implementation_12_inl.h:337:37: error: too few arguments to function call, expected 2, have 1
return v8::StringObject::New(value).As<v8::StringObject>();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:5426:3: note: 'New' declared here
static Local<Value> New(Isolate* isolate, Local<String> value);
^
In file included from ../src/unix/pty.cc:20:
../../../nan/nan.h:1034:44: error: no matching member function for call to 'ToString'
v8::Local<v8::String> string = from->ToString();
~~~~~~^~~~~~~~
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2572:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2588:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<String> ToString(Isolate* isolate) const);
^
In file included from ../src/unix/pty.cc:20:
../../../nan/nan.h:1044:37: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type 'char *'
length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
^~~~
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2782:26: note: passing argument to parameter 'isolate' here
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^
In file included from ../src/unix/pty.cc:20:
../../../nan/nan.h:1818:28: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:3402:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version",
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../src/unix/pty.cc:20:
../../../nan/nan.h:1824:28: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(key, value);
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:3402:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version",
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../src/unix/pty.cc:20:
../../../nan/nan.h:1830:28: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(index, value);
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:3411:3: note: 'Set' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version",
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../src/unix/pty.cc:20:
../../../nan/nan.h:1836:32: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Get(New(key).ToLocalChecked()));
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:3457:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../src/unix/pty.cc:20:
../../../nan/nan.h:1842:48: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(key));
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:3457:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../src/unix/pty.cc:20:
../../../nan/nan.h:1847:48: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(index));
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:3461:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../src/unix/pty.cc:20:
In file included from ../../../nan/nan.h:2657:
../../../nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
assert(persistent().IsNearDeath());
~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.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/unix/pty.cc:20:
In file included from ../../../nan/nan.h:2657:
../../../nan/nan_object_wrap.h:67:18: warning: 'MarkIndependent' is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
persistent().MarkIndependent();
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:563:3: note: 'MarkIndependent' has been explicitly marked deprecated here
V8_DEPRECATED(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
In file included from ../src/unix/pty.cc:20:
In file included from ../../../nan/nan.h:2657:
../../../nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
assert(wrap->handle_.IsNearDeath());
~~~~~~~~~~~~~ ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
../src/unix/pty.cc:185:39: error: no matching member function for call to 'ToString'
v8::String::Utf8Value file(info[0]->ToString());
~~~~~~~~~^~~~~~~~
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2572:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2588:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<String> ToString(Isolate* isolate) const);
^
../src/unix/pty.cc:196:69: error: no matching member function for call to 'ToString'
v8::String::Utf8Value arg(argv_->Get(Nan::New<v8::Integer>(i))->ToString());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2572:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2588:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<String> ToString(Isolate* isolate) const);
^
../src/unix/pty.cc:196:38: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value arg(argv_->Get(Nan::New<v8::Integer>(i))->ToString());
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:3457:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
../src/unix/pty.cc:207:69: error: no matching member function for call to 'ToString'
v8::String::Utf8Value pair(env_->Get(Nan::New<v8::Integer>(i))->ToString());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2572:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2588:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<String> ToString(Isolate* isolate) const);
^
../src/unix/pty.cc:207:38: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::String::Utf8Value pair(env_->Get(Nan::New<v8::Integer>(i))->ToString());
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:3457:3: note: 'Get' has been explicitly marked deprecated here
V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
../src/unix/pty.cc:212:39: error: no matching member function for call to 'ToString'
v8::String::Utf8Value cwd_(info[3]->ToString());
~~~~~~~~~^~~~~~~~
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2572:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2588:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<String> ToString(Isolate* isolate) const);
^
../src/unix/pty.cc:217:39: error: too few arguments to function call, single argument 'context' was not specified
winp.ws_col = info[4]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2609:3: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../src/unix/pty.cc:218:39: error: too few arguments to function call, single argument 'context' was not specified
winp.ws_row = info[5]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2609:3: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../src/unix/pty.cc:226:16: error: no matching member function for call to 'ToBoolean'
if (info[8]->ToBoolean()->Value()) {
~~~~~~~~~^~~~~~~~~
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2568:59: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2584:18: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
Local<Boolean> ToBoolean(Isolate* isolate) const;
^
../src/unix/pty.cc:261:35: error: too few arguments to function call, single argument 'context' was not specified
int uid = info[6]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2609:3: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../src/unix/pty.cc:262:35: error: too few arguments to function call, single argument 'context' was not specified
int gid = info[7]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2609:3: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../src/unix/pty.cc:422:39: error: too few arguments to function call, single argument 'context' was not specified
winp.ws_col = info[0]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2609:3: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../src/unix/pty.cc:423:39: error: too few arguments to function call, single argument 'context' was not specified
winp.ws_row = info[1]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2609:3: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../src/unix/pty.cc:467:34: error: too few arguments to function call, single argument 'context' was not specified
int fd = info[0]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2609:3: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
../src/unix/pty.cc:470:39: error: too few arguments to function call, single argument 'context' was not specified
winp.ws_col = info[1]->IntegerValue();
~~~~~~~~~~~~~~~~~~~~~ ^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8.h:2609:3: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
/Users/tekumara/Library/Caches/node-gyp/12.14.1/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
11 warnings and 20 errors generated.
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/tekumara/.n/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:223:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/Users/tekumara/.n/bin/node" "/Users/tekumara/.n/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/tekumara/code/theia-scratch/node_modules/@theia/python/node_modules/@theia/node-pty
Those errors (where there's a clear mismatch between a C++ API call and the API it's trying to compile against) indicate a mismatch between the C++ code of the addon being compiled and the exported C++ API of Node.js (usually V8 itself).
You reconcile these by making sure that the addon you're compiling supports the version of Node.js you're running. Usually either downgrading your Node.js version to a supported one, or using a newer version of the addon that supports the version of Node.js you're running. There's also a stable API/ABI project for Node.js these days that solves most of those problems, but it requires the addon author to migrate their code to it, which isn't a small amount of effort but you could request they have a look at it at least. https://github.com/nodejs/node-addon-api
Most helpful comment
Downgrading node from 12 to 10 to install a package is not a solution, rather a workaround.