Open albertstuder opened 5 years ago
Same here, anyone has a solution?
Same here. Node-red 1.0.3, Node.js v.10.15.2 Would be nice to have any help
I made a solution for raspberry pi's
https://flows.nodered.org/node/node-red-contrib-anolog-to-digital-converter-raspberry-pi
Hello I tried several times to install this node. But only this output. npm version 6.7.0 nodejs version 10.15.1 node-red version 0.19.5 any solution?
pi@raspberrypi:~/.node-red $ npm install node-red-contrib-ads1x15 npm WARN deprecated coffee-script@1.9.1: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
make: Verzeichnis „/home/pi/.node-red/node_modules/i2c/build“ wird betreten CXX(target) Release/obj.target/i2c/src/i2c.o In file included from ../node_modules/nan/nan.h:190:0, from ../src/i2c.cc:3: ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Local, v8::Local, v8::Local, v8::PropertyAttribute)’:
../node_modules/nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
^ Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)’:
../node_modules/nan/nan.h:817:60: warning: ‘v8::Local node::MakeCallback(v8::Isolate , v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../src/i2c.cc:1:0:
/home/pi/.node-gyp/10.15.1/include/node/node.h:177:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/pi/.node-gyp/10.15.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^ Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local )’:
../node_modules/nan/nan.h:831:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local )’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../src/i2c.cc:1:0:
/home/pi/.node-gyp/10.15.1/include/node/node.h:170:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/pi/.node-gyp/10.15.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^ Nan::MakeCallback(v8::Local, const char, int, v8::Local )’:
../node_modules/nan/nan.h:845:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, const char , int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../src/i2c.cc:1:0:
/home/pi/.node-gyp/10.15.1/include/node/node.h:163:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/pi/.node-gyp/10.15.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^ Nan::Callback::Call (v8::Isolate , v8::Local, int, v8::Local) const’:
../node_modules/nan/nan.h:1463:5: warning: ‘v8::Local node::MakeCallback(v8::Isolate , v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../src/i2c.cc:1:0:
/home/pi/.node-gyp/10.15.1/include/node/node.h:177:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/pi/.node-gyp/10.15.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^&)’:
../src/i2c.cc:38:30: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
addr = info[0]->Int32Value();
^
In file included from /home/pi/.node-gyp/10.15.1/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/home/pi/.node-gyp/10.15.1/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.15.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^&)’:
../src/i2c.cc:84:35: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
String::Utf8Value device(info[0]);
^
In file included from /home/pi/.node-gyp/10.15.1/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/home/pi/.node-gyp/10.15.1/include/node/v8.h:2892:28: note: declared here
explicit Utf8Value(Local obj));
^
/home/pi/.node-gyp/10.15.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^&)’:
../src/i2c.cc:103:33: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int len = info[0]->Int32Value();
^
In file included from /home/pi/.node-gyp/10.15.1/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/home/pi/.node-gyp/10.15.1/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.15.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^&)’:
../src/i2c.cc:154:36: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int8_t cmd = info[0]->Int32Value();
^
In file included from /home/pi/.node-gyp/10.15.1/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/home/pi/.node-gyp/10.15.1/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.15.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^&)’:
../src/i2c.cc:193:53: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int len = node::Buffer::Length(buffer->ToObject());
^
In file included from /home/pi/.node-gyp/10.15.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.node-gyp/10.15.1/include/node/v8.h:10046:15: note: declared here
Local data = node::Buffer::Data(buffer->ToObject());
^
In file included from /home/pi/.node-gyp/10.15.1/include/node/node.h:63:0,
from ../src/i2c.cc:1:
/home/pi/.node-gyp/10.15.1/include/node/v8.h:10046:15: note: declared here
Local
~~~ In file included from ../src/i2c.cc:3:0: ../node_modules/nan/nan.h: In function ‘v8::Local~~~~~ In file included from ../src/i2c.cc:3:0: ../node_modules/nan/nan.h: In function ‘v8::Local~~~~~ In file included from ../src/i2c.cc:3:0: ../node_modules/nan/nan.h: In function ‘v8::Local~~~~~ In file included from ../src/i2c.cc:3:0: ../nodemodules/nan/nan.h: In member function ‘v8::Local~~~~~ ../src/i2c.cc: In function ‘void SetAddress(const Nan::FunctionCallbackInfo~~~~~ ../src/i2c.cc: In function ‘void Open(const Nan::FunctionCallbackInfo~~~~~ ../src/i2c.cc: In function ‘void Read(const Nan::FunctionCallbackInfo~~~~~ ../src/i2c.cc: In function ‘void ReadBlock(const Nan::FunctionCallbackInfo~~~~~ ../src/i2c.cc:155:37: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] int32_t len = info[1]->Int32Value(); ^ In file included from /home/pi/.node-gyp/10.15.1/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.15.1/include/node/node.h:63, from ../src/i2c.cc:1: /home/pi/.node-gyp/10.15.1/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/pi/.node-gyp/10.15.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ ../src/i2c.cc:178:43: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] int32_t delay = info[2]->Int32Value(); ^ In file included from /home/pi/.node-gyp/10.15.1/include/node/v8.h:26:0, from /home/pi/.node-gyp/10.15.1/include/node/node.h:63, from ../src/i2c.cc:1: /home/pi/.node-gyp/10.15.1/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED("Use maybe version", int32_t Int32Value() const); ^ /home/pi/.node-gyp/10.15.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ ../src/i2c.cc: In function ‘void Write(const Nan::FunctionCallbackInfonpm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! i2c@0.2.3 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the i2c@0.2.3 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2019-02-01T14_52_43_028Z-debug.log