cat icon indicating copy to clipboard operation
cat copied to clipboard

Node.js v10.19 以上版本无法安装 @dp-cat/client,还有人维护么?

Open mutian opened this issue 3 years ago • 0 comments

使用 Node v10.19 以上版本执行 npm install @dp-cat/client 报错无法安装,请问应该如何处理?

操作系统:macOS v12.2 (21D49),已参照 ccat installation 安装依赖 /usr/local/lib/libcatclient.dylib

报错信息:

  • node v16.15.0,node-gyp v9.0.0,npm v8.5.5
$ npm install @dp-cat/client                                                                                                                                      [18:19:47]
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /Users/MT/Dev/monitor/cat/node_modules/@dp-cat/client
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! CXX(target) Release/obj.target/nodecat/src/nodecat.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | x64
npm ERR! gyp info find Python using Python version 3.8.9 found at "/Library/Developer/CommandLineTools/usr/bin/python3"
npm ERR! gyp info spawn /Library/Developer/CommandLineTools/usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/Users/MT/.nvm/versions/node/v16.15.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/MT/Dev/monitor/cat/node_modules/@dp-cat/client/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/MT/.nvm/versions/node/v16.15.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/MT/Library/Caches/node-gyp/16.15.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/MT/Library/Caches/node-gyp/16.15.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/Users/MT/.nvm/versions/node/v16.15.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/MT/Library/Caches/node-gyp/16.15.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/MT/Dev/monitor/cat/node_modules/@dp-cat/client',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../src/nodecat.cc:18:58: error: no viable conversion from 'MaybeLocal<v8::String>' to 'Local<v8::String>'
npm ERR!             isolate->ThrowException(Exception::TypeError(String::NewFromUtf8(isolate, "Appkey is required")));
npm ERR!                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:200:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'MaybeLocal<v8::String>' to 'const v8::Local<v8::String> &' for 1st argument
npm ERR! class Local {
npm ERR!       ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:200:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'MaybeLocal<v8::String>' to 'v8::Local<v8::String> &&' for 1st argument
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:204:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
npm ERR!   V8_INLINE Local(Local<S> that)
npm ERR!             ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:348:22: note: explicit constructor is not a candidate
npm ERR!   explicit V8_INLINE Local(T* that) : val_(that) {}
npm ERR!                      ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:7525:47: note: passing argument to parameter 'message' here
npm ERR!   static Local<Value> TypeError(Local<String> message);
npm ERR!                                               ^
npm ERR! ../src/nodecat.cc:21:49: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!         String::Utf8Value str(args[0]->ToString());
npm ERR!                               ~~~~~~~~~~~~~~~~~ ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:3048:44: note: 'ToString' declared here
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!                                            ^
npm ERR! ../src/nodecat.cc:21:27: error: no matching constructor for initialization of 'String::Utf8Value'
npm ERR!         String::Utf8Value str(args[0]->ToString());
npm ERR!                           ^   ~~~~~~~~~~~~~~~~~~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:3588:5: note: candidate constructor not viable: no known conversion from 'MaybeLocal<v8::String>' to 'const v8::String::Utf8Value' for 1st argument
npm ERR!     Utf8Value(const Utf8Value&) = delete;
npm ERR!     ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:3581:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
npm ERR!     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
npm ERR!     ^
npm ERR! ../src/nodecat.cc:42:46: error: no matching member function for call to 'Get'
npm ERR!         String::Utf8Value messageType((node->Get(String::NewFromUtf8(isolate, "messageType")))->ToString());
npm ERR!                                        ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! ../src/nodecat.cc:44:43: error: no matching member function for call to 'Get'
npm ERR!             String::Utf8Value type((node->Get(String::NewFromUtf8(isolate, "type")))->ToString());
npm ERR!                                     ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! ../src/nodecat.cc:45:43: error: no matching member function for call to 'Get'
npm ERR!             String::Utf8Value name((node->Get(String::NewFromUtf8(isolate, "name")))->ToString());
npm ERR!                                     ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! ../src/nodecat.cc:46:45: error: no matching member function for call to 'Get'
npm ERR!             String::Utf8Value status((node->Get(String::NewFromUtf8(isolate, "status")))->ToString());
npm ERR!                                       ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! ../src/nodecat.cc:47:43: error: no matching member function for call to 'Get'
npm ERR!             String::Utf8Value data((node->Get(String::NewFromUtf8(isolate, "data")))->ToString());
npm ERR!                                     ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! ../src/nodecat.cc:48:34: error: no matching member function for call to 'Get'
npm ERR!             double begin = node->Get(String::NewFromUtf8(isolate, "beginTimestamp"))->NumberValue();
npm ERR!                            ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! ../src/nodecat.cc:49:32: error: no matching member function for call to 'Get'
npm ERR!             double end = node->Get(String::NewFromUtf8(isolate, "endTimestamp"))->NumberValue();
npm ERR!                          ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! ../src/nodecat.cc:58:13: error: no template named 'Handle'
npm ERR!             Handle<Array> children = Handle<Array>::Cast(node->Get(String::NewFromUtf8(isolate, "children")));
npm ERR!             ^
npm ERR! ../src/nodecat.cc:58:38: error: no template named 'Handle'
npm ERR!             Handle<Array> children = Handle<Array>::Cast(node->Get(String::NewFromUtf8(isolate, "children")));
npm ERR!                                      ^
npm ERR! ../src/nodecat.cc:58:64: error: no matching member function for call to 'Get'
npm ERR!             Handle<Array> children = Handle<Array>::Cast(node->Get(String::NewFromUtf8(isolate, "children")));
npm ERR!                                                          ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! ../src/nodecat.cc:61:40: error: no template named 'Handle'
npm ERR!                 InnerSendNode(isolate, Handle<Object>::Cast(children->Get(i)));
npm ERR!                                        ^
npm ERR! ../src/nodecat.cc:66:43: error: no matching member function for call to 'Get'
npm ERR!             String::Utf8Value type((node->Get(String::NewFromUtf8(isolate, "type")))->ToString());
npm ERR!                                     ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! ../src/nodecat.cc:67:43: error: no matching member function for call to 'Get'
npm ERR!             String::Utf8Value name((node->Get(String::NewFromUtf8(isolate, "name")))->ToString());
npm ERR!                                     ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! ../src/nodecat.cc:68:45: error: no matching member function for call to 'Get'
npm ERR!             String::Utf8Value status((node->Get(String::NewFromUtf8(isolate, "status")))->ToString());
npm ERR!                                       ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! ../src/nodecat.cc:69:43: error: no matching member function for call to 'Get'
npm ERR!             String::Utf8Value data((node->Get(String::NewFromUtf8(isolate, "data")))->ToString());
npm ERR!                                     ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! ../src/nodecat.cc:70:33: error: no matching member function for call to 'Get'
npm ERR!             double begin((node->Get(String::NewFromUtf8(isolate, "beginTimestamp")))->NumberValue());
npm ERR!                           ~~~~~~^~~
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/MT/Library/Caches/node-gyp/16.15.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! fatal error: too many errors emitted, stopping now [-ferror-limit=]
npm ERR! 20 errors generated.
npm ERR! make: *** [Release/obj.target/nodecat/src/nodecat.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/Users/MT/.nvm/versions/node/v16.15.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 21.3.0
npm ERR! gyp ERR! command "/Users/MT/.nvm/versions/node/v16.15.0/bin/node" "/Users/MT/.nvm/versions/node/v16.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/MT/Dev/monitor/cat/node_modules/@dp-cat/client
npm ERR! gyp ERR! node -v v16.15.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/MT/.npm/_logs/2022-05-23T10_19_59_718Z-debug-0.log
FAIL
  • node v14.19.3,node-gyp v5.1.0,npm v6.14.17
$ npm install @dp-cat/client                                                                                                                                      [18:20:45]
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

> @dp-cat/[email protected] install /Users/MT/Dev/monitor/cat/node_modules/@dp-cat/client
> node-gyp rebuild

  CXX(target) Release/obj.target/nodecat/src/nodecat.o
../src/nodecat.cc:18:58: error: no viable conversion from 'MaybeLocal<v8::String>' to 'Local<v8::String>'
            isolate->ThrowException(Exception::TypeError(String::NewFromUtf8(isolate, "Appkey is required")));
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:190:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'MaybeLocal<v8::String>' to 'const v8::Local<v8::String> &' for 1st argument
class Local {
      ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:190:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'MaybeLocal<v8::String>' to 'v8::Local<v8::String> &&' for 1st argument
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:194:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:337:22: note: explicit constructor is not a candidate
  explicit V8_INLINE Local(T* that) : val_(that) {}
                     ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:7192:47: note: passing argument to parameter 'message' here
  static Local<Value> TypeError(Local<String> message);
                                              ^
../src/nodecat.cc:21:49: error: too few arguments to function call, single argument 'context' was not specified
        String::Utf8Value str(args[0]->ToString());
                              ~~~~~~~~~~~~~~~~~ ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:2810:44: note: 'ToString' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
../src/nodecat.cc:21:27: error: no matching constructor for initialization of 'String::Utf8Value'
        String::Utf8Value str(args[0]->ToString());
                          ^   ~~~~~~~~~~~~~~~~~~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3294:5: note: candidate constructor not viable: no known conversion from 'MaybeLocal<v8::String>' to 'const v8::String::Utf8Value' for 1st argument
    Utf8Value(const Utf8Value&) = delete;
    ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3287:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
    Utf8Value(Isolate* isolate, Local<v8::Value> obj);
    ^
../src/nodecat.cc:42:46: error: no matching member function for call to 'Get'
        String::Utf8Value messageType((node->Get(String::NewFromUtf8(isolate, "messageType")))->ToString());
                                       ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/nodecat.cc:44:43: error: no matching member function for call to 'Get'
            String::Utf8Value type((node->Get(String::NewFromUtf8(isolate, "type")))->ToString());
                                    ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/nodecat.cc:45:43: error: no matching member function for call to 'Get'
            String::Utf8Value name((node->Get(String::NewFromUtf8(isolate, "name")))->ToString());
                                    ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/nodecat.cc:46:45: error: no matching member function for call to 'Get'
            String::Utf8Value status((node->Get(String::NewFromUtf8(isolate, "status")))->ToString());
                                      ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/nodecat.cc:47:43: error: no matching member function for call to 'Get'
            String::Utf8Value data((node->Get(String::NewFromUtf8(isolate, "data")))->ToString());
                                    ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/nodecat.cc:48:34: error: no matching member function for call to 'Get'
            double begin = node->Get(String::NewFromUtf8(isolate, "beginTimestamp"))->NumberValue();
                           ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/nodecat.cc:49:32: error: no matching member function for call to 'Get'
            double end = node->Get(String::NewFromUtf8(isolate, "endTimestamp"))->NumberValue();
                         ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/nodecat.cc:58:13: error: no template named 'Handle'
            Handle<Array> children = Handle<Array>::Cast(node->Get(String::NewFromUtf8(isolate, "children")));
            ^
../src/nodecat.cc:58:38: error: no template named 'Handle'
            Handle<Array> children = Handle<Array>::Cast(node->Get(String::NewFromUtf8(isolate, "children")));
                                     ^
../src/nodecat.cc:58:64: error: no matching member function for call to 'Get'
            Handle<Array> children = Handle<Array>::Cast(node->Get(String::NewFromUtf8(isolate, "children")));
                                                         ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/nodecat.cc:61:40: error: no template named 'Handle'
                InnerSendNode(isolate, Handle<Object>::Cast(children->Get(i)));
                                       ^
../src/nodecat.cc:66:43: error: no matching member function for call to 'Get'
            String::Utf8Value type((node->Get(String::NewFromUtf8(isolate, "type")))->ToString());
                                    ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/nodecat.cc:67:43: error: no matching member function for call to 'Get'
            String::Utf8Value name((node->Get(String::NewFromUtf8(isolate, "name")))->ToString());
                                    ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/nodecat.cc:68:45: error: no matching member function for call to 'Get'
            String::Utf8Value status((node->Get(String::NewFromUtf8(isolate, "status")))->ToString());
                                      ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/nodecat.cc:69:43: error: no matching member function for call to 'Get'
            String::Utf8Value data((node->Get(String::NewFromUtf8(isolate, "data")))->ToString());
                                    ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
../src/nodecat.cc:70:33: error: no matching member function for call to 'Get'
            double begin((node->Get(String::NewFromUtf8(isolate, "beginTimestamp")))->NumberValue());
                          ~~~~~~^~~
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3717:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/MT/Library/Caches/node-gyp/14.19.3/include/node/v8.h:3720:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/nodecat/src/nodecat.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/MT/.nvm/versions/node/v14.19.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:400:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12)
gyp ERR! System Darwin 21.3.0
gyp ERR! command "/Users/MT/.nvm/versions/node/v14.19.3/bin/node" "/Users/MT/.nvm/versions/node/v14.19.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/MT/Dev/monitor/cat/node_modules/@dp-cat/client
gyp ERR! node -v v14.19.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @dp-cat/[email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @dp-cat/[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/MT/.npm/_logs/2022-05-23T10_21_00_011Z-debug.log
FAIL
  • node v12.22.12,node-gyp v5.1.0,npm v6.14.16
$ npm install @dp-cat/client                                                                                                                                      [18:23:19]
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

> @dp-cat/[email protected] install /Users/MT/Dev/monitor/cat/node_modules/@dp-cat/client
> node-gyp rebuild

  CXX(target) Release/obj.target/nodecat/src/nodecat.o
../src/nodecat.cc:18:66: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            isolate->ThrowException(Exception::TypeError(String::NewFromUtf8(isolate, "Appkey is required")));
                                                                 ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:21:40: error: no matching member function for call to 'ToString'
        String::Utf8Value str(args[0]->ToString());
                              ~~~~~~~~~^~~~~~~~
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2668:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2684:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<String> ToString(Isolate* isolate) const);
                              ^
../src/nodecat.cc:42:97: error: no matching member function for call to 'ToString'
        String::Utf8Value messageType((node->Get(String::NewFromUtf8(isolate, "messageType")))->ToString());
                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2668:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2684:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<String> ToString(Isolate* isolate) const);
                              ^
../src/nodecat.cc:42:58: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
        String::Utf8Value messageType((node->Get(String::NewFromUtf8(isolate, "messageType")))->ToString());
                                                         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:42:46: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
        String::Utf8Value messageType((node->Get(String::NewFromUtf8(isolate, "messageType")))->ToString());
                                             ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:44:87: error: no matching member function for call to 'ToString'
            String::Utf8Value type((node->Get(String::NewFromUtf8(isolate, "type")))->ToString());
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2668:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2684:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<String> ToString(Isolate* isolate) const);
                              ^
../src/nodecat.cc:44:55: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value type((node->Get(String::NewFromUtf8(isolate, "type")))->ToString());
                                                      ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:44:43: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value type((node->Get(String::NewFromUtf8(isolate, "type")))->ToString());
                                          ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:45:87: error: no matching member function for call to 'ToString'
            String::Utf8Value name((node->Get(String::NewFromUtf8(isolate, "name")))->ToString());
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2668:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2684:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<String> ToString(Isolate* isolate) const);
                              ^
../src/nodecat.cc:45:55: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value name((node->Get(String::NewFromUtf8(isolate, "name")))->ToString());
                                                      ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:45:43: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value name((node->Get(String::NewFromUtf8(isolate, "name")))->ToString());
                                          ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:46:91: error: no matching member function for call to 'ToString'
            String::Utf8Value status((node->Get(String::NewFromUtf8(isolate, "status")))->ToString());
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2668:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2684:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<String> ToString(Isolate* isolate) const);
                              ^
../src/nodecat.cc:46:57: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value status((node->Get(String::NewFromUtf8(isolate, "status")))->ToString());
                                                        ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:46:45: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value status((node->Get(String::NewFromUtf8(isolate, "status")))->ToString());
                                            ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:47:87: error: no matching member function for call to 'ToString'
            String::Utf8Value data((node->Get(String::NewFromUtf8(isolate, "data")))->ToString());
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2668:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2684:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<String> ToString(Isolate* isolate) const);
                              ^
../src/nodecat.cc:47:55: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value data((node->Get(String::NewFromUtf8(isolate, "data")))->ToString());
                                                      ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:47:43: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value data((node->Get(String::NewFromUtf8(isolate, "data")))->ToString());
                                          ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:48:99: error: too few arguments to function call, single argument 'context' was not specified
            double begin = node->Get(String::NewFromUtf8(isolate, "beginTimestamp"))->NumberValue();
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2704:39: note: 'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
                                      ^
../src/nodecat.cc:48:20: error: no viable conversion from 'Maybe<double>' to 'double'
            double begin = node->Get(String::NewFromUtf8(isolate, "beginTimestamp"))->NumberValue();
                   ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/nodecat.cc:48:46: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            double begin = node->Get(String::NewFromUtf8(isolate, "beginTimestamp"))->NumberValue();
                                             ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:48:34: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
            double begin = node->Get(String::NewFromUtf8(isolate, "beginTimestamp"))->NumberValue();
                                 ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:49:95: error: too few arguments to function call, single argument 'context' was not specified
            double end = node->Get(String::NewFromUtf8(isolate, "endTimestamp"))->NumberValue();
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2704:39: note: 'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
                                      ^
../src/nodecat.cc:49:20: error: no viable conversion from 'Maybe<double>' to 'double'
            double end = node->Get(String::NewFromUtf8(isolate, "endTimestamp"))->NumberValue();
                   ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/nodecat.cc:49:44: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            double end = node->Get(String::NewFromUtf8(isolate, "endTimestamp"))->NumberValue();
                                           ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:49:32: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
            double end = node->Get(String::NewFromUtf8(isolate, "endTimestamp"))->NumberValue();
                               ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:58:13: error: no template named 'Handle'
            Handle<Array> children = Handle<Array>::Cast(node->Get(String::NewFromUtf8(isolate, "children")));
            ^
../src/nodecat.cc:58:38: error: no template named 'Handle'
            Handle<Array> children = Handle<Array>::Cast(node->Get(String::NewFromUtf8(isolate, "children")));
                                     ^
../src/nodecat.cc:61:40: error: no template named 'Handle'
                InnerSendNode(isolate, Handle<Object>::Cast(children->Get(i)));
                                       ^
../src/nodecat.cc:66:87: error: no matching member function for call to 'ToString'
            String::Utf8Value type((node->Get(String::NewFromUtf8(isolate, "type")))->ToString());
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2668:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2684:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<String> ToString(Isolate* isolate) const);
                              ^
../src/nodecat.cc:66:55: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value type((node->Get(String::NewFromUtf8(isolate, "type")))->ToString());
                                                      ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:66:43: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value type((node->Get(String::NewFromUtf8(isolate, "type")))->ToString());
                                          ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:67:87: error: no matching member function for call to 'ToString'
            String::Utf8Value name((node->Get(String::NewFromUtf8(isolate, "name")))->ToString());
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2668:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2684:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<String> ToString(Isolate* isolate) const);
                              ^
../src/nodecat.cc:67:55: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value name((node->Get(String::NewFromUtf8(isolate, "name")))->ToString());
                                                      ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:67:43: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value name((node->Get(String::NewFromUtf8(isolate, "name")))->ToString());
                                          ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:68:91: error: no matching member function for call to 'ToString'
            String::Utf8Value status((node->Get(String::NewFromUtf8(isolate, "status")))->ToString());
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2668:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2684:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<String> ToString(Isolate* isolate) const);
                              ^
../src/nodecat.cc:68:57: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value status((node->Get(String::NewFromUtf8(isolate, "status")))->ToString());
                                                        ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:68:45: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value status((node->Get(String::NewFromUtf8(isolate, "status")))->ToString());
                                            ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:69:87: error: no matching member function for call to 'ToString'
            String::Utf8Value data((node->Get(String::NewFromUtf8(isolate, "data")))->ToString());
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2668:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                           ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2684:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<String> ToString(Isolate* isolate) const);
                              ^
../src/nodecat.cc:69:55: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value data((node->Get(String::NewFromUtf8(isolate, "data")))->ToString());
                                                      ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:69:43: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
            String::Utf8Value data((node->Get(String::NewFromUtf8(isolate, "data")))->ToString());
                                          ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:70:99: error: too few arguments to function call, single argument 'context' was not specified
            double begin((node->Get(String::NewFromUtf8(isolate, "beginTimestamp")))->NumberValue());
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:2704:39: note: 'NumberValue' declared here
  V8_WARN_UNUSED_RESULT Maybe<double> NumberValue(Local<Context> context) const;
                                      ^
../src/nodecat.cc:70:20: error: no viable conversion from 'Maybe<double>' to 'double'
            double begin((node->Get(String::NewFromUtf8(isolate, "beginTimestamp")))->NumberValue());
                   ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/nodecat.cc:70:45: warning: 'NewFromUtf8' is deprecated: Use maybe version [-Wdeprecated-declarations]
            double begin((node->Get(String::NewFromUtf8(isolate, "beginTimestamp")))->NumberValue());
                                            ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3030:10: note: 'NewFromUtf8' has been explicitly marked deprecated here
  static V8_DEPRECATED(
         ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
../src/nodecat.cc:70:33: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
            double begin((node->Get(String::NewFromUtf8(isolate, "beginTimestamp")))->NumberValue());
                                ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8.h:3553:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
  ^
/Users/MT/Library/Caches/node-gyp/12.22.12/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
25 warnings and 20 errors generated.
make: *** [Release/obj.target/nodecat/src/nodecat.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/MT/.nvm/versions/node/v12.22.12/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 21.3.0
gyp ERR! command "/Users/MT/.nvm/versions/node/v12.22.12/bin/node" "/Users/MT/.nvm/versions/node/v12.22.12/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/MT/Dev/monitor/cat/node_modules/@dp-cat/client
gyp ERR! node -v v12.22.12
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @dp-cat/[email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @dp-cat/[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/MT/.npm/_logs/2022-05-23T10_23_31_944Z-debug.log
FAIL

mutian avatar May 23 '22 10:05 mutian