following is the log, kindly help
12:24:15.873 [pimatic] Installing: “pimatic-mysensors@0.9.0” from npm-registry.
12:24:28.060 [pimatic, ppm] > serialport@2.0.6 install /home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport
12:24:28.074 [pimatic, ppm] > node-pre-gyp install --fallback-to-build
12:24:37.226 [pimatic, ppm] make: Entering directory '/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build’
12:24:37.263 [pimatic, ppm] CXX(target) Release/obj.target/serialport/src/serialport.o
12:24:46.582 [pimatic, ppm] In file included from …/node_modules/nan/nan.h:182:0,
12:24:46.800 [pimatic, ppm] from …/src/serialport.h:5,
12:24:49.185 [pimatic, ppm] from …/src/serialport.cpp:3:
12:24:50.359 [pimatic, ppm] …/node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocalv8::Object Nan::CloneElementAt(v8::Localv8::Array, uint32_t)’:
12:24:50.361 [pimatic, ppm] …/node_modules/nan/nan_maybe_43_inl.h:221:58: warning: ‘v8::MaybeLocalv8::Object v8::Array::CloneElementAt(v8::Localv8::Context, uint32_t)’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:3346): Cloning is not supported. [-Wdeprecated-declarations]
12:24:50.379 [pimatic, ppm] return array->CloneElementAt(GetCurrentContext(), index);
12:24:50.420 [pimatic, ppm] ^
12:24:52.470 [pimatic, ppm] In file included from …/node_modules/nan/nan_new.h:189:0,
12:24:52.470 [pimatic, ppm] from …/node_modules/nan/nan.h:188,
12:24:52.471 [pimatic, ppm] from …/src/serialport.h:5,
12:24:52.471 [pimatic, ppm] from …/src/serialport.cpp:3:
12:24:52.666 [pimatic, ppm] …/node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static Nan::FactoryBasev8::BooleanObject::return_t Nan::Factoryv8::BooleanObject::New(bool)’:
12:24:52.668 [pimatic, ppm] …/node_modules/nan/nan_implementation_12_inl.h:40:38: warning: ‘static v8::Localv8::Value v8::BooleanObject::New(bool)’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:4490): Pass an isolate [-Wdeprecated-declarations]
12:24:52.801 [pimatic, ppm] return v8::BooleanObject::New(value).Asv8::BooleanObject();
12:24:52.802 [pimatic, ppm] ^
12:24:52.805 [pimatic, ppm] In file included from …/src/serialport.h:5:0,
12:24:52.806 [pimatic, ppm] from …/src/serialport.cpp:3:
12:24:52.807 [pimatic, ppm] …/node_modules/nan/nan.h: At global scope:
12:24:52.811 [pimatic, ppm] …/node_modules/nan/nan.h:590:20: error: variable or field ‘AddGCEpilogueCallback’ declared void
12:24:52.816 [pimatic, ppm] v8::Isolate::GCEpilogueCallback callback
12:24:52.817 [pimatic, ppm] ^
12:24:52.818 [pimatic, ppm] …/node_modules/nan/nan.h:590:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
12:24:52.819 [pimatic, ppm] v8::Isolate::GCEpilogueCallback callback
12:24:52.868 [pimatic, ppm] ^
12:24:52.869 [pimatic, ppm] …/node_modules/nan/nan.h:591:18: error: expected primary-expression before ‘gc_type_filter’
12:24:52.870 [pimatic, ppm] , v8::GCType gc_type_filter = v8::kGCTypeAll) {
12:24:52.870 [pimatic, ppm] ^
12:24:52.871 [pimatic, ppm] …/node_modules/nan/nan.h:596:20: error: variable or field ‘RemoveGCEpilogueCallback’ declared void
12:24:52.871 [pimatic, ppm] v8::Isolate::GCEpilogueCallback callback) {
12:24:52.873 [pimatic, ppm] ^
12:24:52.874 [pimatic, ppm] …/node_modules/nan/nan.h:596:7: error: ‘GCEpilogueCallback’ is not a member of ‘v8::Isolate’
12:24:52.874 [pimatic, ppm] v8::Isolate::GCEpilogueCallback callback) {
12:24:52.875 [pimatic, ppm] ^
12:24:52.875 [pimatic, ppm] …/node_modules/nan/nan.h:601:20: error: variable or field ‘AddGCPrologueCallback’ declared void
12:24:52.876 [pimatic, ppm] v8::Isolate::GCPrologueCallback callback
12:24:52.876 [pimatic, ppm] ^
12:24:52.975 [pimatic, ppm] …/node_modules/nan/nan.h:601:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
12:24:52.976 [pimatic, ppm] v8::Isolate::GCPrologueCallback callback
12:24:53.010 [pimatic, ppm] ^
12:24:53.010 [pimatic, ppm] …/node_modules/nan/nan.h:602:18: error: expected primary-expression before ‘gc_type_filter’
12:24:53.011 [pimatic, ppm] , v8::GCType gc_type_filter = v8::kGCTypeAll) {
12:24:53.011 [pimatic, ppm] ^
12:24:53.012 [pimatic, ppm] …/node_modules/nan/nan.h:607:20: error: variable or field ‘RemoveGCPrologueCallback’ declared void
12:24:53.012 [pimatic, ppm] v8::Isolate::GCPrologueCallback callback) {
12:24:53.013 [pimatic, ppm] ^
12:24:53.020 [pimatic, ppm] …/node_modules/nan/nan.h:607:7: error: ‘GCPrologueCallback’ is not a member of ‘v8::Isolate’
12:24:53.032 [pimatic, ppm] v8::Isolate::GCPrologueCallback callback) {
12:24:53.037 [pimatic, ppm] ^
12:24:59.922 [pimatic, ppm] …/node_modules/nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Localv8::Object, v8::Localv8::String, Nan::GetterCallback, Nan::SetterCallback, v8::Localv8::Value, v8::AccessControl, v8::PropertyAttribute)’:
12:25:00.199 [pimatic, ppm] …/node_modules/nan/nan.h:1933:16: warning: ‘bool v8::Object::SetAccessor(v8::Localv8::Name, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Localv8::Value, v8::AccessControl, v8::PropertyAttribute)’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:3026): Use maybe version [-Wdeprecated-declarations]
12:25:00.200 [pimatic, ppm] , attribute);
12:25:00.201 [pimatic, ppm] ^
12:25:00.211 [pimatic, ppm] …/src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
12:25:00.214 [pimatic, ppm] …/src/serialport.cpp:115:116: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.215 [pimatic, ppm] baton->baudRate = Nan::Get(options, Nan::Newv8::String(“baudRate”).ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
12:25:00.216 [pimatic, ppm] ^
12:25:00.218 [pimatic, ppm] …/src/serialport.cpp:116:116: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.219 [pimatic, ppm] baton->dataBits = Nan::Get(options, Nan::Newv8::String(“dataBits”).ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
12:25:00.219 [pimatic, ppm] ^
12:25:00.220 [pimatic, ppm] …/src/serialport.cpp:117:120: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.221 [pimatic, ppm] baton->bufferSize = Nan::Get(options, Nan::Newv8::String(“bufferSize”).ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
12:25:00.222 [pimatic, ppm] ^
12:25:00.223 [pimatic, ppm] …/src/serialport.cpp:119:131: warning: ‘v8::Localv8::Number v8::Value::ToNumber() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9005): Use maybe version [-Wdeprecated-declarations]
12:25:00.225 [pimatic, ppm] baton->stopBits = ToStopBitEnum(Nan::Get(options, Nan::Newv8::String(“stopBits”).ToLocalChecked()).ToLocalChecked()->ToNumber()->NumberValue());
12:25:00.226 [pimatic, ppm] ^
12:25:00.227 [pimatic, ppm] …/src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
12:25:00.228 [pimatic, ppm] …/src/serialport.cpp:159:31: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.229 [pimatic, ppm] int fd = argv[1]->ToInt32()->Int32Value();
12:25:00.305 [pimatic, ppm] ^
12:25:00.306 [pimatic, ppm] …/src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
12:25:00.307 [pimatic, ppm] …/src/serialport.cpp:180:29: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.310 [pimatic, ppm] int fd = info[0]->ToInt32()->Int32Value();
12:25:00.311 [pimatic, ppm] ^
12:25:00.312 [pimatic, ppm] …/src/serialport.cpp:199:116: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.315 [pimatic, ppm] baton->baudRate = Nan::Get(options, Nan::Newv8::String(“baudRate”).ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
12:25:00.324 [pimatic, ppm] ^
12:25:00.325 [pimatic, ppm] …/src/serialport.cpp:200:116: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.868 [pimatic, ppm] baton->dataBits = Nan::Get(options, Nan::Newv8::String(“dataBits”).ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
12:25:00.873 [pimatic, ppm] ^
12:25:00.874 [pimatic, ppm] …/src/serialport.cpp:201:120: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.875 [pimatic, ppm] baton->bufferSize = Nan::Get(options, Nan::Newv8::String(“bufferSize”).ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
12:25:00.876 [pimatic, ppm] ^
12:25:00.878 [pimatic, ppm] …/src/serialport.cpp:203:131: warning: ‘v8::Localv8::Number v8::Value::ToNumber() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9005): Use maybe version [-Wdeprecated-declarations]
12:25:00.880 [pimatic, ppm] baton->stopBits = ToStopBitEnum(Nan::Get(options, Nan::Newv8::String(“stopBits”).ToLocalChecked()).ToLocalChecked()->ToNumber()->NumberValue());
12:25:00.880 [pimatic, ppm] ^
12:25:00.881 [pimatic, ppm] …/src/serialport.cpp: In function ‘void EIO_AfterUpdate(uv_work_t*)’:
12:25:00.882 [pimatic, ppm] …/src/serialport.cpp:242:31: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.890 [pimatic, ppm] int fd = argv[1]->ToInt32()->Int32Value();
12:25:00.892 [pimatic, ppm] ^
12:25:00.896 [pimatic, ppm] …/src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’:
12:25:00.896 [pimatic, ppm] …/src/serialport.cpp:263:29: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.897 [pimatic, ppm] int fd = info[0]->ToInt32()->Int32Value();
12:25:00.897 [pimatic, ppm] ^
12:25:00.898 [pimatic, ppm] …/src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
12:25:00.962 [pimatic, ppm] …/src/serialport.cpp:374:29: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.966 [pimatic, ppm] int fd = info[0]->ToInt32()->Int32Value();
12:25:00.968 [pimatic, ppm] ^
12:25:00.969 [pimatic, ppm] …/src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
12:25:00.970 [pimatic, ppm] …/src/serialport.cpp:493:29: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.971 [pimatic, ppm] int fd = info[0]->ToInt32()->Int32Value();
12:25:00.972 [pimatic, ppm] ^
12:25:00.973 [pimatic, ppm] …/src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
12:25:00.973 [pimatic, ppm] …/src/serialport.cpp:542:29: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.974 [pimatic, ppm] int fd = info[0]->ToInt32()->Int32Value();
12:25:00.980 [pimatic, ppm] ^
12:25:00.981 [pimatic, ppm] …/src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
12:25:00.983 [pimatic, ppm] …/src/serialport.cpp:603:29: warning: ‘v8::Localv8::Int32 v8::Value::ToInt32() const’ is deprecated (declared at /home/pi/pimatic-app/.node-gyp/7.8.0/include/node/v8.h:9041): Use maybe version [-Wdeprecated-declarations]
12:25:00.983 [pimatic, ppm] int fd = info[0]->ToInt32()->Int32Value();
12:25:00.984 [pimatic, ppm] ^
12:32:22.372 [pimatic, ppm] serialport.target.mk:94: recipe for target ‘Release/obj.target/serialport/src/serialport.o’ failed
12:32:22.867 [pimatic, ppm] make: Leaving directory '/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build’
12:32:23.156 [pimatic, ppm] make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
12:32:24.086 [pimatic, ppm] gyp ERR! build error
12:32:24.092 [pimatic, ppm] gyp ERR! stack Error: make
failed with exit code: 2
12:32:24.103 [pimatic, ppm] gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
12:32:24.109 [pimatic, ppm] gyp ERR! stack at emitTwo (events.js:106:13)
12:32:24.110 [pimatic, ppm] gyp ERR! stack at ChildProcess.emit (events.js:194:7)
12:32:24.111 [pimatic, ppm] gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
12:32:24.112 [pimatic, ppm] gyp ERR! System Linux 3.16.0-4-686-pae
12:32:24.121 [pimatic, ppm] gyp ERR! command “/usr/bin/nodejs” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “build” “–fallback-to-build” “–module=/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build/Release/node-v51-linux-ia32/serialport.node” “–module_name=serialport” "–module_path=/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build/Release/node-v51-linux-ia32"
12:32:24.122 [pimatic, ppm] gyp ERR! cwd /home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport
12:32:24.123 [pimatic, ppm] gyp ERR! node -v v7.8.0
12:32:24.124 [pimatic, ppm] gyp ERR! node-gyp -v v3.5.0
12:32:24.126 [pimatic, ppm] gyp ERR! not ok
12:32:24.332 [pimatic, ppm] node-pre-gyp ERR! build error
12:32:24.354 [pimatic, ppm] node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build/Release/node-v51-linux-ia32/serialport.node --module_name=serialport --module_path=/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build/Release/node-v51-linux-ia32’ (1)
12:32:24.367 [pimatic, ppm] node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
12:32:24.376 [pimatic, ppm] node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
12:32:24.379 [pimatic, ppm] node-pre-gyp ERR! stack at ChildProcess.emit (events.js:194:7)
12:32:24.380 [pimatic, ppm] node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:899:16)
12:32:24.380 [pimatic, ppm] node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
12:32:24.396 [pimatic, ppm] node-pre-gyp ERR! System Linux 3.16.0-4-686-pae
12:32:24.396 [pimatic, ppm] node-pre-gyp ERR! command “/usr/bin/nodejs” “/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/node_modules/.bin/node-pre-gyp” “install” "–fallback-to-build"
12:32:24.471 [pimatic, ppm] node-pre-gyp ERR! cwd /home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport
12:32:24.473 [pimatic, ppm] node-pre-gyp ERR! node -v v7.8.0
12:32:24.475 [pimatic, ppm] node-pre-gyp ERR! node-pre-gyp -v v0.6.18
12:32:24.479 [pimatic, ppm] node-pre-gyp ERR! not ok
12:32:24.491 [pimatic, ppm] Failed to execute ‘/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build/Release/node-v51-linux-ia32/serialport.node --module_name=serialport --module_path=/home/pi/pimatic-app/node_modules/pimatic-mysensors/node_modules/serialport/build/Release/node-v51-linux-ia32’ (1)
12:32:24.855 [pimatic, ppm] ERR! Linux 3.16.0-4-686-pae
12:32:24.862 [pimatic, ppm] ERR! argv “/usr/bin/nodejs” “/home/pi/pimatic-app/node_modules/pimatic/ppm.js” “install” “pimatic-mysensors@0.9.0” "–unsafe-perm"
12:32:24.870 [pimatic, ppm] ERR! node v7.8.0
12:32:24.871 [pimatic, ppm] ERR! npm v2.15.12
12:32:24.871 [pimatic, ppm] ERR! code ELIFECYCLE
12:32:24.871 [pimatic, ppm] ERR! serialport@2.0.6 install: node-pre-gyp install --fallback-to-build
12:32:24.873 [pimatic, ppm] ERR! Exit status 1
12:32:24.873 [pimatic, ppm] ERR!
12:32:24.874 [pimatic, ppm] ERR! Failed at the serialport@2.0.6 install script ‘node-pre-gyp install --fallback-to-build’.
12:32:24.874 [pimatic, ppm] ERR! This is most likely a problem with the serialport package,
12:32:24.876 [pimatic, ppm] ERR! not with npm itself.
12:32:24.877 [pimatic, ppm] ERR! Tell the author that this fails on your system:
12:32:24.877 [pimatic, ppm] ERR! node-pre-gyp install --fallback-to-build
12:32:24.877 [pimatic, ppm] ERR! You can get information on how to open an issue for this project with:
12:32:24.882 [pimatic, ppm] ERR! npm bugs serialport
12:32:24.926 [pimatic, ppm] ERR! Or if that isn’t available, you can get their info via:
12:32:24.936 [pimatic, ppm] ERR!
12:32:24.938 [pimatic, ppm] ERR! npm owner ls serialport
12:32:24.938 [pimatic, ppm] ERR! There is likely additional logging output above.
12:32:33.027 [pimatic, ppm] ERR! Please include the following file with any support request:
12:32:33.031 [pimatic, ppm] ERR! /home/pi/pimatic-app/npm-debug.log
12:32:33.102 [pimatic] Error installing plugin pimatic-mysensors: Error running “./node_modules/pimatic/ppm.js install pimatic-mysensors@0.9.0 --unsafe-perm”