serialport / node-serialport

Access serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!
https://serialport.io
MIT License
5.8k stars 1.01k forks source link

On Linux Mint 19: Can't use firmdata-party. Seems problem related to node-serialport #1683

Closed jcabrerazuniga closed 5 years ago

jcabrerazuniga commented 6 years ago

Can't use firmdata-party. I installed jhonny-five before.

npm install firmata-party -save

serialport@4.0.7 install /home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/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/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/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.11.0 | linux | x64 node-pre-gyp verb command install [] node-pre-gyp info check checked for "/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/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.11.0 (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.11.0 (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/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build' CXX(target) Release/obj.target/serialport/src/serialport.o make: Entering directory '/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build' CXX(target) Release/obj.target/serialport/src/serialport.o ../src/serialport.cpp: In function ‘int getIntFromObject(v8::Localv8::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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Localv8::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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate: v8::MaybeLocalv8::Number v8::Value::ToNumber(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToNumber( ^~~~ ../src/serialport.cpp: In function ‘int getIntFromObject(v8::Localv8::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(); ^ /home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate: v8::Localv8::Number v8::Value::ToNumber(v8::Isolate) const Local ToNumber(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate expects 1 argument, 0 provided Local ToNumber(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../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::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] v8::String::Utf8Value path(info[0]->ToString()); ^ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2888:28: note: declared here explicit Utf8Value(Localv8::Value obj)); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ ../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Localv8::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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate: v8::MaybeLocalv8::Number v8::Value::ToNumber(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToNumber( ^~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate: v8::Localv8::Number v8::Value::ToNumber(v8::Isolate) const Local ToNumber(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate expects 1 argument, 0 provided Local ToNumber(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../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::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] v8::String::Utf8Value path(info[0]->ToString()); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2888:28: note: declared here explicit Utf8Value(Localv8::Value obj)); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ ../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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp:180:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp:217:116: error: no matching function for call to ‘v8::Value::ToInt32()’ baton->baudRate = Nan::Get(options, Nan::Newv8::String("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t)’: ../src/serialport.cpp:240:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t)’: ../src/serialport.cpp:339:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) 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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp:180:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(2, argv); ^ ../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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ In file included from ../src/./serialport.h:7:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t)’: ../src/serialport.cpp:403:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp:217:116: error: no matching function for call to ‘v8::Value::ToInt32()’ baton->baudRate = Nan::Get(options, Nan::Newv8::String("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t)’: ../src/serialport.cpp:240:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t)’: ../src/serialport.cpp:339:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t)’: ../src/serialport.cpp:403:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t)’: ../src/serialport.cpp:465:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t)’: ../src/serialport.cpp:465:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::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(); ^ ../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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t)’: ../src/serialport.cpp:516:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(2, argv); ^ ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t)’: ../src/serialport.cpp:516:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ In file included from ../src/./serialport.h:7:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Localv8::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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t)’: ../src/serialport.cpp:573:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t)’: ../src/serialport.cpp:617:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t)’: ../src/serialport.cpp:573:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t)’: ../src/serialport.cpp:617:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ serialport.target.mk:103: 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/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp serialport.target.mk:103: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed make: [Release/obj.target/serialport/src/serialport.o] Error 1 ERR!make: Leaving directory '/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build' stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Linux 4.15.0-20-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/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release" gyp ERR! cwd /home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport gyp ERR! node -v v10.11.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok gyp ERR! build errornode-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/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) gypnode-pre-gyp 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:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR!ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) System Linux 4.15.0-20-generic gyp ERR! System Linux 4.15.0-20-generic node-pre-gyp 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/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release" ERR!gyp ERR! cwd /home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport gyp ERR! node -v v10.11.0 commandgyp ERR! node-gyp -v v3.8.0 "/usr/bin/node" "/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" gyp ERR! not ok node-pre-gyp ERR! cwd /home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport node-pre-gyp ERR! node -v v10.11.0 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/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/username/Documents/arduinoPrograms/node_modules/avrgirl-arduino/node_modules/serialport/build/Release' (1) npm WARN arduinoPrograms@1.0.0 No description npm WARN arduinoPrograms@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/username/.npm/_logs/2018-09-22T18_27_19_476Z-debug.log

HipsterBrown commented 6 years ago

Do you have the build-essential package installed on your system? https://serialport.io/docs/guide-installation#ubuntu-debian-linux

Are you able to run npm install serialport@4.0.1 --build-from-source successfully?

jcabrerazuniga commented 6 years ago

I have the build-essential package and after trying the command you provided:

~/Documents/arduinoPrograms$ npm install serialport@4.0.1 --build-from-source

serialport@6.2.2 install /home/username/Documents/arduinoPrograms/node_modules/johnny-five/node_modules/serialport prebuild-install || node-gyp rebuild

make: Entering directory '/home/username/Documents/arduinoPrograms/node_modules/johnny-five/node_modules/serialport/build' CXX(target) Release/obj.target/serialport/src/serialport.o ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:41:49: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] v8::String::Utf8Value path(info[0]->ToString()); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:6, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2888:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t)’: ../src/serialport.cpp:95:30: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(2, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t)’: ../src/serialport.cpp:150:30: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t)’: ../src/serialport.cpp:188:30: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t)’: ../src/serialport.cpp:231:30: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t)’: ../src/serialport.cpp:285:30: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t)’: ../src/serialport.cpp:336:30: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(2, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t)’: ../src/serialport.cpp:383:30: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(2, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t)’: ../src/serialport.cpp:424:30: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ CXX(target) Release/obj.target/serialport/src/serialport_unix.o ../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton)’: ../src/serialport_unix.cpp:166:5: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=] int setup(int fd, OpenBaton data) { ^~~~~ In file included from /usr/include/stdio.h:862:0, from ../src/serialport.h:3, from ../src/serialport_unix.cpp:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘builtin___snprintf_chk’ output 20 or more bytes (assuming 1043) into a destination of size 1024 bos (s), fmt, va_arg_pack ()); ^ ../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t)’: ../src/serialport_unix.cpp:79:6: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=] void EIO_Open(uv_work_t req) { ^~~~ In file included from /usr/include/stdio.h:862:0, from ../src/serialport.h:3, from ../src/serialport_unix.cpp:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘builtin_snprintf_chk’ output 22 or more bytes (assuming 1045) into a destination of size 1024 bos (s), fmt, __va_arg_pack ()); ^ CXX(target) Release/obj.target/serialport/src/poller.o ../src/poller.cpp: In static member function ‘static void Poller::onData(uv_poll_t, int, int)’: ../src/poller.cpp:69:29: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) const’ is deprecated [-Wdeprecated-declarations] obj->callback.Call(2, argv); ^ In file included from ../src/poller.cpp:1:0: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ CXX(target) Release/obj.target/serialport/src/serialport_linux.o SOLINK_MODULE(target) Release/obj.target/serialport.node COPY Release/serialport.node make: Leaving directory '/home/username/Documents/arduinoPrograms/node_modules/johnny-five/node_modules/serialport/build'

serialport@4.0.1 install /home/username/Documents/arduinoPrograms/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/username/Documents/arduinoPrograms/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.29 node-pre-gyp info using node@10.11.0 | linux | x64 node-pre-gyp verb command install [] node-pre-gyp info build requesting source compile node-pre-gyp verb command build [ 'rebuild' ] make: Entering directory '/home/username/Documents/arduinoPrograms/node_modules/serialport/build' CXX(target) Release/obj.target/serialport/src/serialport.o ../src/serialport.cpp: In function ‘int getIntFromObject(v8::Local, 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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Local v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Local, 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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate: v8::MaybeLocal v8::Value::ToNumber(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToNumber( ^~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate: v8::Local v8::Value::ToNumber(v8::Isolate) const Local ToNumber(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

/home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate expects 1 argument, 0 provided Local ToNumber(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

../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)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] v8::String::Utf8Value path(info[0]->ToString()); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2888:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t)’: ../src/serialport.cpp:175:31: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = argv[1]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Local v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

../src/serialport.cpp:181:31: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) 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:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:195:29: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Local v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

../src/serialport.cpp:220:116: error: no matching function for call to ‘v8::Value::ToInt32()’ v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Local v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t)’: ../src/serialport.cpp:243:31: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) 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:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:256:29: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Local v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t)’: ../src/serialport.cpp:344:31: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) 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:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:376:32: error: no matching function for call to ‘v8::Value::ToInt32()’ baton->fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Local v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t)’: ../src/serialport.cpp:410:31: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) 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:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t)’: ../src/serialport.cpp:474:31: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) 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:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:490:29: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Local v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t)’: ../src/serialport.cpp:525:31: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) 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:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:538:29: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Local v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t)’: ../src/serialport.cpp:583:31: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) 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:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:596:29: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocal v8::Value::ToInt32(v8::Local) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Local v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

/home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

                                            ^~~~~~~~~~

../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t)’: ../src/serialport.cpp:629:31: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local) 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:1647:3: note: declared here Call(int argc, v8::Local argv[]) const { ^~~~ serialport.target.mk:103: 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/username/Documents/arduinoPrograms/node_modules/serialport/build' gyp ERR! build error gyp 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:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Linux 4.15.0-20-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/username/Documents/arduinoPrograms/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/username/Documents/arduinoPrograms/node_modules/serialport/build/Release" gyp ERR! cwd /home/username/Documents/arduinoPrograms/node_modules/serialport gyp ERR! node -v v10.11.0 gyp ERR! node-gyp -v v3.8.0 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/username/Documents/arduinoPrograms/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/username/Documents/arduinoPrograms/node_modules/serialport/build/Release' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/username/Documents/arduinoPrograms/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) node-pre-gyp ERR! System Linux 4.15.0-20-generic node-pre-gyp ERR! command "/usr/bin/node" "/home/username/Documents/arduinoPrograms/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/username/Documents/arduinoPrograms/node_modules/serialport node-pre-gyp ERR! node -v v10.11.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.29 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/username/Documents/arduinoPrograms/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/username/Documents/arduinoPrograms/node_modules/serialport/build/Release' (1) npm WARN arduinoPrograms@1.0.0 No description npm WARN arduinoPrograms@1.0.0 No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! serialport@4.0.1 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serialport@4.0.1 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/username/.npm/_logs/2018-09-25T01_59_16_711Z-debug.log username@nuc0A:~/Documents/arduinoPrograms$

reconbot commented 6 years ago

Node SerialPort 4 is very old and doesn't support node 10.

On Mon, Sep 24, 2018, 10:01 PM jcabrerazuniga notifications@github.com wrote:

I have the build-essential package and after trying the command you provided:

~/Documents/arduinoPrograms$ npm install serialport@4.0.1 --build-from-source

serialport@6.2.2 install /home/username/Documents/arduinoPrograms/node_modules/johnny-five/node_modules/serialport prebuild-install || node-gyp rebuild

make: Entering directory '/home/username/Documents/arduinoPrograms/node_modules/johnny-five/node_modules/serialport/build' CXX(target) Release/obj.target/serialport/src/serialport.o ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:41:49: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] v8::String::Utf8Value path(info[0]->ToString()); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../../../nan/nan.h:52, from ../src/./serialport.h:6, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2888:28: note: declared here explicit Utf8Value(Localv8::Value obj)); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’: ../src/serialport.cpp:95:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value

) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(2, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t)’: ../src/serialport.cpp:150:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value

) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t)’: ../src/serialport.cpp:188:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value

) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t)’: ../src/serialport.cpp:231:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value

) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t)’: ../src/serialport.cpp:285:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value

) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterGet(uv_work_t)’: ../src/serialport.cpp:336:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value

) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(2, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterGetBaudRate(uv_work_t )’: ../src/serialport.cpp:383:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value

) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(2, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t)’: ../src/serialport.cpp:424:30: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value

) const’ is deprecated [-Wdeprecated-declarations] data->callback.Call(1, argv); ^ In file included from ../src/./serialport.h:6:0, from ../src/serialport.cpp:1: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ CXX(target) Release/obj.target/serialport/src/serialport_unix.o ../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton)’: ../src/serialport_unix.cpp:166:5: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=] int setup(int fd, OpenBaton

data) { ^~~~~ In file included from /usr/include/stdio.h:862:0, from ../src/serialport.h:3, from ../src/serialport_unix.cpp:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘builtin___snprintf_chk’ output 20 or more bytes (assuming 1043) into a destination of size 1024 bos (s), fmt, __va_arg_pack ()); ^ ../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t)’: ../src/serialport_unix.cpp:79:6: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=] void EIO_Open(uv_work_t req) { ^~~~ In file included from /usr/include/stdio.h:862:0, from ../src/serialport.h:3, from ../src/serialport_unix.cpp:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘builtin___snprintf_chk’ output 22 or more bytes (assuming 1045) into a destination of size 1024 bos (s), fmt, __va_arg_pack ()); ^ CXX(target) Release/obj.target/serialport/src/poller.o ../src/poller.cpp: In static member function ‘static void Poller::onData(uv_poll_t, int, int)’: ../src/poller.cpp:69:29: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value*) const’ is deprecated [-Wdeprecated-declarations] obj->callback.Call(2, argv); ^ In file included from ../src/poller.cpp:1:0: ../../../../nan/nan.h:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ CXX(target) Release/obj.target/serialport/src/serialport_linux.o SOLINK_MODULE(target) Release/obj.target/serialport.node COPY Release/serialport.node make: Leaving directory '/home/username/Documents/arduinoPrograms/node_modules/johnny-five/node_modules/serialport/build'

serialport@4.0.1 install /home/username/Documents/arduinoPrograms/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/username/Documents/arduinoPrograms/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.29 node-pre-gyp info using node@10.11.0 | linux | x64 node-pre-gyp verb command install [] node-pre-gyp info build requesting source compile node-pre-gyp verb command build [ 'rebuild' ] make: Entering directory '/home/username/Documents/arduinoPrograms/node_modules/serialport/build' CXX(target) Release/obj.target/serialport/src/serialport.o ../src/serialport.cpp: In function ‘int getIntFromObject(v8::Localv8::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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Localv8::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/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate: v8::MaybeLocalv8::Number v8::Value::ToNumber(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToNumber( ^~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2421:44: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate: v8::Localv8::Number v8::Value::ToNumber(v8::Isolate) const Local ToNumber(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2438:35: note: candidate expects 1 argument, 0 provided Local ToNumber(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../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::Localv8::Value)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] v8::String::Utf8Value path(info[0]->ToString()); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2888:28: note: declared here explicit Utf8Value(Localv8::Value obj)); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t)’: ../src/serialport.cpp:175:31: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = argv[1]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp:181:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:195:29: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp:220:116: error: no matching function for call to ‘v8::Value::ToInt32()’

v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’: ../src/serialport.cpp:243:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:256:29: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t*)’: ../src/serialport.cpp:344:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:376:32: error: no matching function for call to ‘v8::Value::ToInt32()’ baton->fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’: ../src/serialport.cpp:410:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t)’: ../src/serialport.cpp:474:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:490:29: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’: ../src/serialport.cpp:525:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:538:29: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’: ../src/serialport.cpp:583:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/serialport.cpp:596:29: error: no matching function for call to ‘v8::Value::ToInt32()’ int fd = info[0]->ToInt32()->Int32Value(); ^ In file included from /home/username/.node-gyp/10.11.0/include/node/node.h:63:0, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate: v8::MaybeLocalv8::Int32 v8::Value::ToInt32(v8::Localv8::Context) const V8_WARN_UNUSED_RESULT MaybeLocal ToInt32(Local context) const; ^~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2433:43: note: candidate expects 1 argument, 0 provided In file included from /home/username/.node-gyp/10.11.0/include/node/v8.h:26:0, from /home/username/.node-gyp/10.11.0/include/node/node.h:63, from ../../nan/nan.h:52, from ../src/./serialport.h:7, from ../src/serialport.cpp:1: /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate: v8::Localv8::Int32 v8::Value::ToInt32(v8::Isolate) const Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ /home/username/.node-gyp/10.11.0/include/node/v8.h:2446:34: note: candidate expects 1 argument, 0 provided Local ToInt32(Isolate* isolate) const); ^ /home/username/.node-gyp/10.11.0/include/node/v8config.h:346:48: note: in definition of macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message, declarator) declarator

^~~~~~ ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t)’: ../src/serialport.cpp:629:31: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::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:1647:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ serialport.target.mk:103: 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/username/Documents/arduinoPrograms/node_modules/serialport/build' gyp ERR! build error gyp 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:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Linux 4.15.0-20-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/username/Documents/arduinoPrograms/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/username/Documents/arduinoPrograms/node_modules/serialport/build/Release" gyp ERR! cwd /home/username/Documents/arduinoPrograms/node_modules/serialport gyp ERR! node -v v10.11.0 gyp ERR! node-gyp -v v3.8.0 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/username/Documents/arduinoPrograms/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/username/Documents/arduinoPrograms/node_modules/serialport/build/Release' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/username/Documents/arduinoPrograms/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) node-pre-gyp ERR! System Linux 4.15.0-20-generic node-pre-gyp ERR! command "/usr/bin/node" "/home/username/Documents/arduinoPrograms/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/username/Documents/arduinoPrograms/node_modules/serialport node-pre-gyp ERR! node -v v10.11.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.29 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/username/Documents/arduinoPrograms/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/username/Documents/arduinoPrograms/node_modules/serialport/build/Release' (1) npm WARN arduinoPrograms@1.0.0 No description npm WARN arduinoPrograms@1.0.0 No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! serialport@4.0.1 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serialport@4.0.1 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/username/.npm/_logs/2018-09-25T01_59_16_711Z-debug.log username@nuc0A:~/Documents/arduinoPrograms$

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/node-serialport/node-serialport/issues/1683#issuecomment-424182362, or mute the thread https://github.com/notifications/unsubscribe-auth/AABlbml2VC-uP39UhDkBPGNoPFT2FCcyks5ueY5tgaJpZM4W3PH5 .

jcabrerazuniga commented 6 years ago

Can you please tell me the best node version compatible with Node SerialPort 4? Thanks

reconbot commented 6 years ago

Node 4 I think, @noopkat can you upgrade firmata party? I thought you were at least on SerialPort 5

HipsterBrown commented 6 years ago

@reconbot I can try opening a PR to avrgirl-arduino to upgrade the version of serialport being used.

HipsterBrown commented 6 years ago

There is actually a work in progress PR to update serialport for avrgirl-arduino. https://github.com/noopkat/avrgirl-arduino/pull/160

noopkat commented 6 years ago

thanks @HipsterBrown for sharing the PR 😄

This has been a hairy upgrade task so far avrgirl-arduino, which is what powers firmata-party underneath. All three protocol packages have had incompatibilities with the newer SerialPort changes since v4 such as deprecated properties etc. Which is totally okay! But it's been a lot of extensive hardware testing that software driven unit tests cannot catch.

We're getting close, there's just a weird-not-reproduce-able-every-time bug on the Arduino Uno that I'm trying to get my head around (communication timeouts from the chip) and we need to ensure that Chrome app usage is also 💯 for Arduino to continue to use this package safely. This is also a little hard to test.

Anyway that's a little background. Would love to have Uno owners continue to test on a variety of different OS platforms 😉 I think we're really close.

reconbot commented 6 years ago

Got a link for where we can help? Or just that issue?

noopkat commented 5 years ago

@reconbot I have now updated avrgirl-arduino to consume serialport v6 (v7 support coming soon!).

Thanks for flagging this issue @jcabrerazuniga, and thanks @HipsterBrown and @reconbot for bringing it to my attention.

reconbot commented 5 years ago

Awesome! @jcabrerazuniga let us know if this works for you. I'll close for now.

jcabrerazuniga commented 5 years ago

I was able to successfully run:

   npm install firmata-party -save

and executed:

var five = require("johnny-five"); var board = new five.Board({ port: "/dev/ttyACM0" });

board.on("ready", function() { var led = new five.Led(13); led.blink(500); });

board.on("error", function(err) { console.log(err); })

while it seems the program is running, I got the next error message:node five1.js 1538473544568 Connected /dev/ttyACM0
1538473554571 Device or Firmware Error A timeout occurred while connecting to the Board.

Please check that you've properly flashed the board with the correct firmware. See: https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting

If connecting to a Leonardo or Leonardo clone, press the 'Reset' button on the board, wait approximately 11 seconds for complete reset, then run your program again.
{ type: 'error', timestamp: 1538473554571, class: 'Device or Firmware Error', message: 'A timeout occurred while connecting to the Board. \n\nPlease check that you\'ve properly flashed the board with the correct firmware.\nSee: https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting\n\nIf connecting to a Leonardo or Leonardo clone, press the \'Reset\' button on the board, wait approximately 11 seconds for complete reset, then run your program again.', data: null } Error: A timeout occurred while connecting to the Board. at Board. (/home/joseccz/Documents/arduinoPrograms/node_modules/johnny-five/lib/board.js:405:28) at ontimeout (timers.js:425:11) at tryOnTimeout (timers.js:289:5) at listOnTimeout (timers.js:252:5) at Timer.processTimers (timers.js:212:10)

Is there any special firmware I need to upload? how? Thx

reconbot commented 5 years ago

You need to run firmata party instead of saving it of you haven't.

Try

npx firmata-party

To run it and give it your board name. The default firmware is fine.

If it flashes and you still can't get j5 to work, please open an issue there as there are more people who can help debug.

jcabrerazuniga commented 5 years ago

Working perfectly just as you indicated!! Thanks a lot!!

reconbot commented 5 years ago

Glad we could all help!