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
I can't install it using npm i obd2.
npm i obd2
NodeJs Version: v14.17.5 NPM Version: 7.24.2 OS: Kubuntu, Ubuntu 20.04.3 LTS
I tried to install some things like:
Also tried to install SerialPort using this documentation: https://serialport.io/docs/7.x.x/guide-installation Even with 9.x.x and 7.x.x. I also tried to install it using npm like npm i serialport.
npm i serialport
Same issue on Windows 10 for me, also on Ubuntu Subsystem for Windows 10
Log:
linuxuser@desktop:~/IdeaProjects/Schule/obd2-test$ npm install obd2 npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. 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]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. npm ERR! code 1 npm ERR! path /home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport npm ERR! command failed npm ERR! command sh -c node-pre-gyp install --fallback-to-build npm ERR! make: Verzeichnis „/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/build“ wird betreten npm ERR! CXX(target) Release/obj.target/serialport/src/serialport.o npm ERR! make: Verzeichnis „/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/build“ wird betreten npm ERR! CXX(target) Release/obj.target/serialport/src/serialport.o npm ERR! make: Verzeichnis „/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/build“ wird verlassen npm ERR! make: Verzeichnis „/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/build“ wird verlassen npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/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 "/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/build/Release/serialport.node" (not found) npm ERR! node-pre-gyp http GET https://github.com/voodootikigod/node-serialport/releases/download/2.1.1/serialport-v2.1.1-node-v83-linux-x64.tar.gz npm ERR! node-pre-gyp http 404 https://github.com/voodootikigod/node-serialport/releases/download/2.1.1/serialport-v2.1.1-node-v83-linux-x64.tar.gz npm ERR! node-pre-gyp ERR! Tried to download(404): https://github.com/voodootikigod/node-serialport/releases/download/2.1.1/serialport-v2.1.1-node-v83-linux-x64.tar.gz npm ERR! node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v83 ABI, glibc) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp http 404 status code downloading tarball https://github.com/voodootikigod/node-serialport/releases/download/2.1.1/serialport-v2.1.1-node-v83-linux-x64.tar.gz npm ERR! node-pre-gyp ERR! Tried to download(undefined): https://github.com/voodootikigod/node-serialport/releases/download/2.1.1/serialport-v2.1.1-node-v83-linux-x64.tar.gz npm ERR! node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v83 ABI, glibc) (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.8.10 found at "/usr/bin/python3" npm ERR! gyp info find Python using Python version 3.8.10 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 '/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/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 '/home/linuxuser/.cache/node-gyp/14.17.5/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/home/linuxuser/.cache/node-gyp/14.17.5', 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=/home/linuxuser/.cache/node-gyp/14.17.5/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/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 '/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/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 '/home/linuxuser/.cache/node-gyp/14.17.5/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/home/linuxuser/.cache/node-gyp/14.17.5', 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=/home/linuxuser/.cache/node-gyp/14.17.5/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/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 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 spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! In file included from ../node_modules/nan/nan.h:194, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’: npm ERR! ../node_modules/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’ npm ERR! 88 | return obj->ForceSet(GetCurrentContext(), key, value, attribs); npm ERR! | ^~~~~~~~ npm ERR! ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array>, uint32_t)’: npm ERR! ../node_modules/nan/nan_maybe_43_inl.h:220:17: error: ‘class v8::Array’ has no member named ‘CloneElementAt’ npm ERR! 220 | return array->CloneElementAt(GetCurrentContext(), index); npm ERR! | ^~~~~~~~~~~~~~ npm ERR! In file included from ../node_modules/nan/nan_converters.h:59, npm ERR! from ../node_modules/nan/nan.h:199, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’: npm ERR! ../node_modules/nan/nan_converters_43_inl.h:15:43: error: cannot convert ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’ npm ERR! 15 | return val->To ## TYPE(GetCurrentContext()); \ npm ERR! | ~~~~~~~~~~~~~~~~~^~ npm ERR! | | npm ERR! | v8::Local<v8::Context> npm ERR! ../node_modules/nan/nan_converters_43_inl.h:18:1: note: in expansion of macro ‘X’ npm ERR! 18 | X(Boolean) npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:37: note: initializing argument 1 of ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ~~~~~~~~~^~~~~~~ npm ERR! In file included from ../node_modules/nan/nan_converters.h:59, npm ERR! from ../node_modules/nan/nan.h:199, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’: npm ERR! ../node_modules/nan/nan_converters_43_inl.h:31:46: error: cannot convert ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’ npm ERR! 31 | return val->NAME ## Value(GetCurrentContext()); \ npm ERR! | ~~~~~~~~~~~~~~~~~^~ npm ERR! | | npm ERR! | v8::Local<v8::Context> npm ERR! ../node_modules/nan/nan_converters_43_inl.h:34:1: note: in expansion of macro ‘X’ npm ERR! 34 | X(bool, Boolean) npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2858:30: note: initializing argument 1 of ‘bool v8::Value::BooleanValue(v8::Isolate*) const’ npm ERR! 2858 | bool BooleanValue(Isolate* isolate) const; npm ERR! | ~~~~~~~~~^~~~~~~ npm ERR! In file included from ../node_modules/nan/nan.h:194, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’: npm ERR! ../node_modules/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’ npm ERR! 88 | return obj->ForceSet(GetCurrentContext(), key, value, attribs); npm ERR! | ^~~~~~~~ npm ERR! In file included from ../node_modules/nan/nan_new.h:189, npm ERR! from ../node_modules/nan/nan.h:200, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::BooleanObject>::return_t Nan::imp::Factory<v8::BooleanObject>::New(bool)’: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:40:38: error: no matching function for call to ‘v8::BooleanObject::New(bool&)’ npm ERR! 40 | return v8::BooleanObject::New(value).As<v8::BooleanObject>(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:5838:23: note: candidate: ‘static v8::Local<v8::Value> v8::BooleanObject::New(v8::Isolate*, bool)’ npm ERR! 5838 | static Local<Value> New(Isolate* isolate, bool value); npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:5838:23: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../node_modules/nan/nan_new.h:189, npm ERR! from ../node_modules/nan/nan.h:200, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:40:60: error: expected primary-expression before ‘>’ token npm ERR! 40 | return v8::BooleanObject::New(value).As<v8::BooleanObject>(); npm ERR! | ^ npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:40:62: error: expected primary-expression before ‘)’ token npm ERR! 40 | return v8::BooleanObject::New(value).As<v8::BooleanObject>(); npm ERR! | ^ npm ERR! ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array>, uint32_t)’: npm ERR! ../node_modules/nan/nan_maybe_43_inl.h:220:17: error: ‘class v8::Array’ has no member named ‘CloneElementAt’ npm ERR! 220 | return array->CloneElementAt(GetCurrentContext(), index); npm ERR! | ^~~~~~~~~~~~~~ npm ERR! In file included from ../node_modules/nan/nan_converters.h:59, npm ERR! from ../node_modules/nan/nan.h:199, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’: npm ERR! ../node_modules/nan/nan_converters_43_inl.h:15:43: error: cannot convert ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’ npm ERR! 15 | return val->To ## TYPE(GetCurrentContext()); \ npm ERR! | ~~~~~~~~~~~~~~~~~^~ npm ERR! | | npm ERR! | v8::Local<v8::Context> npm ERR! ../node_modules/nan/nan_converters_43_inl.h:18:1: note: in expansion of macro ‘X’ npm ERR! 18 | X(Boolean) npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:37: note: initializing argument 1 of ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ~~~~~~~~~^~~~~~~ npm ERR! ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:102:42: error: cannot convert ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’ npm ERR! 102 | return scope.Escape(v8::Function::New( isolate npm ERR! | ^~~~~~~ npm ERR! | | npm ERR! | v8::Isolate* npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:4446:22: note: initializing argument 1 of ‘static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)’ npm ERR! 4446 | Local<Context> context, FunctionCallback callback, npm ERR! | ~~~~~~~~~~~~~~~^~~~~~~ npm ERR! In file included from ../node_modules/nan/nan_converters.h:59, npm ERR! from ../node_modules/nan/nan.h:199, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’: npm ERR! ../node_modules/nan/nan_converters_43_inl.h:31:46: error: cannot convert ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’ npm ERR! 31 | return val->NAME ## Value(GetCurrentContext()); \ npm ERR! | ~~~~~~~~~~~~~~~~~^~ npm ERR! | | npm ERR! | v8::Local<v8::Context> npm ERR! ../node_modules/nan/nan_converters_43_inl.h:34:1: note: in expansion of macro ‘X’ npm ERR! 34 | X(bool, Boolean) npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2858:30: note: initializing argument 1 of ‘bool v8::Value::BooleanValue(v8::Isolate*) const’ npm ERR! 2858 | bool BooleanValue(Isolate* isolate) const; npm ERR! | ~~~~~~~~~^~~~~~~ npm ERR! In file included from ../node_modules/nan/nan_new.h:189, npm ERR! from ../node_modules/nan/nan.h:200, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:340:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’ npm ERR! 340 | return v8::StringObject::New(value).As<v8::StringObject>(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:5854:23: note: candidate: ‘static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)’ npm ERR! 5854 | static Local<Value> New(Isolate* isolate, Local<String> value); npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:5854:23: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../node_modules/nan/nan_new.h:189, npm ERR! from ../node_modules/nan/nan.h:200, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:340:58: error: expected primary-expression before ‘>’ token npm ERR! 340 | return v8::StringObject::New(value).As<v8::StringObject>(); npm ERR! | ^ npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:340:60: error: expected primary-expression before ‘)’ token npm ERR! 340 | return v8::StringObject::New(value).As<v8::StringObject>(); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan_new.h:189, npm ERR! from ../node_modules/nan/nan.h:200, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::BooleanObject>::return_t Nan::imp::Factory<v8::BooleanObject>::New(bool)’: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:40:38: error: no matching function for call to ‘v8::BooleanObject::New(bool&)’ npm ERR! 40 | return v8::BooleanObject::New(value).As<v8::BooleanObject>(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:5838:23: note: candidate: ‘static v8::Local<v8::Value> v8::BooleanObject::New(v8::Isolate*, bool)’ npm ERR! 5838 | static Local<Value> New(Isolate* isolate, bool value); npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:5838:23: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../node_modules/nan/nan_new.h:189, npm ERR! from ../node_modules/nan/nan.h:200, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:40:60: error: expected primary-expression before ‘>’ token npm ERR! 40 | return v8::BooleanObject::New(value).As<v8::BooleanObject>(); npm ERR! | ^ npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:40:62: error: expected primary-expression before ‘)’ token npm ERR! 40 | return v8::BooleanObject::New(value).As<v8::BooleanObject>(); npm ERR! | ^ npm ERR! ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:102:42: error: cannot convert ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’ npm ERR! 102 | return scope.Escape(v8::Function::New( isolate npm ERR! | ^~~~~~~ npm ERR! | | npm ERR! | v8::Isolate* npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:4446:22: note: initializing argument 1 of ‘static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)’ npm ERR! 4446 | Local<Context> context, FunctionCallback callback, npm ERR! | ~~~~~~~~~~~~~~~^~~~~~~ npm ERR! In file included from ../node_modules/nan/nan_new.h:189, npm ERR! from ../node_modules/nan/nan.h:200, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:340:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’ npm ERR! 340 | return v8::StringObject::New(value).As<v8::StringObject>(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:5854:23: note: candidate: ‘static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)’ npm ERR! 5854 | static Local<Value> New(Isolate* isolate, Local<String> value); npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:5854:23: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../node_modules/nan/nan_new.h:189, npm ERR! from ../node_modules/nan/nan.h:200, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:340:58: error: expected primary-expression before ‘>’ token npm ERR! 340 | return v8::StringObject::New(value).As<v8::StringObject>(); npm ERR! | ^ npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:340:60: error: expected primary-expression before ‘)’ token npm ERR! 340 | return v8::StringObject::New(value).As<v8::StringObject>(); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’: npm ERR! ../node_modules/nan/nan.h:821:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 821 | v8::Isolate::GetCurrent(), target, func, argc, argv); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:191:50: note: declared here npm ERR! 191 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:821:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 821 | v8::Isolate::GetCurrent(), target, func, argc, argv); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:191:50: note: declared here npm ERR! 191 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’: npm ERR! ../node_modules/nan/nan.h:835:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 835 | v8::Isolate::GetCurrent(), target, symbol, argc, argv); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:184:50: note: declared here npm ERR! 184 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:835:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 835 | v8::Isolate::GetCurrent(), target, symbol, argc, argv); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:184:50: note: declared here npm ERR! 184 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’: npm ERR! ../node_modules/nan/nan.h:849:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 849 | v8::Isolate::GetCurrent(), target, method, argc, argv); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:177:50: note: declared here npm ERR! 177 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:849:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 849 | v8::Isolate::GetCurrent(), target, method, argc, argv); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:177:50: note: declared here npm ERR! 177 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’: npm ERR! ../node_modules/nan/nan.h:894:53: error: no matching function for call to ‘v8::Value::ToString()’ npm ERR! 894 | v8::Local<v8::String> string = from->ToString(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ npm ERR! 2810 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate expects 1 argument, 0 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:904:37: error: cannot convert ‘char*’ to ‘v8::Isolate*’ npm ERR! 904 | length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags); npm ERR! | ^~~~ npm ERR! | | npm ERR! | char* npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3037:26: note: initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ npm ERR! 3037 | int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, npm ERR! | ~~~~~~~~~^~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘bool Nan::Callback::operator==(const Nan::Callback&) const’: npm ERR! ../node_modules/nan/nan.h:1375:61: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! 1375 | v8::Local<v8::Value> a = New(handle)->Get(kCallbackIndex); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:1376:67: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! 1376 | v8::Local<v8::Value> b = New(other.handle)->Get(kCallbackIndex); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Function> Nan::Callback::GetFunction() const’: npm ERR! ../node_modules/nan/nan.h:1407:56: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! 1407 | return scope.Escape(New(handle)->Get(kCallbackIndex) npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:1408:25: error: expected primary-expression before ‘>’ token npm ERR! 1408 | .As<v8::Function>()); npm ERR! | ^ npm ERR! ../node_modules/nan/nan.h:1408:27: error: expected primary-expression before ‘)’ token npm ERR! 1408 | .As<v8::Function>()); npm ERR! | ^ npm ERR! ../node_modules/nan/nan.h: In member function ‘bool Nan::Callback::IsEmpty() const’: npm ERR! ../node_modules/nan/nan.h:1413:43: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! 1413 | return New(handle)->Get(kCallbackIndex)->IsUndefined(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’: npm ERR! ../node_modules/nan/nan.h:1451:27: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! 1451 | Get(kCallbackIndex).As<v8::Function>(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:1451:44: error: expected primary-expression before ‘>’ token npm ERR! 1451 | Get(kCallbackIndex).As<v8::Function>(); npm ERR! | ^ npm ERR! ../node_modules/nan/nan.h:1451:46: error: expected primary-expression before ‘)’ token npm ERR! 1451 | Get(kCallbackIndex).As<v8::Function>(); npm ERR! | ^ npm ERR! ../node_modules/nan/nan.h:1467:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 1467 | )); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:191:50: note: declared here npm ERR! 191 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:1467:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 1467 | )); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:191:50: note: declared here npm ERR! 191 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’: npm ERR! ../node_modules/nan/nan.h:1522:64: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, const v8::Local<v8::Value>&)’ npm ERR! 1522 | New(persistentHandle)->Set(New(key).ToLocalChecked(), value); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! 3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’: npm ERR! ../node_modules/nan/nan.h:821:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 821 | v8::Isolate::GetCurrent(), target, func, argc, argv); npm ERR! | ^ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! 3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:191:50: note: declared here npm ERR! 191 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:821:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 821 | v8::Isolate::GetCurrent(), target, func, argc, argv); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:191:50: note: declared here npm ERR! 191 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’: npm ERR! ../node_modules/nan/nan.h:1528:42: error: no matching function for call to ‘v8::Object::Set(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’ npm ERR! 1528 | New(persistentHandle)->Set(key, value); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! 3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! 3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’: npm ERR! ../node_modules/nan/nan.h:835:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 835 | v8::Isolate::GetCurrent(), target, symbol, argc, argv); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’: npm ERR! ../node_modules/nan/nan.h:1534:44: error: no matching function for call to ‘v8::Object::Set(uint32_t&, const v8::Local<v8::Value>&)’ npm ERR! 1534 | New(persistentHandle)->Set(index, value); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:184:50: note: declared here npm ERR! 184 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! 3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! 3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:835:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 835 | v8::Isolate::GetCurrent(), target, symbol, argc, argv); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:184:50: note: declared here npm ERR! 184 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’: npm ERR! ../node_modules/nan/nan.h:1540:61: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’ npm ERR! 1540 | New(persistentHandle)->Get(New(key).ToLocalChecked())); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’: npm ERR! ../node_modules/nan/nan.h:849:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 849 | v8::Isolate::GetCurrent(), target, method, argc, argv); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:177:50: note: declared here npm ERR! 177 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:849:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 849 | v8::Isolate::GetCurrent(), target, method, argc, argv); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:177:50: note: declared here npm ERR! 177 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’: npm ERR! ../node_modules/nan/nan.h:1546:55: error: no matching function for call to ‘v8::Object::Get(const v8::Local<v8::String>&)’ npm ERR! 1546 | return scope.Escape(New(persistentHandle)->Get(key)); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’: npm ERR! ../node_modules/nan/nan.h:1551:57: error: no matching function for call to ‘v8::Object::Get(uint32_t&)’ npm ERR! 1551 | return scope.Escape(New(persistentHandle)->Get(index)); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’: npm ERR! ../node_modules/nan/nan.h:894:53: error: no matching function for call to ‘v8::Value::ToString()’ npm ERR! 894 | v8::Local<v8::String> string = from->ToString(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ npm ERR! 2810 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate expects 1 argument, 0 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:904:37: error: cannot convert ‘char*’ to ‘v8::Isolate*’ npm ERR! 904 | length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags); npm ERR! | ^~~~ npm ERR! | | npm ERR! | char* npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3037:26: note: initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ npm ERR! 3037 | int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, npm ERR! | ~~~~~~~~~^~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘bool Nan::Callback::operator==(const Nan::Callback&) const’: npm ERR! ../node_modules/nan/nan.h:1375:61: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! 1375 | v8::Local<v8::Value> a = New(handle)->Get(kCallbackIndex); npm ERR! | ^ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: npm ERR! ../node_modules/nan/nan.h:1707:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 1707 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:1376:67: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! 1376 | v8::Local<v8::Value> b = New(other.handle)->Get(kCallbackIndex); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Function> Nan::Callback::GetFunction() const’: npm ERR! ../node_modules/nan/nan.h:1407:56: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! 1407 | return scope.Escape(New(handle)->Get(kCallbackIndex) npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:1408:25: error: expected primary-expression before ‘>’ token npm ERR! 1408 | .As<v8::Function>()); npm ERR! | ^ npm ERR! ../node_modules/nan/nan.h:1408:27: error: expected primary-expression before ‘)’ token npm ERR! 1408 | .As<v8::Function>()); npm ERR! | ^ npm ERR! ../node_modules/nan/nan.h: In member function ‘bool Nan::Callback::IsEmpty() const’: npm ERR! ../node_modules/nan/nan.h:1413:43: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! 1413 | return New(handle)->Get(kCallbackIndex)->IsUndefined(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’: npm ERR! ../node_modules/nan/nan.h:1451:27: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! 1451 | Get(kCallbackIndex).As<v8::Function>(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:1451:44: error: expected primary-expression before ‘>’ token npm ERR! 1451 | Get(kCallbackIndex).As<v8::Function>(); npm ERR! | ^ npm ERR! ../node_modules/nan/nan.h:1451:46: error: expected primary-expression before ‘)’ token npm ERR! 1451 | Get(kCallbackIndex).As<v8::Function>(); npm ERR! | ^ npm ERR! ../node_modules/nan/nan.h:1467:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 1467 | )); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:191:50: note: declared here npm ERR! 191 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h:1467:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] npm ERR! 1467 | )); npm ERR! | ^ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:191:50: note: declared here npm ERR! 191 | NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! | ^~~~~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! 108 | __attribute__((deprecated(message))) declarator npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’: npm ERR! ../node_modules/nan/nan.h:1522:64: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, const v8::Local<v8::Value>&)’ npm ERR! 1522 | New(persistentHandle)->Set(New(key).ToLocalChecked(), value); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! 3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! 3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’: npm ERR! ../node_modules/nan/nan.h:1528:42: error: no matching function for call to ‘v8::Object::Set(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’ npm ERR! 1528 | New(persistentHandle)->Set(key, value); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! 3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! 3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’: npm ERR! ../node_modules/nan/nan.h:1534:44: error: no matching function for call to ‘v8::Object::Set(uint32_t&, const v8::Local<v8::Value>&)’ npm ERR! 1534 | New(persistentHandle)->Set(index, value); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! 3670 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3670:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! 3673 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3673:37: note: candidate expects 3 arguments, 2 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’: npm ERR! ../node_modules/nan/nan.h:1540:61: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’ npm ERR! 1540 | New(persistentHandle)->Get(New(key).ToLocalChecked())); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’: npm ERR! ../node_modules/nan/nan.h:1546:55: error: no matching function for call to ‘v8::Object::Get(const v8::Local<v8::String>&)’ npm ERR! 1546 | return scope.Escape(New(persistentHandle)->Get(key)); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’: npm ERR! ../node_modules/nan/nan.h:1551:57: error: no matching function for call to ‘v8::Object::Get(uint32_t&)’ npm ERR! 1551 | return scope.Escape(New(persistentHandle)->Get(index)); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! 3717 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3717:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! 3720 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! | ^~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3720:43: note: candidate expects 2 arguments, 1 provided npm ERR! ../node_modules/nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’: npm ERR! ../node_modules/nan/nan.h:1957:7: error: cannot convert ‘Nan::imp::NativeGetter’ {aka ‘void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)’} to ‘v8::Local<v8::Name>’ npm ERR! 1957 | , getter_ npm ERR! | ^~~~~~~ npm ERR! | | npm ERR! | Nan::imp::NativeGetter {aka void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)} npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3767:43: note: initializing argument 2 of ‘v8::Maybe<bool> v8::Object::SetAccessor(v8::Local<v8::Context>, v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::MaybeLocal<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’ npm ERR! 3767 | Local<Context> context, Local<Name> name, npm ERR! | ~~~~~~~~~~~~^~~~ npm ERR! In file included from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: npm ERR! ../node_modules/nan/nan.h:1707:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] npm ERR! 1707 | , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) npm ERR! | ^ npm ERR! In file included from /usr/include/c++/9/cassert:44, npm ERR! from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node_object_wrap.h:26, npm ERR! from ../node_modules/nan/nan.h:47, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’: npm ERR! ../node_modules/nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’ npm ERR! 24 | assert(persistent().IsNearDeath()); npm ERR! | ^~~~~~~~~~~ npm ERR! In file included from ../node_modules/nan/nan.h:2153, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’: npm ERR! ../node_modules/nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’ npm ERR! 67 | persistent().MarkIndependent(); npm ERR! | ^~~~~~~~~~~~~~~ npm ERR! In file included from /usr/include/c++/9/cassert:44, npm ERR! from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node_object_wrap.h:26, npm ERR! from ../node_modules/nan/nan.h:47, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’: npm ERR! ../node_modules/nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’ npm ERR! 124 | assert(wrap->handle_.IsNearDeath()); npm ERR! | ^~~~~~~~~~~ npm ERR! ../node_modules/nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’: npm ERR! ../node_modules/nan/nan.h:1957:7: error: cannot convert ‘Nan::imp::NativeGetter’ {aka ‘void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)’} to ‘v8::Local<v8::Name>’ npm ERR! 1957 | , getter_ npm ERR! | ^~~~~~~ npm ERR! | | npm ERR! | Nan::imp::NativeGetter {aka void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)} npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:3767:43: note: initializing argument 2 of ‘v8::Maybe<bool> v8::Object::SetAccessor(v8::Local<v8::Context>, v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::MaybeLocal<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’ npm ERR! 3767 | Local<Context> context, Local<Name> name, npm ERR! | ~~~~~~~~~~~~^~~~ npm ERR! In file included from /usr/include/c++/9/cassert:44, npm ERR! from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node_object_wrap.h:26, npm ERR! from ../node_modules/nan/nan.h:47, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’: npm ERR! ../node_modules/nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’ npm ERR! 24 | assert(persistent().IsNearDeath()); npm ERR! | ^~~~~~~~~~~ npm ERR! In file included from ../node_modules/nan/nan.h:2153, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’: npm ERR! ../node_modules/nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’ npm ERR! 67 | persistent().MarkIndependent(); npm ERR! | ^~~~~~~~~~~~~~~ npm ERR! In file included from /usr/include/c++/9/cassert:44, npm ERR! from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node_object_wrap.h:26, npm ERR! from ../node_modules/nan/nan.h:47, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../node_modules/nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’: npm ERR! ../node_modules/nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’ npm ERR! 124 | assert(wrap->handle_.IsNearDeath()); npm ERR! | ^~~~~~~~~~~ npm ERR! In file included from ../src/serialport.cpp:6: npm ERR! ../src/./serialport_poller.h: At global scope: npm ERR! ../src/./serialport_poller.h:13:24: error: ‘v8::Handle’ has not been declared npm ERR! 13 | static void Init(v8::Handle<v8::Object> target); npm ERR! | ^~~~~~ npm ERR! ../src/./serialport_poller.h:13:30: error: expected ‘,’ or ‘...’ before ‘<’ token npm ERR! 13 | static void Init(v8::Handle<v8::Object> target); npm ERR! | ^ npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:90:48: error: no matching function for call to ‘v8::Value::ToString()’ npm ERR! 90 | v8::String::Utf8Value path(info[0]->ToString()); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ npm ERR! 2810 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:97:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 97 | v8::Local<v8::Object> options = info[1]->ToObject(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:109:116: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 109 | baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:110:116: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 110 | baton->dataBits = Nan::Get(options, Nan::New<v8::String>("dataBits").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:111:120: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 111 | baton->bufferSize = Nan::Get(options, Nan::New<v8::String>("bufferSize").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:112:126: error: no matching function for call to ‘v8::Value::ToString()’ npm ERR! 112 | baton->parity = ToParityEnum(Nan::Get(options, Nan::New<v8::String>("parity").ToLocalChecked()).ToLocalChecked()->ToString()); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ npm ERR! 2810 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:113:131: error: no matching function for call to ‘v8::Value::ToNumber()’ npm ERR! 113 | baton->stopBits = ToStopBitEnum(Nan::Get(options, Nan::New<v8::String>("stopBits").ToLocalChecked()).ToLocalChecked()->ToNumber()->NumberValue()); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2805:44: note: candidate: ‘v8::MaybeLocal<v8::Number> v8::Value::ToNumber(v8::Local<v8::Context>) const’ npm ERR! 2805 | V8_WARN_UNUSED_RESULT MaybeLocal<Number> ToNumber( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2805:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:114:114: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 114 | baton->rtscts = Nan::Get(options, Nan::New<v8::String>("rtscts").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:115:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 115 | baton->xon = Nan::Get(options, Nan::New<v8::String>("xon").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:116:110: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 116 | baton->xoff = Nan::Get(options, Nan::New<v8::String>("xoff").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:117:110: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 117 | baton->xany = Nan::Get(options, Nan::New<v8::String>("xany").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:118:112: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 118 | baton->hupcl = Nan::Get(options, Nan::New<v8::String>("hupcl").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:120:146: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 120 | v8::Local<v8::Object> platformOptions = Nan::Get(options, Nan::New<v8::String>("platformOptions").ToLocalChecked()).ToLocalChecked()->ToObject(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:131:69: 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! 131 | uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen); npm ERR! | ^~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’: npm ERR! ../src/serialport.cpp:153:31: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 153 | int fd = argv[1]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:173:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 173 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:180:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 180 | v8::Local<v8::Object> options = info[1]->ToObject(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:192:116: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 192 | baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:193:116: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 193 | baton->dataBits = Nan::Get(options, Nan::New<v8::String>("dataBits").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:194:120: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 194 | baton->bufferSize = Nan::Get(options, Nan::New<v8::String>("bufferSize").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:195:126: error: no matching function for call to ‘v8::Value::ToString()’ npm ERR! 195 | baton->parity = ToParityEnum(Nan::Get(options, Nan::New<v8::String>("parity").ToLocalChecked()).ToLocalChecked()->ToString()); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ npm ERR! 2810 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:196:131: error: no matching function for call to ‘v8::Value::ToNumber()’ npm ERR! 196 | baton->stopBits = ToStopBitEnum(Nan::Get(options, Nan::New<v8::String>("stopBits").ToLocalChecked()).ToLocalChecked()->ToNumber()->NumberValue()); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2805:44: note: candidate: ‘v8::MaybeLocal<v8::Number> v8::Value::ToNumber(v8::Local<v8::Context>) const’ npm ERR! 2805 | V8_WARN_UNUSED_RESULT MaybeLocal<Number> ToNumber( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2805:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:197:114: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 197 | baton->rtscts = Nan::Get(options, Nan::New<v8::String>("rtscts").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:198:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 198 | baton->xon = Nan::Get(options, Nan::New<v8::String>("xon").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:199:110: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 199 | baton->xoff = Nan::Get(options, Nan::New<v8::String>("xoff").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:200:110: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 200 | baton->xany = Nan::Get(options, Nan::New<v8::String>("xany").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:202:146: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 202 | v8::Local<v8::Object> platformOptions = Nan::Get(options, Nan::New<v8::String>("platformOptions").ToLocalChecked()).ToLocalChecked()->ToObject(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:213:71: 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! 213 | 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:236:31: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 236 | int fd = argv[1]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:256:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 256 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:263:52: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 263 | v8::Local<v8::Object> buffer = info[1]->ToObject(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:275:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct WriteBaton’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] npm ERR! 275 | memset(baton, 0, sizeof(WriteBaton)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:89:8: note: ‘struct WriteBaton’ declared here npm ERR! 89 | struct WriteBaton { npm ERR! | ^~~~~~~~~~ npm ERR! In file included from ../src/serialport.cpp:6: npm ERR! ../src/./serialport_poller.h: At global scope: npm ERR! ../src/./serialport_poller.h:13:24: error: ‘v8::Handle’ has not been declared npm ERR! 13 | static void Init(v8::Handle<v8::Object> target); npm ERR! | ^~~~~~ npm ERR! ../src/./serialport_poller.h:13:30: error: expected ‘,’ or ‘...’ before ‘<’ token npm ERR! 13 | static void Init(v8::Handle<v8::Object> target); npm ERR! | ^ npm ERR! ../src/serialport.cpp:284: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! 284 | memset(queuedWrite, 0, sizeof(QueuedWrite)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:100:8: note: ‘struct QueuedWrite’ declared here npm ERR! 100 | struct QueuedWrite { npm ERR! | ^~~~~~~~~~~ npm ERR! ../src/serialport.cpp:301:86: 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! 301 | 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:329: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! 329 | uv_queue_work(uv_default_loop(), req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite); npm ERR! | ^~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp:350:90: 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! 350 | 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 Open(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:90:48: error: no matching function for call to ‘v8::Value::ToString()’ npm ERR! 90 | v8::String::Utf8Value path(info[0]->ToString()); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ npm ERR! 2810 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:97:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 97 | v8::Local<v8::Object> options = info[1]->ToObject(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:366:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 366 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:109:116: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 109 | baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! ../src/serialport.cpp:382:70: 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! 382 | uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose); npm ERR! | ^~~~~~~~~~~~~~ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:110:116: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 110 | baton->dataBits = Nan::Get(options, Nan::New<v8::String>("dataBits").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:111:120: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 111 | baton->bufferSize = Nan::Get(options, Nan::New<v8::String>("bufferSize").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:112:126: error: no matching function for call to ‘v8::Value::ToString()’ npm ERR! 112 | baton->parity = ToParityEnum(Nan::Get(options, Nan::New<v8::String>("parity").ToLocalChecked()).ToLocalChecked()->ToString()); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ npm ERR! 2810 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:113:131: error: no matching function for call to ‘v8::Value::ToNumber()’ npm ERR! 113 | baton->stopBits = ToStopBitEnum(Nan::Get(options, Nan::New<v8::String>("stopBits").ToLocalChecked()).ToLocalChecked()->ToNumber()->NumberValue()); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2805:44: note: candidate: ‘v8::MaybeLocal<v8::Number> v8::Value::ToNumber(v8::Local<v8::Context>) const’ npm ERR! 2805 | V8_WARN_UNUSED_RESULT MaybeLocal<Number> ToNumber( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2805:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:114:114: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 114 | baton->rtscts = Nan::Get(options, Nan::New<v8::String>("rtscts").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:115:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 115 | baton->xon = Nan::Get(options, Nan::New<v8::String>("xon").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:116:110: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 116 | baton->xoff = Nan::Get(options, Nan::New<v8::String>("xoff").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:117:110: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 117 | baton->xany = Nan::Get(options, Nan::New<v8::String>("xany").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:118:112: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 118 | baton->hupcl = Nan::Get(options, Nan::New<v8::String>("hupcl").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:120:146: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 120 | v8::Local<v8::Object> platformOptions = Nan::Get(options, Nan::New<v8::String>("platformOptions").ToLocalChecked()).ToLocalChecked()->ToObject(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE List(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:435:69: 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! 435 | uv_queue_work(uv_default_loop(), req, EIO_List, (uv_after_work_cb)EIO_AfterList); npm ERR! | ^~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp:131:69: 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! 131 | uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen); npm ERR! | ^~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’: npm ERR! ../src/serialport.cpp:153:31: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 153 | int fd = argv[1]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:173:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 173 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:180:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 180 | v8::Local<v8::Object> options = info[1]->ToObject(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:192:116: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 192 | baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:193:116: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 193 | baton->dataBits = Nan::Get(options, Nan::New<v8::String>("dataBits").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:194:120: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 194 | baton->bufferSize = Nan::Get(options, Nan::New<v8::String>("bufferSize").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:195:126: error: no matching function for call to ‘v8::Value::ToString()’ npm ERR! 195 | baton->parity = ToParityEnum(Nan::Get(options, Nan::New<v8::String>("parity").ToLocalChecked()).ToLocalChecked()->ToString()); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ npm ERR! 2810 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2810:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:196:131: error: no matching function for call to ‘v8::Value::ToNumber()’ npm ERR! 196 | baton->stopBits = ToStopBitEnum(Nan::Get(options, Nan::New<v8::String>("stopBits").ToLocalChecked()).ToLocalChecked()->ToNumber()->NumberValue()); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2805:44: note: candidate: ‘v8::MaybeLocal<v8::Number> v8::Value::ToNumber(v8::Local<v8::Context>) const’ npm ERR! 2805 | V8_WARN_UNUSED_RESULT MaybeLocal<Number> ToNumber( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2805:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:197:114: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 197 | baton->rtscts = Nan::Get(options, Nan::New<v8::String>("rtscts").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:198:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 198 | baton->xon = Nan::Get(options, Nan::New<v8::String>("xon").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:199:110: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 199 | baton->xoff = Nan::Get(options, Nan::New<v8::String>("xoff").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:200:110: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 200 | baton->xany = Nan::Get(options, Nan::New<v8::String>("xany").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:202:146: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 202 | v8::Local<v8::Object> platformOptions = Nan::Get(options, Nan::New<v8::String>("platformOptions").ToLocalChecked()).ToLocalChecked()->ToObject(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:518:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 518 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:213:71: 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! 213 | uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate); npm ERR! | ^~~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp:534:70: 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! 534 | 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_AfterUpdate(uv_work_t*)’: npm ERR! ../src/serialport.cpp:236:31: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 236 | int fd = argv[1]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:256:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 256 | int fd = info[0]->ToInt32()->Int32Value(); 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:566:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 566 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:573:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 573 | v8::Local<v8::Object> options = info[1]->ToObject(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:263:52: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 263 | v8::Local<v8::Object> buffer = info[1]->ToObject(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:586:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 586 | baton->brk = Nan::Get(options, Nan::New<v8::String>("brk").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:275:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct WriteBaton’ with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] npm ERR! 275 | memset(baton, 0, sizeof(WriteBaton)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:89:8: note: ‘struct WriteBaton’ declared here npm ERR! 89 | struct WriteBaton { npm ERR! | ^~~~~~~~~~ npm ERR! ../src/serialport.cpp:587:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 587 | baton->rts = Nan::Get(options, Nan::New<v8::String>("rts").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:588:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 588 | baton->cts = Nan::Get(options, Nan::New<v8::String>("cts").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:284: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! 284 | memset(queuedWrite, 0, sizeof(QueuedWrite)); npm ERR! | ^ npm ERR! In file included from ../src/serialport.cpp:1: npm ERR! ../src/./serialport.h:100:8: note: ‘struct QueuedWrite’ declared here npm ERR! 100 | struct QueuedWrite { npm ERR! | ^~~~~~~~~~~ npm ERR! ../src/serialport.cpp:589:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 589 | baton->dtr = Nan::Get(options, Nan::New<v8::String>("dtr").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:301:86: 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! 301 | uv_queue_work(uv_default_loop(), &queuedWrite->req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite); npm ERR! | ^~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp:590:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 590 | baton->dsr = Nan::Get(options, Nan::New<v8::String>("dsr").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:594: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! 594 | 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_AfterWrite(uv_work_t*)’: npm ERR! ../src/serialport.cpp:329: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! 329 | uv_queue_work(uv_default_loop(), req, EIO_Write, (uv_after_work_cb)EIO_AfterWrite); npm ERR! | ^~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp:350:90: 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! 350 | 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 Drain(Nan::NAN_METHOD_ARGS_TYPE)’: npm ERR! ../src/serialport.cpp:626:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 626 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:642:70: 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! 642 | uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain); 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:366:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 366 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:382:70: 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! 382 | uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose); npm ERR! | ^~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: At global scope: npm ERR! ../src/serialport.cpp:669:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses] npm ERR! 669 | SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) { npm ERR! | ^ npm ERR! ../src/serialport.cpp:690:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses] npm ERR! 690 | SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) { npm ERR! | ^ npm ERR! ../src/serialport.cpp:701:17: error: variable or field ‘init’ declared void npm ERR! 701 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^~~~~~ npm ERR! ../src/serialport.cpp:701:17: error: ‘Handle’ is not a member of ‘v8’; did you mean ‘JobHandle’? npm ERR! 701 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^~~~~~ npm ERR! | JobHandle npm ERR! ../src/serialport.cpp:701:34: error: expected primary-expression before ‘>’ token npm ERR! 701 | void init(v8::Handle<v8::Object> target) { 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:435:69: 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! 435 | uv_queue_work(uv_default_loop(), req, EIO_List, (uv_after_work_cb)EIO_AfterList); npm ERR! | ^~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp:701:36: error: ‘target’ was not declared in this scope npm ERR! 701 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^~~~~~ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../src/serialport.cpp:718:25: error: ‘init’ was not declared in this scope; did you mean ‘int’? npm ERR! 718 | NODE_MODULE(serialport, init); npm ERR! | ^~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:758:36: note: in definition of macro ‘NODE_MODULE_X’ npm ERR! 758 | (node::addon_register_func) (regfunc), \ npm ERR! | ^~~~~~~ npm ERR! ../src/serialport.cpp:718:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! 718 | NODE_MODULE(serialport, init); 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:518:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 518 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:534:70: 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! 534 | uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush); 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:566:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 566 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:573:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! 573 | v8::Local<v8::Object> options = info[1]->ToObject(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! 2822 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! | ^~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:586:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 586 | baton->brk = Nan::Get(options, Nan::New<v8::String>("brk").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:587:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 587 | baton->rts = Nan::Get(options, Nan::New<v8::String>("rts").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:588:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 588 | baton->cts = Nan::Get(options, Nan::New<v8::String>("cts").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:589:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 589 | baton->dtr = Nan::Get(options, Nan::New<v8::String>("dtr").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:590:108: error: no matching function for call to ‘v8::Value::ToBoolean()’ npm ERR! 590 | baton->dsr = Nan::Get(options, Nan::New<v8::String>("dsr").ToLocalChecked()).ToLocalChecked()->ToBoolean()->BooleanValue(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! 2848 | Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! | ^~~~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2848:18: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:594: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! 594 | uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet); 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:626:29: error: no matching function for call to ‘v8::Value::ToInt32()’ npm ERR! 626 | int fd = info[0]->ToInt32()->Int32Value(); npm ERR! | ^ npm ERR! In file included from /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:67, npm ERR! from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate: ‘v8::MaybeLocal<v8::Int32> v8::Value::ToInt32(v8::Local<v8::Context>) const’ npm ERR! 2843 | V8_WARN_UNUSED_RESULT MaybeLocal<Int32> ToInt32(Local<Context> context) const; npm ERR! | ^~~~~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/v8.h:2843:43: note: candidate expects 1 argument, 0 provided npm ERR! ../src/serialport.cpp:642:70: 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! 642 | uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain); npm ERR! | ^~~~~~~~~~~~~~ npm ERR! ../src/serialport.cpp: At global scope: npm ERR! ../src/serialport.cpp:669:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses] npm ERR! 669 | SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) { npm ERR! | ^ npm ERR! ../src/serialport.cpp:690:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses] npm ERR! 690 | SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) { npm ERR! | ^ npm ERR! ../src/serialport.cpp:701:17: error: variable or field ‘init’ declared void npm ERR! 701 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^~~~~~ npm ERR! ../src/serialport.cpp:701:17: error: ‘Handle’ is not a member of ‘v8’; did you mean ‘JobHandle’? npm ERR! 701 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^~~~~~ npm ERR! | JobHandle npm ERR! ../src/serialport.cpp:701:34: error: expected primary-expression before ‘>’ token npm ERR! 701 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^ npm ERR! ../src/serialport.cpp:701:36: error: ‘target’ was not declared in this scope npm ERR! 701 | void init(v8::Handle<v8::Object> target) { npm ERR! | ^~~~~~ npm ERR! In file included from ../node_modules/nan/nan.h:45, npm ERR! from ../src/./serialport.h:7, npm ERR! from ../src/serialport.cpp:1: npm ERR! ../src/serialport.cpp:718:25: error: ‘init’ was not declared in this scope; did you mean ‘int’? npm ERR! 718 | NODE_MODULE(serialport, init); npm ERR! | ^~~~ npm ERR! /home/linuxuser/.cache/node-gyp/14.17.5/include/node/node.h:758:36: note: in definition of macro ‘NODE_MODULE_X’ npm ERR! 758 | (node::addon_register_func) (regfunc), \ npm ERR! | ^~~~~~~ npm ERR! ../src/serialport.cpp:718:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! 718 | NODE_MODULE(serialport, init); npm ERR! | ^~~~~~~~~~~ npm ERR! make: *** [serialport.target.mk:113: Release/obj.target/serialport/src/serialport.o] Fehler 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:400:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) npm ERR! gyp ERR! System Linux 5.11.0-37-generic npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/build/Release" npm ERR! gyp ERR! cwd /home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport npm ERR! gyp ERR! node -v v14.17.5 npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! gyp ERR! not ok npm ERR! make: *** [serialport.target.mk:113: Release/obj.target/serialport/src/serialport.o] Fehler 1 npm ERR! node-pre-gyp ERR! build error npm ERR! gypnode-pre-gyp ERR!ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/build/Release' (1) npm ERR! node-pre-gyp build errorERR! npm ERR! stack at ChildProcess.<anonymous> (/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29) npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (events.js:400:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1055:16) npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) npm ERR! node-pre-gyp ERR! System Linux 5.11.0-37-generic npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" npm ERR! node-pre-gyp ERR! cwd /home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport npm ERR! node-pre-gyp ERR! node -v v14.17.5 npm ERR! gyp ERR!node-pre-gyp stackERR! Error: `make` failed with exit code: 2 npm ERR! node-pre-gyp -vgyp v0.6.39 npm ERR! ERR!node-pre-gyp stackERR! at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gypnot ok npm ERR! ERR! stack at ChildProcess.emit (events.js:400:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) npm ERR! gyp ERR! System Linux 5.11.0-37-generic npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport/build/Release" npm ERR! gyp ERR! cwd /home/linuxuser/IdeaProjects/Schule/obd2-test/node_modules/obd2/node_modules/serialport npm ERR! gyp ERR! node -v v14.17.5 npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /home/linuxuser/.npm/_logs/2021-10-06T06_30_53_704Z-debug.log
The text was updated successfully, but these errors were encountered:
did you find the issue? its not working with node 18
Sorry, something went wrong.
No branches or pull requests
I can't install it using
npm i obd2
.NodeJs Version: v14.17.5
NPM Version: 7.24.2
OS: Kubuntu, Ubuntu 20.04.3 LTS
I tried to install some things like:
Also tried to install SerialPort using this documentation: https://serialport.io/docs/7.x.x/guide-installation
Even with 9.x.x and 7.x.x.
I also tried to install it using npm like
npm i serialport
.Same issue on Windows 10 for me, also on Ubuntu Subsystem for Windows 10
Log:
The text was updated successfully, but these errors were encountered: