pedalPusher68 / node-red-contrib-brads-i2c-nodes

A collection of node-red nodes for assorted i2c devices
MIT License
5 stars 7 forks source link

Unable to install on latest node red and raspian OS #9

Open dachshund-digital opened 4 years ago

dachshund-digital commented 4 years ago

Unable to install on latest node red and raspian OS on a raspberry pi. Log reports make failure.

Node Red 19 Jun 22:20:02 - [info] Node-RED version: v1.0.6 19 Jun 22:20:02 - [info] Node.js version: v12.18.1 19 Jun 22:20:02 - [info] Linux 5.4.44-v7l+ arm LE

Raspbian OS Version: May 2020 Release date: 2020-05-27

MallocArray commented 3 years ago

I just found out about node-red and was excited to try it out for a project with bmp180 sensor, but I'm also encountering errors with the latest RaspbianOS and node-red as of 2021-03-28

Sample of the errors: 2021-03-29T01:58:37.463Z [err] /home/pi/.cache/node-gyp/12.21.0/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided 2021-03-29T01:58:37.466Z [err] In file included from ../src/i2c.cc:107: 2021-03-29T01:58:37.466Z [err] ../src/./writequick.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteQuickAsync(Nan::NAN_METHOD_ARGS_TYPE)’: 2021-03-29T01:58:37.466Z [err] ../src/./writequick.cc:47:32: error: no matching function for call to ‘v8::Value::Int32Value()’ 2021-03-29T01:58:37.466Z [err] int fd = info[0]->Int32Value(); 2021-03-29T01:58:37.466Z [err] ^ 2021-03-29T01:58:37.467Z [err] In file included from /home/pi/.cache/node-gyp/12.21.0/include/node/node.h:67, 2021-03-29T01:58:37.467Z [err] from ../src/i2c.cc:1: 2021-03-29T01:58:37.467Z [err] /home/pi/.cache/node-gyp/12.21.0/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Local) const’ 2021-03-29T01:58:37.467Z [err] V8_WARN_UNUSED_RESULT Maybe Int32Value(Local context) const; 2021-03-29T01:58:37.467Z [err]