janvorwerk / opensportident.js

Open SPORTident JavaScript library
MIT License
2 stars 0 forks source link

Install issue #2

Open SloCompTech opened 4 years ago

SloCompTech commented 4 years ago

Hi, due to link to old version of serialport module, this package can't be installed.

npm install opensportident

> serialport@4.0.7 install /home/martin/tmp/test/node_modules/opensportident/node_modules/serialport
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/bin/node',
node-pre-gyp verb cli   '/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@10.18.1 | linux | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build/Release/serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-x64.tar.gz
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@10.18.1 (node-v64 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-x64.tar.gz 
node-pre-gyp verb command build [ 'rebuild' ]
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@10.18.1 (node-v64 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp http Connection closed while downloading tarball file 
node-pre-gyp verb command build [ 'rebuild' ]
make: Entering directory '/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build'
  CXX(target) Release/obj.target/serialport/src/serialport.o
make: Entering directory '/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build'
  CXX(target) Release/obj.target/serialport/src/serialport.o
../src/serialport.cpp: In function ‘int getIntFromObject(v8::Local<v8::Object>, std::__cxx11::string)’:
../src/serialport.cpp:90:52: error: no matching function for call to ‘v8::Value::ToInt32()’
   return getValueFromObject(options, key)->ToInt32()->Int32Value();
                                                    ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp: In function ‘bool getBoolFromObject(v8::Local<v8::Object>, std::__cxx11::string)’:
../src/serialport.cpp:94:54: warning: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   return getValueFromObject(options, key)->ToBoolean()->BooleanValue();
                                                      ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:10034:16: note: declared here
 Local<Boolean> Value::ToBoolean() const {
                ^~~~~
../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Local<v8::Object>, std::__cxx11::string)’:
../src/serialport.cpp:102:53: error: no matching function for call to ‘v8::Value::ToNumber()’
   return getValueFromObject(options, key)->ToNumber()->NumberValue();
                                                     ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2425:44: note: candidate: v8::MaybeLocal<v8::Number> v8::Value::ToNumber(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Number> ToNumber(
                                            ^~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2425:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2442:31: note: candidate: v8::Local<v8::Number> v8::Value::ToNumber(v8::Isolate*) const
                 Local<Number> ToNumber(Isolate* isolate) const);
                               ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2442:31: note:   candidate expects 1 argument, 0 provided
                 Local<Number> ToNumber(Isolate* isolate) const);
                               ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:111:49: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
   v8::String::Utf8Value path(info[0]->ToString());
                                                 ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2892:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp:118:53: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   v8::Local<v8::Object> options = info[1]->ToObject();
                                                     ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/serialport.cpp:141:100: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   v8::Local<v8::Object> platformOptions = getValueFromObject(options, "platformOptions")->ToObject();
                                                                                                    ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
../src/serialport.cpp:174:31: error: no matching function for call to ‘v8::Value::ToInt32()’
     int fd = argv[1]->ToInt32()->Int32Value();
                               ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp:180:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:193:29: error: no matching function for call to ‘v8::Value::ToInt32()’
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp:200:53: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   v8::Local<v8::Object> options = info[1]->ToObject();
                                                     ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/serialport.cpp:217:116: error: no matching function for call to ‘v8::Value::ToInt32()’
   baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
                                                                                                                    ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
../src/serialport.cpp:240:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:252:29: error: no matching function for call to ‘v8::Value::ToInt32()’
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp:259:52: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   v8::Local<v8::Object> buffer = info[1]->ToObject();
                                                    ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t*)’:
../src/serialport.cpp:339:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:369:32: error: no matching function for call to ‘v8::Value::ToInt32()’
   baton->fd = info[0]->ToInt32()->Int32Value();
                                ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
../src/serialport.cpp:403:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘int getIntFromObject(v8::Local<v8::Object>, std::__cxx11::string)’:
../src/serialport.cpp:90:52: error: no matching function for call to ‘v8::Value::ToInt32()’
   return getValueFromObject(options, key)->ToInt32()->Int32Value();
                                                    ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp: In function ‘bool getBoolFromObject(v8::Local<v8::Object>, std::__cxx11::string)’:
../src/serialport.cpp:94:54: warning: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   return getValueFromObject(options, key)->ToBoolean()->BooleanValue();
                                                      ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:10034:16: note: declared here
 Local<Boolean> Value::ToBoolean() const {
                ^~~~~
../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Local<v8::Object>, std::__cxx11::string)’:
../src/serialport.cpp:102:53: error: no matching function for call to ‘v8::Value::ToNumber()’
   return getValueFromObject(options, key)->ToNumber()->NumberValue();
                                                     ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2425:44: note: candidate: v8::MaybeLocal<v8::Number> v8::Value::ToNumber(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Number> ToNumber(
                                            ^~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2425:44: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2442:31: note: candidate: v8::Local<v8::Number> v8::Value::ToNumber(v8::Isolate*) const
                 Local<Number> ToNumber(Isolate* isolate) const);
                               ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2442:31: note:   candidate expects 1 argument, 0 provided
                 Local<Number> ToNumber(Isolate* isolate) const);
                               ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t*)’:
../src/serialport.cpp:465:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:111:49: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
   v8::String::Utf8Value path(info[0]->ToString());
                                                 ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2892:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp:118:53: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   v8::Local<v8::Object> options = info[1]->ToObject();
                                                     ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:480:29: error: no matching function for call to ‘v8::Value::ToInt32()’
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp:141:100: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   v8::Local<v8::Object> platformOptions = getValueFromObject(options, "platformOptions")->ToObject();
                                                                                                    ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
../src/serialport.cpp:516:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:528:29: error: no matching function for call to ‘v8::Value::ToInt32()’
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp:535:53: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   v8::Local<v8::Object> options = info[1]->ToObject();
                                                     ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
../src/serialport.cpp:174:31: error: no matching function for call to ‘v8::Value::ToInt32()’
     int fd = argv[1]->ToInt32()->Int32Value();
                               ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
../src/serialport.cpp:573:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp:180:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:193:29: error: no matching function for call to ‘v8::Value::ToInt32()’
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:585:29: error: no matching function for call to ‘v8::Value::ToInt32()’
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
../src/serialport.cpp:200:53: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   v8::Local<v8::Object> options = info[1]->ToObject();
                                                     ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/serialport.cpp:217:116: error: no matching function for call to ‘v8::Value::ToInt32()’
   baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
                                                                                                                    ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
../src/serialport.cpp:240:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
../src/serialport.cpp:617:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:252:29: error: no matching function for call to ‘v8::Value::ToInt32()’
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp:259:52: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   v8::Local<v8::Object> buffer = info[1]->ToObject();
                                                    ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t*)’:
../src/serialport.cpp:339:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:369:32: error: no matching function for call to ‘v8::Value::ToInt32()’
   baton->fd = info[0]->ToInt32()->Int32Value();
                                ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’:
../src/serialport.cpp:403:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t*)’:
../src/serialport.cpp:465:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:480:29: error: no matching function for call to ‘v8::Value::ToInt32()’
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’:
../src/serialport.cpp:516:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:528:29: error: no matching function for call to ‘v8::Value::ToInt32()’
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp:535:53: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   v8::Local<v8::Object> options = info[1]->ToObject();
                                                     ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:10046:15: note: declared here
 Local<Object> Value::ToObject() const {
               ^~~~~
../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’:
../src/serialport.cpp:573:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:585:29: error: no matching function for call to ‘v8::Value::ToInt32()’
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note: candidate: v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const;
                                           ^~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2437:43: note:   candidate expects 1 argument, 0 provided
In file included from /home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:26:0,
                 from /home/martin/.cache/node-gyp/10.18.1/include/node/node.h:63,
                 from ../../../../nan/nan.h:54,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note: candidate: v8::Local<v8::Int32> v8::Value::ToInt32(v8::Isolate*) const
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
/home/martin/.cache/node-gyp/10.18.1/include/node/v8.h:2450:30: note:   candidate expects 1 argument, 0 provided
                 Local<Int32> ToInt32(Isolate* isolate) const);
                              ^
/home/martin/.cache/node-gyp/10.18.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’:
../src/serialport.cpp:617:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../../../nan/nan.h:1740:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
serialport.target.mk:105: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
make: Leaving directory '/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build'
serialport.target.mk:105: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
make: Leaving directory '/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build'
gyp ERR! build error 
gypgyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR!  System Linux 4.15.0-74-generic
ERR! gyp build errorERR! 
 command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build/Release"
gyp ERR! cwd /home/martin/tmp/test/node_modules/opensportident/node_modules/serialport
gyp ERR! node -v v10.18.1
gyp ERR! node-gyp -vgyp v5.0.5
 gyp ERR!ERR!  stacknot ok Error: `make` failed with exit code: 2

gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.15.0-74-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build/Release"
gyp ERR! cwd /home/martin/tmp/test/node_modules/opensportident/node_modules/serialport
gyp ERR! node -v v10.18.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build/Release' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Linux 4.15.0-74-generic
node-pre-gyp ERR! command "/usr/bin/node" "/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/martin/tmp/test/node_modules/opensportident/node_modules/serialport
node-pre-gyp ERR! node -v v10.18.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok 
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/martin/tmp/test/node_modules/opensportident/node_modules/serialport/build/Release' (1)
npm WARN test@1.0.0 No description
npm WARN test@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@4.0.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the serialport@4.0.7 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!     /home/martin/.npm/_logs/2020-01-15T19_30_08_830Z-debug.log

Would you please update serialport dependency and test if module can be installed again ? Thanks

ghost commented 4 years ago

Hi @SloCompTech Yes indeed these things happen in the Node.js world! :( Unfortunately, you may have noticed that the last commit is 3y old and I am no longer actively maintaining this lib. As a matter of fact, I also stopped developing the target application because I am progressively stepping out of the orienteering world...

If you want to use this, feel free to take ownership of this project! :)

BTW, you may be interested as well into that target project I have created https://github.com/angexis/punchcontrol => do not hesitate to carry on that work if you feel like it (and that you're targeting an open source project as well).

Do not hesitate to get back in touch if you are interested!

Best regards

SloCompTech commented 4 years ago

Hi @angexis, thank you for information. Will consider taking over the development of the library. I have a plan to write full orientiring information system (map design, result calculator, timetable creator) eventually, so this library will come handy with few improvements. I'm planning to start during summer break, but we will see, how it will go. Have you still got any docs related to sportident ?

Best regards