pi@raspberrypi:~/.node-red/node_modules $ npm install node-dht-sensor
npm WARN engine node-dh...@0.0.8: wanted: {"node":">=0.12 <0.13"} (current: {"node":"0.10.29","npm":"1.4.21"})
> node-dh...@0.0.8 install /home/pi/.node-red/node_modules/node-dht-sensor
> ./check-bcm2835
Library bcm2835 found.
make: Entering directory '/home/pi/.node-red/node_modules/node-dht-sensor/build'
CXX(target) Release/obj.target/node-dht-sensor/node-dht-sensor.o
../node-dht-sensor.cpp:205:17: error: ‘FunctionCallbackInfo’ does not name a typ e
void Read(const FunctionCallbackInfo<Value>& args) {
^
../node-dht-sensor.cpp:205:37: error: expected ‘,’ or ‘...’ before ‘<’ token
void Read(const FunctionCallbackInfo<Value>& args) {
^
../node-dht-sensor.cpp: In function ‘void Read(int)’:
../node-dht-sensor.cpp:207:30: error: no matching function for call to ‘v8::Hand leScope::HandleScope(v8::Isolate*&)’
HandleScope scope(isolate);
^
../node-dht-sensor.cpp:207:30: note: candidates are:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleSco pe(const v8::HandleScope&)
HandleScope(const HandleScope&);
^
/usr/include/nodejs/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/usr/include/nodejs/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleSco pe()
HandleScope();
^
/usr/include/nodejs/deps/v8/include/v8.h:448:3: note: candidate expects 0 argu ments, 1 provided
../node-dht-sensor.cpp:217:48: error: no matching function for call to ‘v8::Obje ct::New(v8::Isolate*&)’
Local<Object> readout = Object::New(isolate);
^
../node-dht-sensor.cpp:217:48: note: candidate is:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:1724:33: note: static v8::Local<v8::Obj ect> v8::Object::New()
V8EXPORT static Local<Object> New();
^
/usr/include/nodejs/deps/v8/include/v8.h:1724:33: note: candidate expects 0 ar guments, 1 provided
../node-dht-sensor.cpp:218:18: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
readout->Set(String::NewFromUtf8(isolate, "humidity"), Number::New(isolate, humidity));
^
../node-dht-sensor.cpp:218:89: error: no matching function for call to ‘v8::Numb er::New(v8::Isolate*&, float&)’
readout->Set(String::NewFromUtf8(isolate, "humidity"), Number::New(isolate, humidity));
^
../node-dht-sensor.cpp:218:89: note: candidate is:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:1377:33: note: static v8::Local<v8::Num ber> v8::Number::New(double)
V8EXPORT static Local<Number> New(double value);
^
/usr/include/nodejs/deps/v8/include/v8.h:1377:33: note: candidate expects 1 ar gument, 2 provided
../node-dht-sensor.cpp:219:18: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
readout->Set(String::NewFromUtf8(isolate, "temperature"), Number::New(isola te, temperature));
^
../node-dht-sensor.cpp:219:95: error: no matching function for call to ‘v8::Numb er::New(v8::Isolate*&, float&)’
readout->Set(String::NewFromUtf8(isolate, "temperature"), Number::New(isola te, temperature));
^
../node-dht-sensor.cpp:219:95: note: candidate is:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:1377:33: note: static v8::Local<v8::Num ber> v8::Number::New(double)
V8EXPORT static Local<Number> New(double value);
^
/usr/include/nodejs/deps/v8/include/v8.h:1377:33: note: candidate expects 1 ar gument, 2 provided
../node-dht-sensor.cpp:220:18: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
readout->Set(String::NewFromUtf8(isolate, "isValid"), Boolean::New(isolate, result == 0));
^
../node-dht-sensor.cpp:220:92: error: no matching function for call to ‘v8::Bool ean::New(v8::Isolate*&, bool)’
readout->Set(String::NewFromUtf8(isolate, "isValid"), Boolean::New(isolate, result == 0));
^
../node-dht-sensor.cpp:220:92: note: candidate is:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:4349:17: note: static v8::Handle<v8::Bo olean> v8::Boolean::New(bool)
Handle<Boolean> Boolean::New(bool value) {
^
/usr/include/nodejs/deps/v8/include/v8.h:4349:17: note: candidate expects 1 ar gument, 2 provided
../node-dht-sensor.cpp:221:18: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
readout->Set(String::NewFromUtf8(isolate, "errors"), Number::New(isolate, 2 - retry));
^
../node-dht-sensor.cpp:221:88: error: no matching function for call to ‘v8::Numb er::New(v8::Isolate*&, int)’
readout->Set(String::NewFromUtf8(isolate, "errors"), Number::New(isolate, 2 - retry));
^
../node-dht-sensor.cpp:221:88: note: candidate is:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:1377:33: note: static v8::Local<v8::Num ber> v8::Number::New(double)
V8EXPORT static Local<Number> New(double value);
^
/usr/include/nodejs/deps/v8/include/v8.h:1377:33: note: candidate expects 1 ar gument, 2 provided
../node-dht-sensor.cpp:223:5: error: ‘args’ was not declared in this scope
args.GetReturnValue().Set(readout);
^
../node-dht-sensor.cpp: At global scope:
../node-dht-sensor.cpp:226:21: error: ‘FunctionCallbackInfo’ does not name a typ e
void ReadSpec(const FunctionCallbackInfo<Value>& args) {
^
../node-dht-sensor.cpp:226:41: error: expected ‘,’ or ‘...’ before ‘<’ token
void ReadSpec(const FunctionCallbackInfo<Value>& args) {
^
../node-dht-sensor.cpp: In function ‘void ReadSpec(int)’:
../node-dht-sensor.cpp:228:30: error: no matching function for call to ‘v8::Hand leScope::HandleScope(v8::Isolate*&)’
HandleScope scope(isolate);
^
../node-dht-sensor.cpp:228:30: note: candidates are:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleSco pe(const v8::HandleScope&)
HandleScope(const HandleScope&);
^
/usr/include/nodejs/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/usr/include/nodejs/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleSco pe()
HandleScope();
^
/usr/include/nodejs/deps/v8/include/v8.h:448:3: note: candidate expects 0 argu ments, 1 provided
../node-dht-sensor.cpp:230:9: error: ‘args’ was not declared in this scope
if (args.Length() < 2) {
^
../node-dht-sensor.cpp:231:15: error: ‘class v8::Isolate’ has no member named ‘T hrowException’
isolate->ThrowException(Exception::TypeError(
^
../node-dht-sensor.cpp:232:10: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
String::NewFromUtf8(isolate, "Wrong number of arguments")));
^
../node-dht-sensor.cpp:236:22: error: ‘args’ was not declared in this scope
int sensorType = args[0]->Uint32Value();
^
../node-dht-sensor.cpp:238:18: error: ‘class v8::Isolate’ has no member named ‘T hrowException’
isolate->ThrowException(Exception::TypeError(
^
../node-dht-sensor.cpp:239:10: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
String::NewFromUtf8(isolate, "Specified sensor type is invalid")));
^
../node-dht-sensor.cpp:246:19: error: ‘class v8::Isolate’ has no member named ‘T hrowException’
isolate->ThrowException(Exception::TypeError(
^
../node-dht-sensor.cpp:247:11: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
String::NewFromUtf8(isolate, "Failed to initialize")));
^
../node-dht-sensor.cpp:261:48: error: no matching function for call to ‘v8::Obje ct::New(v8::Isolate*&)’
Local<Object> readout = Object::New(isolate);
^
../node-dht-sensor.cpp:261:48: note: candidate is:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:1724:33: note: static v8::Local<v8::Obj ect> v8::Object::New()
V8EXPORT static Local<Object> New();
^
/usr/include/nodejs/deps/v8/include/v8.h:1724:33: note: candidate expects 0 ar guments, 1 provided
../node-dht-sensor.cpp:262:18: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
readout->Set(String::NewFromUtf8(isolate, "humidity"), Number::New(isolate, humidity));
^
../node-dht-sensor.cpp:262:89: error: no matching function for call to ‘v8::Numb er::New(v8::Isolate*&, float&)’
readout->Set(String::NewFromUtf8(isolate, "humidity"), Number::New(isolate, humidity));
^
../node-dht-sensor.cpp:262:89: note: candidate is:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:1377:33: note: static v8::Local<v8::Num ber> v8::Number::New(double)
V8EXPORT static Local<Number> New(double value);
^
/usr/include/nodejs/deps/v8/include/v8.h:1377:33: note: candidate expects 1 ar gument, 2 provided
../node-dht-sensor.cpp:263:18: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
readout->Set(String::NewFromUtf8(isolate, "temperature"), Number::New(isola te, temperature));
^
../node-dht-sensor.cpp:263:95: error: no matching function for call to ‘v8::Numb er::New(v8::Isolate*&, float&)’
readout->Set(String::NewFromUtf8(isolate, "temperature"), Number::New(isola te, temperature));
^
../node-dht-sensor.cpp:263:95: note: candidate is:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:1377:33: note: static v8::Local<v8::Num ber> v8::Number::New(double)
V8EXPORT static Local<Number> New(double value);
^
/usr/include/nodejs/deps/v8/include/v8.h:1377:33: note: candidate expects 1 ar gument, 2 provided
../node-dht-sensor.cpp:264:18: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
readout->Set(String::NewFromUtf8(isolate, "isValid"), Boolean::New(isolate, result == 0));
^
../node-dht-sensor.cpp:264:92: error: no matching function for call to ‘v8::Bool ean::New(v8::Isolate*&, bool)’
readout->Set(String::NewFromUtf8(isolate, "isValid"), Boolean::New(isolate, result == 0));
^
../node-dht-sensor.cpp:264:92: note: candidate is:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:4349:17: note: static v8::Handle<v8::Bo olean> v8::Boolean::New(bool)
Handle<Boolean> Boolean::New(bool value) {
^
/usr/include/nodejs/deps/v8/include/v8.h:4349:17: note: candidate expects 1 ar gument, 2 provided
../node-dht-sensor.cpp:265:18: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
readout->Set(String::NewFromUtf8(isolate, "errors"), Number::New(isolate, 2 - retry));
^
../node-dht-sensor.cpp:265:88: error: no matching function for call to ‘v8::Numb er::New(v8::Isolate*&, int)’
readout->Set(String::NewFromUtf8(isolate, "errors"), Number::New(isolate, 2 - retry));
^
../node-dht-sensor.cpp:265:88: note: candidate is:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:1377:33: note: static v8::Local<v8::Num ber> v8::Number::New(double)
V8EXPORT static Local<Number> New(double value);
^
/usr/include/nodejs/deps/v8/include/v8.h:1377:33: note: candidate expects 1 ar gument, 2 provided
../node-dht-sensor.cpp: At global scope:
../node-dht-sensor.cpp:270:23: error: ‘FunctionCallbackInfo’ does not name a typ e
void Initialize(const FunctionCallbackInfo<Value>& args) {
^
../node-dht-sensor.cpp:270:43: error: expected ‘,’ or ‘...’ before ‘<’ token
void Initialize(const FunctionCallbackInfo<Value>& args) {
^
../node-dht-sensor.cpp: In function ‘void Initialize(int)’:
../node-dht-sensor.cpp:272:30: error: no matching function for call to ‘v8::Hand leScope::HandleScope(v8::Isolate*&)’
HandleScope scope(isolate);
^
../node-dht-sensor.cpp:272:30: note: candidates are:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleSco pe(const v8::HandleScope&)
HandleScope(const HandleScope&);
^
/usr/include/nodejs/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’
/usr/include/nodejs/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleSco pe()
HandleScope();
^
/usr/include/nodejs/deps/v8/include/v8.h:448:3: note: candidate expects 0 argu ments, 1 provided
../node-dht-sensor.cpp:274:9: error: ‘args’ was not declared in this scope
if (args.Length() < 2) {
^
../node-dht-sensor.cpp:275:18: error: ‘class v8::Isolate’ has no member named ‘T hrowException’
isolate->ThrowException(Exception::TypeError(
^
../node-dht-sensor.cpp:276:10: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
String::NewFromUtf8(isolate, "Wrong number of arguments")));
^
../node-dht-sensor.cpp:280:10: error: ‘args’ was not declared in this scope
if (!args[0]->IsNumber() || !args[1]->IsNumber()) {
^
../node-dht-sensor.cpp:281:18: error: ‘class v8::Isolate’ has no member named ‘T hrowException’
isolate->ThrowException(Exception::TypeError(
^
../node-dht-sensor.cpp:282:10: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
String::NewFromUtf8(isolate, "Invalid arguments")));
^
../node-dht-sensor.cpp:286:22: error: ‘args’ was not declared in this scope
int sensorType = args[0]->Uint32Value();
^
../node-dht-sensor.cpp:288:15: error: ‘class v8::Isolate’ has no member named ‘T hrowException’
isolate->ThrowException(Exception::TypeError(
^
../node-dht-sensor.cpp:289:10: error: ‘NewFromUtf8’ is not a member of ‘v8::Stri ng’
String::NewFromUtf8(isolate, "Specified sensor type is not supported") ));
^
../node-dht-sensor.cpp:298:70: error: no matching function for call to ‘v8::Bool ean::New(v8::Isolate*&, bool)’
args.GetReturnValue().Set(Boolean::New(isolate, initialize() == 0));
^
../node-dht-sensor.cpp:298:70: note: candidate is:
In file included from /usr/include/nodejs/src/node.h:62:0,
from ../node-dht-sensor.cpp:1:
/usr/include/nodejs/deps/v8/include/v8.h:4349:17: note: static v8::Handle<v8::Bo olean> v8::Boolean::New(bool)
Handle<Boolean> Boolean::New(bool value) {
^
/usr/include/nodejs/deps/v8/include/v8.h:4349:17: note: candidate expects 1 ar gument, 2 provided
../node-dht-sensor.cpp: In function ‘void Init(v8::Handle<v8::Object>)’:
../node-dht-sensor.cpp:314:40: error: no matching function for call to ‘SetMetho d(v8::Handle<v8::Object>&, const char [5], void (&)(int))’
NODE_SET_METHOD(exports, "read", Read);
^
../node-dht-sensor.cpp:314:40: note: candidate is:
In file included from ../node-dht-sensor.cpp:1:0:
/usr/include/nodejs/src/node.h:112:6: note: template<class target_t> void node:: SetMethod(target_t, const char*, v8::InvocationCallback)
void SetMethod(target_t obj, const char* name,
^
/usr/include/nodejs/src/node.h:112:6: note: template argument deduction/substi tution failed:
../node-dht-sensor.cpp:314:40: note: cannot convert ‘Read’ (type ‘void(int)’) to type ‘v8::InvocationCallback {aka v8::Handle<v8::Value> (*)(const v8::Argumen ts&)}’
NODE_SET_METHOD(exports, "read", Read);
^
../node-dht-sensor.cpp:315:48: error: no matching function for call to ‘SetMetho d(v8::Handle<v8::Object>&, const char [9], void (&)(int))’
NODE_SET_METHOD(exports, "readSpec", ReadSpec);
^
../node-dht-sensor.cpp:315:48: note: candidate is:
In file included from ../node-dht-sensor.cpp:1:0:
/usr/include/nodejs/src/node.h:112:6: note: template<class target_t> void node:: SetMethod(target_t, const char*, v8::InvocationCallback)
void SetMethod(target_t obj, const char* name,
^
/usr/include/nodejs/src/node.h:112:6: note: template argument deduction/substi tution failed:
../node-dht-sensor.cpp:315:48: note: cannot convert ‘ReadSpec’ (type ‘void(int )’) to type ‘v8::InvocationCallback {aka v8::Handle<v8::Value> (*)(const v8::Arg uments&)}’
NODE_SET_METHOD(exports, "readSpec", ReadSpec);
^
../node-dht-sensor.cpp:316:52: error: no matching function for call to ‘SetMetho d(v8::Handle<v8::Object>&, const char [11], void (&)(int))’
NODE_SET_METHOD(exports, "initialize", Initialize);
^
../node-dht-sensor.cpp:316:52: note: candidate is:
In file included from ../node-dht-sensor.cpp:1:0:
/usr/include/nodejs/src/node.h:112:6: note: template<class target_t> void node:: SetMethod(target_t, const char*, v8::InvocationCallback)
void SetMethod(target_t obj, const char* name,
^
/usr/include/nodejs/src/node.h:112:6: note: template argument deduction/substi tution failed:
../node-dht-sensor.cpp:316:52: note: cannot convert ‘Initialize’ (type ‘void(i nt)’) to type ‘v8::InvocationCallback {aka v8::Handle<v8::Value> (*)(const v8::A rguments&)}’
NODE_SET_METHOD(exports, "initialize", Initialize);
^
make: *** [Release/obj.target/node-dht-sensor/node-dht-sensor.o] Error 1
make: Leaving directory '/home/pi/.node-red/node_modules/node-dht-sensor/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267: 23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809: 12)
gyp ERR! System Linux 4.1.13-v7+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/pi/.node-red/node_modules/node-dht-sensor
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! node-dh...@0.0.8 install: `./check-bcm2835`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-dh...@0.0.8 install script.
npm ERR! This is most likely a problem with the node-dht-sensor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./check-bcm2835
npm ERR! You can get their info via:
npm ERR! npm owner ls node-dht-sensor
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.1.13-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-dht-sensor"
npm ERR! cwd /home/pi/.node-red/node_modules
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/.node-red/node_modules/npm-debug.log
npm ERR! not ok code 0