Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Npm i fails #1

Open
CEbbinghaus opened this issue Oct 16, 2021 · 0 comments
Open

Npm i fails #1

CEbbinghaus opened this issue Oct 16, 2021 · 0 comments

Comments

@CEbbinghaus
Copy link

I cannot build this package locall because npm is failing to install microtime.

the console output is below:

gitpod /workspace/logmark $ npm i
npm WARN old lockfile 
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile 
npm WARN deprecated [email protected]: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm ERR! code 1
npm ERR! path /workspace/logmark/node_modules/microtime
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
npm ERR! make: Entering directory '/workspace/logmark/node_modules/microtime/build'
npm ERR!   CXX(target) Release/obj.target/microtime/src/microtime.o
npm ERR! make: Leaving directory '/workspace/logmark/node_modules/microtime/build'
npm ERR! prebuild-install info begin Prebuild-install version 2.5.0
npm ERR! prebuild-install info install installing standalone, skipping download.
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] | linux | x64
npm ERR! gyp info find Python using Python version 3.8.12 found at "/home/gitpod/.pyenv/versions/3.8.12/bin/python3"
npm ERR! gyp info spawn /home/gitpod/.pyenv/versions/3.8.12/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/home/gitpod/.nvm/versions/node/v16.11.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   '/workspace/logmark/node_modules/microtime/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/gitpod/.nvm/versions/node/v16.11.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/gitpod/.cache/node-gyp/16.11.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=/home/gitpod/.cache/node-gyp/16.11.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/gitpod/.nvm/versions/node/v16.11.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/gitpod/.cache/node-gyp/16.11.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/workspace/logmark/node_modules/microtime',
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! In file included from ../../nan/nan_converters.h:67,
npm ERR!                  from ../../nan/nan.h:202,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_converters_43_inl.h:18:67: error: cannot convert ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
npm ERR!    18 |       val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext())          \
npm ERR!       |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
npm ERR!       |                                                                   |
npm ERR!       |                                                                   v8::Local<v8::Context>
npm ERR! ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
npm ERR!    22 | X(Boolean)
npm ERR!       | ^
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3086:37: note:   initializing argument 1 of ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’
npm ERR!  3086 |   Local<Boolean> ToBoolean(Isolate* isolate) const;
npm ERR!       |                            ~~~~~~~~~^~~~~~~
npm ERR! In file included from ../../nan/nan_converters.h:67,
npm ERR!                  from ../../nan/nan.h:202,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_converters_43_inl.h:37:55: error: cannot convert ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
npm ERR!    37 |   return val->NAME ## Value(isolate->GetCurrentContext());                     \
npm ERR!       |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
npm ERR!       |                                                       |
npm ERR!       |                                                       v8::Local<v8::Context>
npm ERR! ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
npm ERR!    40 | X(bool, Boolean)
npm ERR!       | ^
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3096:30: note:   initializing argument 1 of ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
npm ERR!  3096 |   bool BooleanValue(Isolate* isolate) const;
npm ERR!       |                     ~~~~~~~~~^~~~~~~
npm ERR! In file included from ../../nan/nan_new.h:189,
npm ERR!                  from ../../nan/nan.h:203,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_implementation_12_inl.h:103:42: error: cannot convert ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
npm ERR!   103 |   return scope.Escape(v8::Function::New( isolate
npm ERR!       |                                          ^~~~~~~
npm ERR!       |                                          |
npm ERR!       |                                          v8::Isolate*
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4754:22: note:   initializing argument 1 of ‘static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)’
npm ERR!  4754 |       Local<Context> context, FunctionCallback callback,
npm ERR!       |       ~~~~~~~~~~~~~~~^~~~~~~
npm ERR! In file included from ../../nan/nan_new.h:189,
npm ERR!                  from ../../nan/nan.h:203,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
npm ERR! ../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
npm ERR!   337 |   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!       |                                     ^
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:6196:23: note: candidate: ‘static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)’
npm ERR!  6196 |   static Local<Value> New(Isolate* isolate, Local<String> value);
npm ERR!       |                       ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:6196:23: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../../nan/nan_new.h:189,
npm ERR!                  from ../../nan/nan.h:203,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! ../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
npm ERR!   337 |   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!       |                                                          ^
npm ERR! ../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
npm ERR!   337 |   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!       |                                                            ^
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
npm ERR! ../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!   840 |         v8::Isolate::GetCurrent(), target, func, argc, argv);
npm ERR!       |                                                            ^
npm ERR! In file included from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:184:50: note: declared here
npm ERR!   184 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   101 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!   840 |         v8::Isolate::GetCurrent(), target, func, argc, argv);
npm ERR!       |                                                            ^
npm ERR! In file included from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:184:50: note: declared here
npm ERR!   184 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   101 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
npm ERR! ../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!   855 |         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
npm ERR!       |                                                              ^
npm ERR! In file included from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:177:50: note: declared here
npm ERR!   177 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   101 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!   855 |         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
npm ERR!       |                                                              ^
npm ERR! In file included from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:177:50: note: declared here
npm ERR!   177 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   101 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
npm ERR! ../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!   870 |         v8::Isolate::GetCurrent(), target, method, argc, argv);
npm ERR!       |                                                              ^
npm ERR! In file included from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:170:50: note: declared here
npm ERR!   170 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   101 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!   870 |         v8::Isolate::GetCurrent(), target, method, argc, argv);
npm ERR!       |                                                              ^
npm ERR! In file included from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:170:50: note: declared here
npm ERR!   170 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   101 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan.h:916:53: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!   916 |       v8::Local<v8::String> string = from->ToString();
npm ERR!       |                                                     ^
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3048:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR!  3048 |   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!       |                                            ^~~~~~~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3048:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h:926:37: error: cannot convert ‘char*’ to ‘v8::Isolate*’
npm ERR!   926 |         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
npm ERR!       |                                     ^~~~
npm ERR!       |                                     |
npm ERR!       |                                     char*
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3277:26: note:   initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
npm ERR!  3277 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
npm ERR!       |                 ~~~~~~~~~^~~~~~~
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
npm ERR! ../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!  1484 |     ));
npm ERR!       |     ^
npm ERR! In file included from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:184:50: note: declared here
npm ERR!   184 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   101 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!  1484 |     ));
npm ERR!       |     ^
npm ERR! In file included from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:184:50: note: declared here
npm ERR!   184 |                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!       |                                                  ^~~~~~~~~~~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!   101 |     __attribute__((deprecated(message))) declarator
npm ERR!       |                                          ^~~~~~~~~~
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
npm ERR! ../../nan/nan.h:1538:64: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, const v8::Local<v8::Value>&)’
npm ERR!  1538 |     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
npm ERR!       |                                                                ^
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
npm ERR! ../../nan/nan.h:1544:42: error: no matching function for call to ‘v8::Object::Set(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’
npm ERR!  1544 |     New(persistentHandle)->Set(key, value);
npm ERR!       |                                          ^
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
npm ERR! ../../nan/nan.h:1550:44: error: no matching function for call to ‘v8::Object::Set(uint32_t&, const v8::Local<v8::Value>&)’
npm ERR!  1550 |     New(persistentHandle)->Set(index, value);
npm ERR!       |                                            ^
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
npm ERR! ../../nan/nan.h:1556:61: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
npm ERR!  1556 |         New(persistentHandle)->Get(New(key).ToLocalChecked()));
npm ERR!       |                                                             ^
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
npm ERR! ../../nan/nan.h:1562:55: error: no matching function for call to ‘v8::Object::Get(const v8::Local<v8::String>&)’
npm ERR!  1562 |     return scope.Escape(New(persistentHandle)->Get(key));
npm ERR!       |                                                       ^
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
npm ERR! ../../nan/nan.h:1567:57: error: no matching function for call to ‘v8::Object::Get(uint32_t&)’
npm ERR!  1567 |     return scope.Escape(New(persistentHandle)->Get(index));
npm ERR!       |                                                         ^
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!  4007 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!  4010 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!       |                                           ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/microtime.cc:9:
npm ERR! ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
npm ERR! ../../nan/nan.h:1875:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
npm ERR!  1875 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
npm ERR!       |                                                              ^
npm ERR! In file included from /usr/include/c++/9/cassert:44,
npm ERR!                  from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node_object_wrap.h:26,
npm ERR!                  from ../../nan/nan.h:53,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
npm ERR! ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
npm ERR!    24 |     assert(persistent().IsNearDeath());
npm ERR!       |                         ^~~~~~~~~~~
npm ERR! In file included from ../../nan/nan.h:2365,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
npm ERR! ../../nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’
npm ERR!    67 |     persistent().MarkIndependent();
npm ERR!       |                  ^~~~~~~~~~~~~~~
npm ERR! In file included from /usr/include/c++/9/cassert:44,
npm ERR!                  from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node_object_wrap.h:26,
npm ERR!                  from ../../nan/nan.h:53,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
npm ERR! ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
npm ERR!   124 |     assert(wrap->handle_.IsNearDeath());
npm ERR!       |                          ^~~~~~~~~~~
npm ERR! ../src/microtime.cc: In function ‘void NowStruct(const Nan::FunctionCallbackInfo<v8::Value>&)’:
npm ERR! ../src/microtime.cc:75:78: error: no matching function for call to ‘v8::Array::Set(Nan::imp::IntegerFactory<v8::Integer>::return_t, Nan::imp::FactoryBase<v8::Number>::return_t)’
npm ERR!    75 |   array->Set(Nan::New<v8::Integer>(0), Nan::New<v8::Number>((double)t.tv_sec));
npm ERR!       |                                                                              ^
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! ../src/microtime.cc:76:79: error: no matching function for call to ‘v8::Array::Set(Nan::imp::IntegerFactory<v8::Integer>::return_t, Nan::imp::FactoryBase<v8::Number>::return_t)’
npm ERR!    76 |   array->Set(Nan::New<v8::Integer>(1), Nan::New<v8::Number>((double)t.tv_usec));
npm ERR!       |                                                                               ^
npm ERR! In file included from /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:63,
npm ERR!                  from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!  3961 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!       |                                     ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!  3964 |   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!       |                                     ^~~
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../../nan/nan.h:51,
npm ERR!                  from ../src/microtime.cc:9:
npm ERR! ../src/microtime.cc: At global scope:
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:821:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
npm ERR!   821 |       (node::addon_register_func) (regfunc),                          \
npm ERR!       |                                           ^
npm ERR! /home/gitpod/.cache/node-gyp/16.11.0/include/node/node.h:855:3: note: in expansion of macro ‘NODE_MODULE_X’
npm ERR!   855 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
npm ERR!       |   ^~~~~~~~~~~~~
npm ERR! ../src/microtime.cc:95:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR!    95 | NODE_MODULE(microtime, InitAll)
npm ERR!       | ^~~~~~~~~~~
npm ERR! make: *** [microtime.target.mk:113: Release/obj.target/microtime/src/microtime.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 (/home/gitpod/.nvm/versions/node/v16.11.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 5.4.0-1049-gke
npm ERR! gyp ERR! command "/home/gitpod/.nvm/versions/node/v16.11.0/bin/node" "/home/gitpod/.nvm/versions/node/v16.11.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /workspace/logmark/node_modules/microtime
npm ERR! gyp ERR! node -v v16.11.0
npm ERR! gyp ERR! node-gyp -v v8.2.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/gitpod/.npm/_logs/2021-10-16T09_13_23_053Z-debug.log```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant