We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I just installed a brand new raspberry pi 4.
I've : raspbian OS 10 node: 16.9.1 npm: 7.21.1
When I run npm i adafruit-i2c-pwm-driver, I get this error:
npm i adafruit-i2c-pwm-driver
pi@arm:~/node-arm $ npm i adafruit-i2c-pwm-driver npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm ERR! code 1 npm ERR! path /home/pi/node-arm/node_modules/i2c npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! make: Entering directory '/home/pi/node-arm/node_modules/i2c/build' npm ERR! CXX(target) Release/obj.target/i2c/src/i2c.o npm ERR! make: Leaving directory '/home/pi/node-arm/node_modules/i2c/build' 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 | arm npm ERR! gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3" npm ERR! (node:1918) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only. npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created) npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/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/pi/node-arm/node_modules/i2c/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/pi/.cache/node-gyp/16.9.1/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/pi/.cache/node-gyp/16.9.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/pi/.cache/node-gyp/16.9.1/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/pi/node-arm/node_modules/i2c', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! In file included from ../../nan/nan.h:190, npm ERR! from ../src/i2c.cc:3: npm ERR! ../../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! ../../nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’ npm ERR! return obj->ForceSet(GetCurrentContext(), key, value, attribs); npm ERR! ^~~~~~~~ npm ERR! In file included from ../../nan/nan_converters.h:59, npm ERR! from ../../nan/nan.h:195, npm ERR! from ../src/i2c.cc:3: npm ERR! ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’: npm ERR! ../../nan/nan_converters_43_inl.h:15:45: error: no matching function for call to ‘v8::Value::ToBoolean(v8::Local<v8::Context>)’ npm ERR! return val->To ## TYPE(GetCurrentContext()); \ npm ERR! ^ npm ERR! ../../nan/nan_converters_43_inl.h:18:1: note: in expansion of macro ‘X’ npm ERR! X(Boolean) npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3086:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’ npm ERR! Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! ^~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3086:18: note: no known conversion for argument 1 from ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’ npm ERR! In file included from ../../nan/nan_converters.h:59, npm ERR! from ../../nan/nan.h:195, npm ERR! from ../src/i2c.cc:3: npm ERR! ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’: npm ERR! ../../nan/nan_converters_43_inl.h:31:48: error: no matching function for call to ‘v8::Value::BooleanValue(v8::Local<v8::Context>)’ npm ERR! return val->NAME ## Value(GetCurrentContext()); \ npm ERR! ^ npm ERR! ../../nan/nan_converters_43_inl.h:34:1: note: in expansion of macro ‘X’ npm ERR! X(bool, Boolean) npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3096:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’ npm ERR! bool BooleanValue(Isolate* isolate) const; npm ERR! ^~~~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3096:8: note: no known conversion for argument 1 from ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’ npm ERR! In file included from ../../nan/nan_new.h:189, npm ERR! from ../../nan/nan.h:196, npm ERR! from ../src/i2c.cc:3: npm ERR! ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’: npm ERR! ../../nan/nan_implementation_12_inl.h:109:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’ npm ERR! , obj)); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4751:31: note: candidate: ‘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! static MaybeLocal<Function> New( npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4751:31: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’ npm ERR! In file included from ../../nan/nan_new.h:189, npm ERR! from ../../nan/nan.h:196, npm ERR! from ../src/i2c.cc:3: npm ERR! ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’: npm ERR! ../../nan/nan_implementation_12_inl.h:345:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’ npm ERR! return v8::StringObject::New(value).As<v8::StringObject>(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:6194:23: note: candidate: ‘static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)’ npm ERR! static Local<Value> New(Isolate* isolate, Local<String> value); npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:6194:23: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../../nan/nan_new.h:189, npm ERR! from ../../nan/nan.h:196, npm ERR! from ../src/i2c.cc:3: npm ERR! ../../nan/nan_implementation_12_inl.h:345:58: error: expected primary-expression before ‘>’ token npm ERR! return v8::StringObject::New(value).As<v8::StringObject>(); npm ERR! ^ npm ERR! ../../nan/nan_implementation_12_inl.h:345:60: error: expected primary-expression before ‘)’ token npm ERR! return v8::StringObject::New(value).As<v8::StringObject>(); npm ERR! ^ npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’: npm ERR! ../../nan/nan.h:817: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! v8::Isolate::GetCurrent(), target, func, argc, argv); npm ERR! ^ npm ERR! In file included from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:184:50: note: declared here npm ERR! NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! ^~~~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! __attribute__((deprecated(message))) declarator npm ERR! ^~~~~~~~~~ npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h:817: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! v8::Isolate::GetCurrent(), target, func, argc, argv); npm ERR! ^ npm ERR! In file included from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:184:50: note: declared here npm ERR! NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! ^~~~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! __attribute__((deprecated(message))) declarator npm ERR! ^~~~~~~~~~ npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’: npm ERR! ../../nan/nan.h:831: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! v8::Isolate::GetCurrent(), target, symbol, argc, argv); npm ERR! ^ npm ERR! In file included from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:177:50: note: declared here npm ERR! NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! ^~~~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! __attribute__((deprecated(message))) declarator npm ERR! ^~~~~~~~~~ npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h:831: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! v8::Isolate::GetCurrent(), target, symbol, argc, argv); npm ERR! ^ npm ERR! In file included from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:177:50: note: declared here npm ERR! NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! ^~~~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! __attribute__((deprecated(message))) declarator npm ERR! ^~~~~~~~~~ npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’: npm ERR! ../../nan/nan.h:845: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! v8::Isolate::GetCurrent(), target, method, argc, argv); npm ERR! ^ npm ERR! In file included from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:170:50: note: declared here npm ERR! NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! ^~~~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! __attribute__((deprecated(message))) declarator npm ERR! ^~~~~~~~~~ npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h:845: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! v8::Isolate::GetCurrent(), target, method, argc, argv); npm ERR! ^ npm ERR! In file included from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:170:50: note: declared here npm ERR! NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! ^~~~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! __attribute__((deprecated(message))) declarator npm ERR! ^~~~~~~~~~ npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’: npm ERR! ../../nan/nan.h:890:53: error: no matching function for call to ‘v8::Value::ToString()’ npm ERR! v8::Local<v8::String> string = from->ToString(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3048:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( npm ERR! ^~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3048:44: note: candidate expects 1 argument, 0 provided npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h:900:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’ npm ERR! length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3277:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ npm ERR! int WriteUtf8(Isolate* isolate, char* buffer, int length = -1, npm ERR! ^~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3277:7: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’ npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In member function ‘bool Nan::Callback::operator==(const Nan::Callback&) const’: npm ERR! ../../nan/nan.h:1371:61: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! v8::Local<v8::Value> a = New(handle)->Get(kCallbackIndex); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h:1372:67: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! v8::Local<v8::Value> b = New(other.handle)->Get(kCallbackIndex); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Function> Nan::Callback::GetFunction() const’: npm ERR! ../../nan/nan.h:1403:56: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! return scope.Escape(New(handle)->Get(kCallbackIndex) npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h:1404:25: error: expected primary-expression before ‘>’ token npm ERR! .As<v8::Function>()); npm ERR! ^ npm ERR! ../../nan/nan.h:1404:27: error: expected primary-expression before ‘)’ token npm ERR! .As<v8::Function>()); npm ERR! ^ npm ERR! ../../nan/nan.h: In member function ‘bool Nan::Callback::IsEmpty() const’: npm ERR! ../../nan/nan.h:1409:43: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! return New(handle)->Get(kCallbackIndex)->IsUndefined(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’: npm ERR! ../../nan/nan.h:1447:27: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’ npm ERR! Get(kCallbackIndex).As<v8::Function>(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h:1447:44: error: expected primary-expression before ‘>’ token npm ERR! Get(kCallbackIndex).As<v8::Function>(); npm ERR! ^ npm ERR! ../../nan/nan.h:1447:46: error: expected primary-expression before ‘)’ token npm ERR! Get(kCallbackIndex).As<v8::Function>(); npm ERR! ^ npm ERR! ../../nan/nan.h:1463: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! )); npm ERR! ^ npm ERR! In file included from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:184:50: note: declared here npm ERR! NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! ^~~~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! __attribute__((deprecated(message))) declarator npm ERR! ^~~~~~~~~~ npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h:1463: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! )); npm ERR! ^ npm ERR! In file included from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:184:50: note: declared here npm ERR! NODE_EXTERN v8::Local<v8::Value> MakeCallback( npm ERR! ^~~~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ npm ERR! __attribute__((deprecated(message))) declarator npm ERR! ^~~~~~~~~~ npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’: npm ERR! ../../nan/nan.h:1518:64: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, const v8::Local<v8::Value>&)’ npm ERR! New(persistentHandle)->Set(New(key).ToLocalChecked(), value); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’: npm ERR! ../../nan/nan.h:1524:42: error: no matching function for call to ‘v8::Object::Set(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’ npm ERR! New(persistentHandle)->Set(key, value); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’: npm ERR! ../../nan/nan.h:1530:44: error: no matching function for call to ‘v8::Object::Set(uint32_t&, const v8::Local<v8::Value>&)’ npm ERR! New(persistentHandle)->Set(index, value); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’: npm ERR! ../../nan/nan.h:1536:61: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’ npm ERR! New(persistentHandle)->Get(New(key).ToLocalChecked())); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’: npm ERR! ../../nan/nan.h:1542:55: error: no matching function for call to ‘v8::Object::Get(const v8::Local<v8::String>&)’ npm ERR! return scope.Escape(New(persistentHandle)->Get(key)); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’: npm ERR! ../../nan/nan.h:1547:57: error: no matching function for call to ‘v8::Object::Get(uint32_t&)’ npm ERR! return scope.Escape(New(persistentHandle)->Get(index)); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate expects 2 arguments, 1 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate expects 2 arguments, 1 provided npm ERR! In file included from ../src/i2c.cc:3: npm ERR! ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: npm ERR! ../../nan/nan.h:1706: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! , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) npm ERR! ^ npm ERR! In file included from /usr/include/c++/8/cassert:44, npm ERR! from /home/pi/.cache/node-gyp/16.9.1/include/node/node_object_wrap.h:26, npm ERR! from ../../nan/nan.h:49, npm ERR! from ../src/i2c.cc:3: npm ERR! ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’: npm ERR! ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’ npm ERR! assert(persistent().IsNearDeath()); npm ERR! ^~~~~~~~~~~ npm ERR! In file included from ../../nan/nan.h:2192, npm ERR! from ../src/i2c.cc:3: npm ERR! ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’: npm ERR! ../../nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’ npm ERR! persistent().MarkIndependent(); npm ERR! ^~~~~~~~~~~~~~~ npm ERR! In file included from /usr/include/c++/8/cassert:44, npm ERR! from /home/pi/.cache/node-gyp/16.9.1/include/node/node_object_wrap.h:26, npm ERR! from ../../nan/nan.h:49, npm ERR! from ../src/i2c.cc:3: npm ERR! ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’: npm ERR! ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’ npm ERR! assert(wrap->handle_.IsNearDeath()); npm ERR! ^~~~~~~~~~~ npm ERR! ../src/i2c.cc: In function ‘void SetAddress(const Nan::FunctionCallbackInfo<v8::Value>&)’: npm ERR! ../src/i2c.cc:38:30: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! addr = info[0]->Int32Value(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! ^~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc: In function ‘void Scan(const Nan::FunctionCallbackInfo<v8::Value>&)’: npm ERR! ../src/i2c.cc:60:43: error: no matching function for call to ‘v8::Array::Set(int&, Nan::imp::IntegerFactory<v8::Integer>::return_t)’ npm ERR! results->Set(i, Nan::New<Integer>(res)); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/i2c.cc: In function ‘void Open(const Nan::FunctionCallbackInfo<v8::Value>&)’: npm ERR! ../src/i2c.cc:84:35: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ npm ERR! String::Utf8Value device(info[0]); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3581:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)’ npm ERR! Utf8Value(Isolate* isolate, Local<v8::Value> obj); npm ERR! ^~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3581:5: note: candidate expects 2 arguments, 1 provided npm ERR! ../src/i2c.cc: In function ‘void Read(const Nan::FunctionCallbackInfo<v8::Value>&)’: npm ERR! ../src/i2c.cc:103:33: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! int len = info[0]->Int32Value(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! ^~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc:114:45: error: no matching function for call to ‘v8::Array::Set(int&, Nan::imp::IntegerFactory<v8::Integer>::return_t)’ npm ERR! data->Set(i, Nan::New<Integer>(buf[i])); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate expects 3 arguments, 2 provided npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate expects 3 arguments, 2 provided npm ERR! ../src/i2c.cc: In function ‘void ReadBlock(const Nan::FunctionCallbackInfo<v8::Value>&)’: npm ERR! ../src/i2c.cc:154:36: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! int8_t cmd = info[0]->Int32Value(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! ^~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc:155:37: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! int32_t len = info[1]->Int32Value(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! ^~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc:178:43: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! int32_t delay = info[2]->Int32Value(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! ^~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc: In function ‘void Write(const Nan::FunctionCallbackInfo<v8::Value>&)’: npm ERR! ../src/i2c.cc:193:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! int len = node::Buffer::Length(buffer->ToObject()); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc:194:52: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! char* data = node::Buffer::Data(buffer->ToObject()); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc: In function ‘void WriteByte(const Nan::FunctionCallbackInfo<v8::Value>&)’: npm ERR! ../src/i2c.cc:213:37: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! int8_t byte = info[0]->Int32Value(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! ^~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc: In function ‘void WriteBlock(const Nan::FunctionCallbackInfo<v8::Value>&)’: npm ERR! ../src/i2c.cc:232:36: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! int8_t cmd = info[0]->Int32Value(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! ^~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc:233:53: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! int len = node::Buffer::Length(buffer->ToObject()); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc:234:52: error: no matching function for call to ‘v8::Value::ToObject()’ npm ERR! char* data = node::Buffer::Data(buffer->ToObject()); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( npm ERR! ^~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc: In function ‘void WriteWord(const Nan::FunctionCallbackInfo<v8::Value>&)’: npm ERR! ../src/i2c.cc:253:36: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! int8_t cmd = info[0]->Int32Value(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! ^~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc:254:38: error: no matching function for call to ‘v8::Value::Int32Value()’ npm ERR! int16_t word = info[1]->Int32Value(); npm ERR! ^ npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63, npm ERR! from ../src/i2c.cc:1: npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’ npm ERR! V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const; npm ERR! ^~~~~~~~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate expects 1 argument, 0 provided npm ERR! ../src/i2c.cc: At global scope: npm ERR! ../src/i2c.cc:270:11: error: variable or field ‘Init’ declared void npm ERR! void Init(Handle<Object> exports) { npm ERR! ^~~~~~ npm ERR! ../src/i2c.cc:270:11: error: ‘Handle’ was not declared in this scope npm ERR! ../src/i2c.cc:270:11: note: suggested alternative: ‘rand_r’ npm ERR! void Init(Handle<Object> exports) { npm ERR! ^~~~~~ npm ERR! rand_r npm ERR! ../src/i2c.cc:270:24: error: expected primary-expression before ‘>’ token npm ERR! void Init(Handle<Object> exports) { npm ERR! ^ npm ERR! ../src/i2c.cc:270:26: error: ‘exports’ was not declared in this scope npm ERR! void Init(Handle<Object> exports) { npm ERR! ^~~~~~~ npm ERR! In file included from ../src/i2c.cc:1: npm ERR! ../src/i2c.cc:295:18: error: ‘Init’ was not declared in this scope npm ERR! NODE_MODULE(i2c, Init) npm ERR! ^~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:810:36: note: in definition of macro ‘NODE_MODULE_X’ npm ERR! (node::addon_register_func) (regfunc), \ npm ERR! ^~~~~~~ npm ERR! ../src/i2c.cc:295:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! NODE_MODULE(i2c, Init) npm ERR! ^~~~~~~~~~~ npm ERR! ../src/i2c.cc:295:18: note: suggested alternative: ‘exit’ npm ERR! NODE_MODULE(i2c, Init) npm ERR! ^~~~ npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:810:36: note: in definition of macro ‘NODE_MODULE_X’ npm ERR! (node::addon_register_func) (regfunc), \ npm ERR! ^~~~~~~ npm ERR! ../src/i2c.cc:295:1: note: in expansion of macro ‘NODE_MODULE’ npm ERR! NODE_MODULE(i2c, Init) npm ERR! ^~~~~~~~~~~ npm ERR! make: *** [i2c.target.mk:111: Release/obj.target/i2c/src/i2c.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) npm ERR! gyp ERR! System Linux 5.10.60-v7l+ npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /home/pi/node-arm/node_modules/i2c npm ERR! gyp ERR! node -v v16.9.1 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/pi/.npm/_logs/2021-09-18T15_22_49_113Z-debug.log
Sorry for the long error. I've installed the build-essential package with apt-get.
build-essential
What am I missing?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I just installed a brand new raspberry pi 4.
I've :
raspbian OS 10
node: 16.9.1
npm: 7.21.1
When I run
npm i adafruit-i2c-pwm-driver
, I get this error:Sorry for the long error. I've installed the
build-essential
package with apt-get.What am I missing?
The text was updated successfully, but these errors were encountered: