When installing Mosca on a Raspberry Pi (Raspbian, fresh install), I get all kind of errors. I'm unsure where to even start solving this. See attached install output. It does work, but I keep getting these errors when installing additional nodes. Uninstalling Mosca solves this.
Background
I'm switching my domotics from Windows to Raspberry Pi. I did a fresh install of Raspbian and Node-Red (using the recommended script). After that I started installing the extra Node-Red nodes. When installing node-red-contrib-MQTT-broker which wraps Mosca, I got into trouble. I tried to install Mosca on it's own, to find out if it's the wrapper or Mosca which is the issue. The latter seems to be the issue.
Install output
CLICK ME
```
pi@Dommy:~/.node-red $ npm install mosca --save
npm WARN deprecated mongodb@2.1.21: Please upgrade to 2.2.19 or higher
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
> fs-ext@0.5.0 install /home/pi/.node-red/node_modules/fs-ext
> node-gyp configure build
make: Entering directory '/home/pi/.node-red/node_modules/fs-ext/build'
CXX(target) Release/obj.target/fs-ext/fs-ext.o
../fs-ext.cc: In function ‘void EIO_After(uv_work_t*)’:
../fs-ext.cc:108:20: warning: ‘v8::Local Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
argv[0] = Nan::NanErrnoException(store_data->error);
^~~~~~~~~~~~~~~~~
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1035:46: note: declared here
NAN_DEPRECATED inline v8::Local NanErrnoException(
^~~~~~~~~~~~~~~~~
../fs-ext.cc:108:55: warning: ‘v8::Local Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
argv[0] = Nan::NanErrnoException(store_data->error);
^
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1035:46: note: declared here
NAN_DEPRECATED inline v8::Local NanErrnoException(
^~~~~~~~~~~~~~~~~
../fs-ext.cc:153:34: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local*) const’ is deprecated [-Wdeprecated-declarations]
store_data->cb->Call(argc, argv);
^
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1674:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
../fs-ext.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flock(Nan::NAN_METHOD_ARGS_TYPE)’:
../fs-ext.cc:281:40: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
flock_data->fd = info[0]->Int32Value();
^
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:282:42: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
flock_data->oper = info[1]->Int32Value();
^
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:297:45: warning: ‘v8::Local Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
if (i != 0) return Nan::ThrowError(Nan::NanErrnoException(errno));
^~~~~~~~~~~~~~~~~
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1035:46: note: declared here
NAN_DEPRECATED inline v8::Local NanErrnoException(
^~~~~~~~~~~~~~~~~
../fs-ext.cc:297:68: warning: ‘v8::Local Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
if (i != 0) return Nan::ThrowError(Nan::NanErrnoException(errno));
^
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1035:46: note: declared here
NAN_DEPRECATED inline v8::Local NanErrnoException(
^~~~~~~~~~~~~~~~~
../fs-ext.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Seek(Nan::NAN_METHOD_ARGS_TYPE)’:
../fs-ext.cc:332:32: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->Int32Value();
^
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:317:74: warning: ‘double v8::Value::NumberValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
if (!(a)->IsUndefined() && !(a)->IsNull() && !IsInt64((a)->NumberValue())) { \
^
../fs-ext.cc:333:3: note: in expansion of macro ‘ASSERT_OFFSET’
ASSERT_OFFSET(info[1]);
^~~~~~~~~~~~~
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2475:45: note: declared here
V8_DEPRECATED("Use maybe version", double NumberValue() const);
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:320:60: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
#define GET_OFFSET(a) ((a)->IsNumber() ? (a)->IntegerValue() : -1)
^
../fs-ext.cc:334:16: note: in expansion of macro ‘GET_OFFSET’
off_t offs = GET_OFFSET(info[1]);
^~~~~~~~~~
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2476:46: note: declared here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:335:36: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int whence = info[2]->Int32Value();
^
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:339:56: warning: ‘v8::Local Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
if (offs_result == -1) return Nan::ThrowError(Nan::NanErrnoException(errno));
^~~~~~~~~~~~~~~~~
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1035:46: note: declared here
NAN_DEPRECATED inline v8::Local NanErrnoException(
^~~~~~~~~~~~~~~~~
../fs-ext.cc:339:79: warning: ‘v8::Local Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
if (offs_result == -1) return Nan::ThrowError(Nan::NanErrnoException(errno));
^
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1035:46: note: declared here
NAN_DEPRECATED inline v8::Local NanErrnoException(
^~~~~~~~~~~~~~~~~
../fs-ext.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Fcntl(Nan::NAN_METHOD_ARGS_TYPE)’:
../fs-ext.cc:369:32: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->Int32Value();
^
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:370:33: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int cmd = info[1]->Int32Value();
^
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:371:33: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
int arg = info[2]->Int32Value();
^
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:375:51: warning: ‘v8::Local Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
if (result == -1) return Nan::ThrowError(Nan::NanErrnoException(errno));
^~~~~~~~~~~~~~~~~
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1035:46: note: declared here
NAN_DEPRECATED inline v8::Local NanErrnoException(
^~~~~~~~~~~~~~~~~
../fs-ext.cc:375:74: warning: ‘v8::Local Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
if (result == -1) return Nan::ThrowError(Nan::NanErrnoException(errno));
^
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1035:46: note: declared here
NAN_DEPRECATED inline v8::Local NanErrnoException(
^~~~~~~~~~~~~~~~~
../fs-ext.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE UTime(Nan::NAN_METHOD_ARGS_TYPE)’:
../fs-ext.cc:423:45: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
String::Utf8Value path(info[0]->ToString());
^
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2892:28: note: declared here
explicit Utf8Value(Local obj));
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:424:40: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
time_t atime = info[1]->IntegerValue();
^
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2476:46: note: declared here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:425:40: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
time_t mtime = info[2]->IntegerValue();
^
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2476:46: note: declared here
V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:433:47: warning: ‘v8::Local Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
if (ret != 0) return Nan::ThrowError(Nan::NanErrnoException(errno, "utime", "", *path));
^~~~~~~~~~~~~~~~~
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1035:46: note: declared here
NAN_DEPRECATED inline v8::Local NanErrnoException(
^~~~~~~~~~~~~~~~~
../fs-ext.cc:433:90: warning: ‘v8::Local Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
if (ret != 0) return Nan::ThrowError(Nan::NanErrnoException(errno, "utime", "", *path));
^
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1035:46: note: declared here
NAN_DEPRECATED inline v8::Local NanErrnoException(
^~~~~~~~~~~~~~~~~
../fs-ext.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE StatVFS(Nan::NAN_METHOD_ARGS_TYPE)’:
../fs-ext.cc:462:45: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
String::Utf8Value path(info[0]->ToString());
^
In file included from /home/pi/.node-gyp/10.15.0/include/node/v8.h:26:0,
from /home/pi/.node-gyp/10.15.0/include/node/node.h:63,
from ../fs-ext.cc:20:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:2892:28: note: declared here
explicit Utf8Value(Local obj));
^
/home/pi/.node-gyp/10.15.0/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../fs-ext.cc:469:47: warning: ‘v8::Local Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
if (ret != 0) return Nan::ThrowError(Nan::NanErrnoException(errno, "statvfs", "", *path));
^~~~~~~~~~~~~~~~~
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1035:46: note: declared here
NAN_DEPRECATED inline v8::Local NanErrnoException(
^~~~~~~~~~~~~~~~~
../fs-ext.cc:469:92: warning: ‘v8::Local Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated [-Wdeprecated-declarations]
if (ret != 0) return Nan::ThrowError(Nan::NanErrnoException(errno, "statvfs", "", *path));
^
In file included from ../fs-ext.cc:27:0:
../../nan/nan.h:1035:46: note: declared here
NAN_DEPRECATED inline v8::Local NanErrnoException(
^~~~~~~~~~~~~~~~~
SOLINK_MODULE(target) Release/obj.target/fs-ext.node
COPY Release/fs-ext.node
make: Leaving directory '/home/pi/.node-red/node_modules/fs-ext/build'
> kerberos@0.0.24 install /home/pi/.node-red/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)
make: Entering directory '/home/pi/.node-red/node_modules/kerberos/build'
CXX(target) Release/obj.target/kerberos/lib/kerberos.o
In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory
#include
^
compilation terminated.
kerberos.target.mk:103: recipe for target 'Release/obj.target/kerberos/lib/kerberos.o' failed
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
make: Leaving directory '/home/pi/.node-red/node_modules/kerberos/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 4.14.79-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/.node-red/node_modules/kerberos
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
> snappy@5.0.5 install /home/pi/.node-red/node_modules/snappy
> node-gyp rebuild
make: Entering directory '/home/pi/.node-red/node_modules/snappy/build'
CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.2/snappy-sinksource.o
CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.2/snappy-stubs-internal.o
CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.2/snappy.o
AR(target) Release/obj.target/deps/snappy/snappy.a
COPY Release/snappy.a
CXX(target) Release/obj.target/binding/src/binding.o
In file included from ../node_modules/nan/nan.h:190:0,
from ../src/./binding.h:6,
from ../src/binding.cc:1:
../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);
^~~~~~~~
In file included from ../src/./binding.h:6:0,
from ../src/binding.cc:1:
../node_modules/nan/nan.h: In function ‘v8::Local 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/./binding.h:3:0,
from ../src/binding.cc:1:
/home/pi/.node-gyp/10.15.0/include/node/node.h:177:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/pi/.node-gyp/10.15.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/./binding.h:6:0,
from ../src/binding.cc:1:
../node_modules/nan/nan.h: In function ‘v8::Local 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/./binding.h:3:0,
from ../src/binding.cc:1:
/home/pi/.node-gyp/10.15.0/include/node/node.h:170:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/pi/.node-gyp/10.15.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/./binding.h:6:0,
from ../src/binding.cc:1:
../node_modules/nan/nan.h: In function ‘v8::Local 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/./binding.h:3:0,
from ../src/binding.cc:1:
/home/pi/.node-gyp/10.15.0/include/node/node.h:163:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/pi/.node-gyp/10.15.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/./binding.h:6:0,
from ../src/binding.cc:1:
../node_modules/nan/nan.h: In member function ‘v8::Local 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/./binding.h:3:0,
from ../src/binding.cc:1:
/home/pi/.node-gyp/10.15.0/include/node/node.h:177:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/pi/.node-gyp/10.15.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^~~~~~~~~~
../src/binding.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE nodesnappy::Compress(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/binding.cc:115:51: warning: ‘v8::Local v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
if (node::Buffer::HasInstance(info[0]->ToObject())) {
^
In file included from /home/pi/.node-gyp/10.15.0/include/node/node.h:63:0,
from ../src/./binding.h:3,
from ../src/binding.cc:1:
/home/pi/.node-gyp/10.15.0/include/node/v8.h:10046:15: note: declared here
Local
When installing Mosca on a Raspberry Pi (Raspbian, fresh install), I get all kind of errors. I'm unsure where to even start solving this. See attached install output. It does work, but I keep getting these errors when installing additional nodes. Uninstalling Mosca solves this.
Background I'm switching my domotics from Windows to Raspberry Pi. I did a fresh install of Raspbian and Node-Red (using the recommended script). After that I started installing the extra Node-Red nodes. When installing node-red-contrib-MQTT-broker which wraps Mosca, I got into trouble. I tried to install Mosca on it's own, to find out if it's the wrapper or Mosca which is the issue. The latter seems to be the issue.
Install output
CLICK ME
``` pi@Dommy:~/.node-red $ npm install mosca --save npm WARN deprecated mongodb@2.1.21: Please upgrade to 2.2.19 or higher npm WARN deprecated node-uuid@1.4.8: Use uuid module instead > fs-ext@0.5.0 install /home/pi/.node-red/node_modules/fs-ext > node-gyp configure build make: Entering directory '/home/pi/.node-red/node_modules/fs-ext/build' CXX(target) Release/obj.target/fs-ext/fs-ext.o ../fs-ext.cc: In function ‘void EIO_After(uv_work_t*)’: ../fs-ext.cc:108:20: warning: ‘v8::Local