node-smc
node-smc copied to clipboard
Fails to build
CXX(target) Release/obj.target/smc/native/smc.o
../native/smc.cc:196:17: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
String::NewFromUtf8(isolate, "Expected string")));
^
/Users/thelmgn/.node-gyp/12.7.0/include/node/v8.h:2897:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
static V8_DEPRECATED(
^
/Users/thelmgn/.node-gyp/12.7.0/include/node/v8config.h:311:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^
../native/smc.cc:199:38: error: no matching member function for call to 'ToString'
v8::String::Utf8Value k(args[0]->ToString());
~~~~~~~~~^~~~~~~~
/Users/thelmgn/.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<String> ToString(
^
/Users/thelmgn/.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<String> ToString(Isolate* isolate) const);
^
../native/smc.cc:206:6: error: variable has incomplete type 'void'
void Init(v8::Handle<Object> exports) {
^
../native/smc.cc:206:15: error: no member named 'Handle' in namespace 'v8'
void Init(v8::Handle<Object> exports) {
~~~~^
../native/smc.cc:206:22: error: 'Object' does not refer to a value
void Init(v8::Handle<Object> exports) {
^
/Users/thelmgn/.node-gyp/12.7.0/include/node/v8.h:3363:17: note: declared here
class V8_EXPORT Object : public Value {
^
../native/smc.cc:206:30: error: use of undeclared identifier 'exports'
void Init(v8::Handle<Object> exports) {
^
../native/smc.cc:206:38: error: expected ';' after top level declarator
void Init(v8::Handle<Object> exports) {
^
;
1 warning and 6 errors generated.
make: *** [Release/obj.target/smc/native/smc.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: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.7.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 /Users/thelmgn/Documents/sidepanel-server/node_modules/smc
gyp ERR! node -v v12.7.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN [email protected] No description
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] 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/thelmgn/.npm/_logs/2020-01-31T20_59_23_425Z-debug.log```
macOS Mojave, Node v12.7.0