We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi, i just tried installing the package and i am getting these errors
sudo npm install -g remote-serial-port-server
npm WARN deprecated [email protected]: This version is no longer supported, to receive security updates and bug fixes upgrade to the latest version. npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: Critical security bugs fixed in 2.5.5 npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport npm ERR! command failed npm ERR! command sh /tmp/install-ecd37481.sh npm ERR! make: Entering directory '/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build' npm ERR! make: Entering directory '/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build' npm ERR! CXX(target) Release/obj.target/serialport/src/serialport.o npm ERR! CXX(target) Release/obj.target/serialport/src/serialport.o npm ERR! make: Leaving directory '/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build' npm ERR! make: Leaving directory '/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build' npm ERR! Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build/Release' (1) npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using [email protected] npm ERR! node-pre-gyp info using [email protected] | linux | x64 npm ERR! node-pre-gyp info check checked for "/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build/Release/serialport.node" (not found) npm ERR! node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v93-linux-x64.tar.gz npm ERR! node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v93-linux-x64.tar.gz npm ERR! node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v93-linux-x64.tar.gz npm ERR! node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v93 ABI) (falling back to source compile with node-gyp) npm ERR! 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-v93-linux-x64.tar.gz npm ERR! node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v93-linux-x64.tar.gz npm ERR! node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v93 ABI) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp http Connection closed while downloading tarball file npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using [email protected] npm ERR! gyp info using [email protected] | linux | x64 npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using [email protected] npm ERR! gyp info using [email protected] | linux | x64 npm ERR! gyp info ok npm ERR! gyp info ok npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using [email protected] npm ERR! gyp info using [email protected] | linux | x64 npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using [email protected] npm ERR! gyp info using [email protected] | linux | x64 npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3" npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/root/.cache/node-gyp/16.17.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/16.17.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.17.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/root/.cache/node-gyp/16.17.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 3060 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 3060 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:214:50: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct ConnectionOptionsBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] npm ERR! 214 | memset(baton, 0, sizeof(ConnectionOptionsBaton)); npm ERR! | ^ npm ERR! ../src/serialport.cpp:214:50: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct ConnectionOptionsBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] npm ERR! 214 | memset(baton, 0, sizeof(ConnectionOptionsBaton)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:90:8: note: ‘struct ConnectionOptionsBaton’ declared here npm ERR! 90 | struct ConnectionOptionsBaton { npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp:217:116: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 217 | baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:90:8: note: ‘struct ConnectionOptionsBaton’ declared here npm ERR! 90 | struct ConnectionOptionsBaton { npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 3081 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:223:53: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 223 | uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp:217:116: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 217 | baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 3081 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:223:53: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 223 | uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’: npm ERR! ../src/serialport.cpp:240:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 240 | data->callback.Call(1, argv); npm ERR! | ^ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’: npm ERR! ../src/serialport.cpp:240:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 240 | data->callback.Call(1, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:252:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 252 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:252:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 252 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 3081 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 3081 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:259:52: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 259 | v8::Local<v8::Object> buffer = info[1]->ToObject(); npm ERR! | ^ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:259:52: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 259 | v8::Local<v8::Object> buffer = info[1]->ToObject(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 3060 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 3060 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:270:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct WriteBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] npm ERR! 270 | memset(baton, 0, sizeof(WriteBaton)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:97:8: note: ‘struct WriteBaton’ declared here npm ERR! 97 | struct WriteBaton { npm ERR! | ^~~~~~~~~~ npm ERR! ../src/serialport.cpp:279:45: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct QueuedWrite’; use assignment or value-initialization instead [-Wclass-memaccess] npm ERR! 279 | memset(queuedWrite, 0, sizeof(QueuedWrite)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:108:8: note: ‘struct QueuedWrite’ declared here npm ERR! 108 | struct QueuedWrite { npm ERR! | ^~~~~~~~~~~ npm ERR! ../src/serialport.cpp:296:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 296 | uv_queue_work(uv_default_loop(), &queuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp:270:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct WriteBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] npm ERR! 270 | memset(baton, 0, sizeof(WriteBaton)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:97:8: note: ‘struct WriteBaton’ declared here npm ERR! 97 | struct WriteBaton { npm ERR! | ^~~~~~~~~~ npm ERR! ../src/serialport.cpp:279:45: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct QueuedWrite’; use assignment or value-initialization instead [-Wclass-memaccess] npm ERR! 279 | memset(queuedWrite, 0, sizeof(QueuedWrite)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:108:8: note: ‘struct QueuedWrite’ declared here npm ERR! 108 | struct QueuedWrite { npm ERR! | ^~~~~~~~~~~ npm ERR! ../src/serialport.cpp:296:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 296 | uv_queue_work(uv_default_loop(), &queuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t*)’: npm ERR! ../src/serialport.cpp:321:54: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 321 | uv_queue_work(uv_default_loop(), req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterWrite(uv_work_t*)’: npm ERR! ../src/serialport.cpp:321:54: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 321 | uv_queue_work(uv_default_loop(), req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp:339:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 339 | data->callback.Call(1, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp:345:72: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 345 | uv_queue_work(uv_default_loop(), &nextQueuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp:339:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 339 | data->callback.Call(1, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp:345:72: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 345 | uv_queue_work(uv_default_loop(), &nextQueuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:368:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct CloseBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] npm ERR! 368 | memset(baton, 0, sizeof(CloseBaton)); npm ERR! | ^ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:368:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct CloseBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] npm ERR! 368 | memset(baton, 0, sizeof(CloseBaton)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:145:8: note: ‘struct CloseBaton’ declared here npm ERR! 145 | struct CloseBaton { npm ERR! | ^~~~~~~~~~ npm ERR! ../src/serialport.cpp:369:32: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 369 | baton->fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:145:8: note: ‘struct CloseBaton’ declared here npm ERR! 145 | struct CloseBaton { npm ERR! | ^~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 3081 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! ../src/serialport.cpp:369:32: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 369 | baton->fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:374:52: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 374 | uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 3081 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:374:52: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 374 | uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’: npm ERR! ../src/serialport.cpp:403:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 403 | data->callback.Call(1, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterClose(uv_work_t*)’: npm ERR! ../src/serialport.cpp:403:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 403 | data->callback.Call(1, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE List(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:422:51: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 422 | uv_queue_work(uv_default_loop(), req, EIO_List, (uv_after_work_cb)EIO_AfterList); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE List(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:422:51: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 422 | uv_queue_work(uv_default_loop(), req, EIO_List, (uv_after_work_cb)EIO_AfterList); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t*)’: npm ERR! ../src/serialport.cpp:465:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 465 | data->callback.Call(2, argv); npm ERR! | ^ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterList(uv_work_t*)’: npm ERR! ../src/serialport.cpp:465:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 465 | data->callback.Call(2, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:480:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 480 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 3081 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:490:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct FlushBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] npm ERR! 490 | memset(baton, 0, sizeof(FlushBaton)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:167:8: note: ‘struct FlushBaton’ declared here npm ERR! 167 | struct FlushBaton { npm ERR! | ^~~~~~~~~~ npm ERR! ../src/serialport.cpp:496:52: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 496 | uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’: npm ERR! ../src/serialport.cpp:516:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 516 | data->callback.Call(2, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:528:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 528 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 3081 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:535:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 535 | v8::Local<v8::Object> options = info[1]->ToObject(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 3060 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:545:36: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct SetBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] npm ERR! 545 | memset(baton, 0, sizeof(SetBaton)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:174:8: note: ‘struct SetBaton’ declared here npm ERR! 174 | struct SetBaton { npm ERR! | ^~~~~~~~ npm ERR! ../src/serialport.cpp:556:50: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 556 | uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’: npm ERR! ../src/serialport.cpp:573:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 573 | data->callback.Call(1, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:585:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 585 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 3081 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:594:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct DrainBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] npm ERR! 594 | memset(baton, 0, sizeof(DrainBaton)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:186:8: note: ‘struct DrainBaton’ declared here npm ERR! 186 | struct DrainBaton { npm ERR! | ^~~~~~~~~~ npm ERR! ../src/serialport.cpp:600:52: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 600 | uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’: npm ERR! ../src/serialport.cpp:617:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 617 | data->callback.Call(1, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:480:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 480 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 3081 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:490:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct FlushBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] npm ERR! 490 | memset(baton, 0, sizeof(FlushBaton)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:167:8: note: ‘struct FlushBaton’ declared here npm ERR! 167 | struct FlushBaton { npm ERR! | ^~~~~~~~~~ npm ERR! ../src/serialport.cpp:496:52: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 496 | uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterFlush(uv_work_t*)’: npm ERR! ../src/serialport.cpp:516:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 516 | data->callback.Call(2, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:528:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 528 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 3081 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:535:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 535 | v8::Local<v8::Object> options = info[1]->ToObject(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 3060 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:545:36: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct SetBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] npm ERR! 545 | memset(baton, 0, sizeof(SetBaton)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:174:8: note: ‘struct SetBaton’ declared here npm ERR! 174 | struct SetBaton { npm ERR! | ^~~~~~~~ npm ERR! ../src/serialport.cpp:556:50: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 556 | uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterSet(uv_work_t*)’: npm ERR! ../src/serialport.cpp:573:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 573 | data->callback.Call(1, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:585:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 585 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /root/.cache/node-gyp/16.17.0/include/node/node.h:73, npm ERR! from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 3081 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/v8.h:3081:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:594:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct DrainBaton’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] npm ERR! 594 | memset(baton, 0, sizeof(DrainBaton)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:186:8: note: ‘struct DrainBaton’ declared here npm ERR! 186 | struct DrainBaton { npm ERR! | ^~~~~~~~~~ npm ERR! ../src/serialport.cpp:600:52: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 600 | uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain); npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterDrain(uv_work_t*)’: npm ERR! ../src/serialport.cpp:617:30: warning: ‘v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated [-Wdeprecated-declarations] npm ERR! 617 | data->callback.Call(1, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../../nan/nan.h:1746:3: note: declared here npm ERR! 1746 | Call(int argc, v8::Local<v8::Value> argv[]) const { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp: At global scope: npm ERR! ../src/serialport.cpp:623:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses] npm ERR! 623 | SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) { npm ERR! | ^ npm ERR! ../src/serialport.cpp: At global scope: npm ERR! ../src/serialport.cpp:623:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses] npm ERR! 623 | SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) { npm ERR! | ^ npm ERR! ../src/serialport.cpp:642:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses] npm ERR! 642 | SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) { npm ERR! | ^ npm ERR! ../src/serialport.cpp:653:8: error: variable or field ‘init’ declared void npm ERR! 653 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp:642:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses] npm ERR! 642 | SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) { npm ERR! | ^ npm ERR! ../src/serialport.cpp:653:8: error: variable or field ‘init’ declared void npm ERR! 653 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^~~~ npm ERR! ../src/serialport.cpp:653:17: error: ‘Handle’ is not a member of ‘v8’; did you mean ‘JobHandle’? npm ERR! 653 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^~~~~~ npm ERR! | JobHandle npm ERR! ../src/serialport.cpp:653:17: error: ‘Handle’ is not a member of ‘v8’; did you mean ‘JobHandle’? npm ERR! 653 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^~~~~~ npm ERR! | JobHandle npm ERR! ../src/serialport.cpp:653:34: error: expected primary-expression before ‘>’ token npm ERR! 653 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^ npm ERR! ../src/serialport.cpp:653:34: error: expected primary-expression before ‘>’ token npm ERR! 653 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^ npm ERR! ../src/serialport.cpp:653:36: error: ‘target’ was not declared in this scope npm ERR! 653 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^~~~~~ npm ERR! ../src/serialport.cpp:653:36: error: ‘target’ was not declared in this scope npm ERR! 653 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^~~~~~ npm ERR! In file included from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../src/serialport.cpp:670:25: error: ‘init’ was not declared in this scope; did you mean ‘int’? npm ERR! 670 | NODE_MODULE(serialport, init); npm ERR! | ^~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/node.h:859:36: note: in definition of macro ‘NODE_MODULE_X’ npm ERR! 859 | (node::addon_register_func) (regfunc), \ npm ERR! | ^~~~~~~ npm ERR! ../src/serialport.cpp:670:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! 670 | NODE_MODULE(serialport, init); npm ERR! | ^~~~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:60, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../src/serialport.cpp:670:25: error: ‘init’ was not declared in this scope; did you mean ‘int’? npm ERR! 670 | NODE_MODULE(serialport, init); npm ERR! | ^~~~ npm ERR! /root/.cache/node-gyp/16.17.0/include/node/node.h:859:36: note: in definition of macro ‘NODE_MODULE_X’ npm ERR! 859 | (node::addon_register_func) (regfunc), \ npm ERR! | ^~~~~~~ npm ERR! ../src/serialport.cpp:670:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! 670 | NODE_MODULE(serialport, init); npm ERR! | ^~~~~~~~~~~ npm ERR! make: *** [serialport.target.mk:115: Release/obj.target/serialport/src/serialport.o] Error 1 npm ERR! make: *** [serialport.target.mk:115: Release/obj.target/serialport/src/serialport.o] Error 1 npm ERR! gypgyp ERR! build error npm ERR! ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gypgyp ERR! System Linux 5.18.0-14parrot1-amd64 npm ERR! ERR! System Linux 5.18.0-14parrot1-amd64 npm ERR! gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build/Release" npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport npm ERR! gyp ERR! node -v v16.17.0 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok npm ERR! gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build/Release" npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport npm ERR! gyp ERR! node -v v16.17.0 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok npm ERR! node-pre-gyp ERR! build error npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/build/Release' (1) npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29) npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1093:16) npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) npm ERR! node-pre-gyp ERR! System Linux 5.18.0-14parrot1-amd64 npm ERR! node-pre-gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" npm ERR! node-pre-gyp ERR! cwd /usr/local/lib/node_modules/remote-serial-port-server/node_modules/serialport npm ERR! node-pre-gyp ERR! node -v v16.17.0 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.6.32 npm ERR! node-pre-gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-09-05T08_20_54_486Z-debug-0.log
i installed node-pre-gyp but i am still getting the same issue
node-pre-gyp
The text was updated successfully, but these errors were encountered:
No branches or pull requests
hi, i just tried installing the package and i am getting these errors
sudo npm install -g remote-serial-port-server
i installed
node-pre-gyp
but i am still getting the same issueThe text was updated successfully, but these errors were encountered: