Open CorentinDoue opened 5 years ago
@CorentinDoue as far as i can tell, kerberos
is an optional peer dep, so failure to install it should be survivable. snappy
comes via optional dep kafka-node
, so it also shouldn't kill install. Are you sure npm install
failed? Sometimes it prints a million scary warnings, but in the end succeeds.
Hello, I am on ubuntu 18.04 with node v10.16.0 and I am trying to install your package with
npm install serverless-iot-local
but I encountering some issues :I resolved it by installing
krb5-dev
:sudo apt-get install libkrb5-dev
Consider adding this to your read-me
make: Entering directory '/home/cdoue/theodo/serverless-nestjs-graphql-demo/serverless-backend-mqtt/node_modules/kafka-node/node_modules/snappy/build' Nan::ForceSet(v8::Local, v8::Local, v8::Local, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
^
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 ../../nan/nan.h:190:0, from ../src/./binding.h:6, from ../src/binding.cc:1: ../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe
~~~ binding.target.mk:106: recipe for target 'Release/obj.target/binding/src/binding.o' failedmake: *** [Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/home/cdoue/theodo/serverless-nestjs-graphql-demo/serverless-backend-mqtt/node_modules/kafka-node/node_modules/snappy/build'
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.15.0-52-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/cdoue/theodo/serverless-nestjs-graphql-demo/serverless-backend-mqtt/node_modules/kafka-node/node_modules/snappy
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok