# Error installing node-red-contrib-raspihats

**URL:** https://discourse.nodered.org/t/error-installing-node-red-contrib-raspihats/26603
**Category:** General
**Created:** [13 May 2020 15:57 UTC](https://discourse.nodered.org/t/error-installing-node-red-contrib-raspihats/26603 "2020-05-13T15:57:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Cmilian](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cmilian/32/21394_2.png) [@Cmilian](https://discourse.nodered.org/u/Cmilian)
#### Post date: [13 May 2020 15:57 UTC](https://discourse.nodered.org/t/error-installing-node-red-contrib-raspihats/26603/1 "2020-05-13T15:57:37Z")

</div>

Hi Guys, I need some help. I have been having problems installing the node-red-contrib-raspihats.  
Here is my error:

```auto
2020-05-13T15:55:14.531Z [err] ../src/./readi2cblock.cc:111:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
2020-05-13T15:55:14.531Z [err] __u32 length = info[2]->Uint32Value();
2020-05-13T15:55:14.531Z [err] ^
2020-05-13T15:55:14.531Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.531Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.531Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe<unsigned int> v8::Value::Uint32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.531Z [err] V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
2020-05-13T15:55:14.531Z [err] ^ ~~~~~~~~~~
2020-05-13T15:55:14.531Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.535Z [err] In file included from ../src/i2c.cc:100:
2020-05-13T15:55:14.535Z [err] ../src/./receivebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReceiveByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-05-13T15:55:14.535Z [err] ../src/./receivebyte.cc:48:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.535Z [err] int fd = info[0]->Int32Value();
2020-05-13T15:55:14.535Z [err] ^
2020-05-13T15:55:14.535Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.535Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.535Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.535Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.535Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.535Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.536Z [err] In file included from ../src/i2c.cc:100:
2020-05-13T15:55:14.536Z [err] ../src/./receivebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReceiveByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-05-13T15:55:14.536Z [err] ../src/./receivebyte.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.536Z [err] int fd = info[0]->Int32Value();
2020-05-13T15:55:14.536Z [err] ^
2020-05-13T15:55:14.536Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.536Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.536Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.536Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.536Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.536Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.539Z [err] In file included from ../src/i2c.cc:101:
2020-05-13T15:55:14.539Z [err] ../src/./sendbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SendByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-05-13T15:55:14.539Z [err] ../src/./sendbyte.cc:47:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.539Z [err] int fd = info[0]->Int32Value();
2020-05-13T15:55:14.539Z [err] ^
2020-05-13T15:55:14.540Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.540Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.540Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.540Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.540Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.540Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.540Z [err] In file included from ../src/i2c.cc:101:
2020-05-13T15:55:14.540Z [err] ../src/./sendbyte.cc:48:35: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.540Z [err] __u8 byte = info[1]->Int32Value();
2020-05-13T15:55:14.540Z [err] ^
2020-05-13T15:55:14.540Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.540Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.540Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.540Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.540Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.540Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.541Z [err] In file included from ../src/i2c.cc:101:
2020-05-13T15:55:14.541Z [err] ../src/./sendbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SendByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-05-13T15:55:14.541Z [err] ../src/./sendbyte.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.541Z [err] int fd = info[0]->Int32Value();
2020-05-13T15:55:14.541Z [err] ^
2020-05-13T15:55:14.541Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.541Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.541Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.541Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.541Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.541Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.541Z [err] In file included from ../src/i2c.cc:101:
2020-05-13T15:55:14.541Z [err] ../src/./sendbyte.cc:61:35: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.541Z [err] __u8 byte = info[1]->Int32Value();
2020-05-13T15:55:14.541Z [err] ^
2020-05-13T15:55:14.541Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.541Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.541Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.541Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.541Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.541Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.544Z [err] In file included from ../src/i2c.cc:102:
2020-05-13T15:55:14.544Z [err] ../src/./setaddr.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SetAddrAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-05-13T15:55:14.544Z [err] ../src/./setaddr.cc:47:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.544Z [err] int fd = info[0]->Int32Value();
2020-05-13T15:55:14.544Z [err] ^
2020-05-13T15:55:14.545Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.545Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.545Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.545Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.545Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.545Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.545Z [err] In file included from ../src/i2c.cc:102:
2020-05-13T15:55:14.545Z [err] ../src/./setaddr.cc:48:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.545Z [err] int addr = info[1]->Int32Value();
2020-05-13T15:55:14.545Z [err] ^
2020-05-13T15:55:14.545Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.545Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.545Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.545Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.545Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.545Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.545Z [err] In file included from ../src/i2c.cc:102:
2020-05-13T15:55:14.545Z [err] ../src/./setaddr.cc:49:44: error: no matching function for call to ‘v8::Value::BooleanValue()’
2020-05-13T15:55:14.545Z [err] bool forceAccess = info[2]->BooleanValue();
2020-05-13T15:55:14.545Z [err] ^
2020-05-13T15:55:14.545Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.545Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.545Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2699:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
2020-05-13T15:55:14.545Z [err] bool BooleanValue(Isolate* isolate) const;
2020-05-13T15:55:14.545Z [err] ^ ~~~~~~~~~~~
2020-05-13T15:55:14.545Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2699:8: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.545Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14,
2020-05-13T15:55:14.545Z [err] from /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:27,
2020-05-13T15:55:14.545Z [err] from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.545Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.545Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2702:51: note: candidate: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.545Z [err] V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
2020-05-13T15:55:14.545Z [err] ^ ~~~~~~~~~~~
2020-05-13T15:55:14.545Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
2020-05-13T15:55:14.545Z [err] declarator __attribute__ ((deprecated(message)))
2020-05-13T15:55:14.545Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.545Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2702:51: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.545Z [err] V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
2020-05-13T15:55:14.545Z [err] ^ ~~~~~~~~~~~
2020-05-13T15:55:14.545Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
2020-05-13T15:55:14.545Z [err] declarator __attribute__ ((deprecated(message)))
2020-05-13T15:55:14.545Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.546Z [err] In file included from ../src/i2c.cc:102:
2020-05-13T15:55:14.546Z [err] ../src/./setaddr.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SetAddrSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-05-13T15:55:14.546Z [err] ../src/./setaddr.cc:61:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.546Z [err] int fd = info[0]->Int32Value();
2020-05-13T15:55:14.546Z [err] ^
2020-05-13T15:55:14.547Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.547Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.547Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.547Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.547Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.547Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.547Z [err] In file included from ../src/i2c.cc:102:
2020-05-13T15:55:14.547Z [err] ../src/./setaddr.cc:62:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.547Z [err] int addr = info[1]->Int32Value();
2020-05-13T15:55:14.547Z [err] ^
2020-05-13T15:55:14.547Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.547Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.547Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.547Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.547Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.547Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.547Z [err] In file included from ../src/i2c.cc:102:
2020-05-13T15:55:14.547Z [err] ../src/./setaddr.cc:63:44: error: no matching function for call to ‘v8::Value::BooleanValue()’
2020-05-13T15:55:14.547Z [err] bool forceAccess = info[2]->BooleanValue();
2020-05-13T15:55:14.547Z [err] ^
2020-05-13T15:55:14.547Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.547Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.547Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2699:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
2020-05-13T15:55:14.547Z [err] bool BooleanValue(Isolate* isolate) const;
2020-05-13T15:55:14.547Z [err] ^ ~~~~~~~~~~~
2020-05-13T15:55:14.547Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2699:8: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.547Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14,
2020-05-13T15:55:14.547Z [err] from /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:27,
2020-05-13T15:55:14.547Z [err] from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.547Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.547Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2702:51: note: candidate: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.547Z [err] V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
2020-05-13T15:55:14.547Z [err] ^ ~~~~~~~~~~~
2020-05-13T15:55:14.547Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
2020-05-13T15:55:14.547Z [err] declarator __attribute__ ((deprecated(message)))
2020-05-13T15:55:14.547Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.547Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2702:51: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.547Z [err] V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
2020-05-13T15:55:14.547Z [err] ^ ~~~~~~~~~~~
2020-05-13T15:55:14.547Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
2020-05-13T15:55:14.547Z [err] declarator __attribute__ ((deprecated(message)))
2020-05-13T15:55:14.547Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.550Z [err] In file included from ../src/i2c.cc:103:
2020-05-13T15:55:14.550Z [err] ../src/./writebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-05-13T15:55:14.550Z [err] ../src/./writebyte.cc:49:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.550Z [err] int fd = info[0]->Int32Value();
2020-05-13T15:55:14.550Z [err] ^
2020-05-13T15:55:14.550Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.550Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.550Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.550Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.550Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.550Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.550Z [err] In file included from ../src/i2c.cc:103:
2020-05-13T15:55:14.550Z [err] ../src/./writebyte.cc:50:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.550Z [err] __u8 cmd = info[1]->Int32Value();
2020-05-13T15:55:14.550Z [err] ^
2020-05-13T15:55:14.550Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.550Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.550Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.550Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.550Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.550Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.551Z [err] In file included from ../src/i2c.cc:103:
2020-05-13T15:55:14.551Z [err] ../src/./writebyte.cc:51:35: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.551Z [err] __u8 byte = info[2]->Int32Value();
2020-05-13T15:55:14.551Z [err] ^
2020-05-13T15:55:14.551Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.551Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.551Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.551Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.551Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.551Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.552Z [err] In file included from ../src/i2c.cc:103:
2020-05-13T15:55:14.552Z [err] ../src/./writebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-05-13T15:55:14.552Z [err] ../src/./writebyte.cc:63:32: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.552Z [err] int fd = info[0]->Int32Value();
2020-05-13T15:55:14.552Z [err] ^
2020-05-13T15:55:14.552Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.552Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.552Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.552Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.552Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.552Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.552Z [err] In file included from ../src/i2c.cc:103:
2020-05-13T15:55:14.552Z [err] ../src/./writebyte.cc:64:34: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.552Z [err] __u8 cmd = info[1]->Int32Value();
2020-05-13T15:55:14.552Z [err] ^
2020-05-13T15:55:14.552Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.552Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.552Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.552Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.552Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.552Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.552Z [err] In file included from ../src/i2c.cc:103:
2020-05-13T15:55:14.552Z [err] ../src/./writebyte.cc:65:35: error: no matching function for call to ‘v8::Value::Int32Value()’
2020-05-13T15:55:14.552Z [err] __u8 byte = info[2]->Int32Value();
2020-05-13T15:55:14.552Z [err] ^
2020-05-13T15:55:14.552Z [err] In file included from /home/pi/.cache/node-gyp/12.16.3/include/node/node.h:67,
2020-05-13T15:55:14.552Z [err] from ../src/i2c.cc:1:
2020-05-13T15:55:14.552Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
2020-05-13T15:55:14.552Z [err] V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
2020-05-13T15:55:14.552Z [err] ^ ~~~~~~~~~
2020-05-13T15:55:14.552Z [err] /home/pi/.cache/node-gyp/12.16.3/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
2020-05-13T15:55:14.555Z [err] In file included from ../src/i2c.cc:104:
2020-05-13T15:55:14.555Z [err] ../src/./writeword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteWordAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
2020-05-13T15:55:14.555Z [err] ../src/./writeword.cc:49:32: error: no matching function for call to ‘v8::Value::Int32Value()’

more.........Cut to meet blog characters limitation

```

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [13 May 2020 16:20 UTC](https://discourse.nodered.org/t/error-installing-node-red-contrib-raspihats/26603/2 "2020-05-13T16:20:52Z")

</div>

Can you show us the startup log from node-red please and tell us how you installed it. Often the sort of problem you are seeing is due to issues with nodejs version.

**[Edit]** In fact I am seeing the problem too, trying to install with nodejs 12.16.3. I suspect the node is not compatible with nodejs 12.  
I see someone has just reported [the issue](https://github.com/raspihats/node-red-contrib-raspihats/issues/1) on the node's github page.

---

<div class="post-metadata">

### Author: ![Cmilian](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cmilian/32/21394_2.png) [@Cmilian](https://discourse.nodered.org/u/Cmilian)
#### Post date: [13 May 2020 19:55 UTC](https://discourse.nodered.org/t/error-installing-node-red-contrib-raspihats/26603/3 "2020-05-13T19:55:20Z")

</div>

Thanks Colin, You ended days of painful research.

Do you know of a Node Red compatible motor controller or hat for raspberry pi?  
I have bought the UGeek Stepper Motor hat. No luck with it. I just can see a way to control it via Node red.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [13 May 2020 20:24 UTC](https://discourse.nodered.org/t/error-installing-node-red-contrib-raspihats/26603/4 "2020-05-13T20:24:16Z")

</div>

Is there a Python library for it? If so you could control it using an exec node in node-red calling the Python code.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [12 July 2020 20:24 UTC](https://discourse.nodered.org/t/error-installing-node-red-contrib-raspihats/26603/5 "2020-07-12T20:24:21Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
