Running from a raspberry pi installed with xbian (using debian?!).
Had a crash of my sd card and had to re-install everything.
Again followed my notes and the wiki to install pimatic.
Pimatic is running, but somehoiw I cant get homeduino to install. it gives errors when it is installing the depentant module serial.
13:17:31.188 [pimatic] info: Starting pimatic version 0.9.43
13:17:31.220 [pimatic] info: Node.js version 6.14.3
13:17:31.227 [pimatic] info: OpenSSL version 1.0.2o
13:17:36.589 [pimatic, ppm] info: 2.15.12
13:17:36.716 [pimatic] info: Loading plugin: "pimatic-cron" (0.8.8)
13:17:38.224 [pimatic] info: Loading plugin: "pimatic-mobile-frontend" (0.9.12)
13:17:40.035 [pimatic-cron] info: the time is: Sat Jul 07 2018 13:17:40 GMT+0000 (UTC)
13:17:41.269 [pimatic-mobile-frontend] info: packing static assets
13:17:42.108 [pimatic-mobile-frontend] info: packing static assets finished
13:17:42.130 [pimatic-mobile-frontend] info: rendering html
13:18:06.832 [pimatic-mobile-frontend] info: rendering html finished
13:18:07.008 [pimatic] info: Listening for HTTP-request on port 880...
...
...
13:20:07.243 [pimatic] info: Installing: "pimatic-homeduino@0.9.11" from npm-registry.
13:20:59.247 [pimatic, ppm] info: > serialport@2.0.6 install /home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport
13:20:59.257 [pimatic, ppm] info: > node-pre-gyp install --fallback-to-build
13:21:16.891 [pimatic, ppm] info: make: Entering directory '/home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/build'
13:21:16.910 [pimatic, ppm] info: CXX(target) Release/obj.target/serialport/src/serialport.o
13:21:21.217 [pimatic, ppm] info: In file included from ../node_modules/nan/nan.h:182:0,
13:21:21.236 [pimatic, ppm] info: from ../src/serialport.h:5,
13:21:21.244 [pimatic, ppm] info: from ../src/serialport.cpp:3:
13:21:21.256 [pimatic, ppm] info: ../node_modules/nan/nan_maybe_43_inl.h: In function ‘Nan::MaybeLocal<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array>, uint32_t)’:
13:21:21.278 [pimatic, ppm] info: ../node_modules/nan/nan_maybe_43_inl.h:221:58: warning: ‘v8::MaybeLocal<v8::Object> v8::Array::CloneElementAt(v8::Local<v8::Context>, uint32_t)’ is deprecated: Cloning is not supported. [-Wdeprecated-declarations]
13:21:21.286 [pimatic, ppm] info: return array->CloneElementAt(GetCurrentContext(), index);
13:21:21.302 [pimatic, ppm] info: ^
13:21:21.517 [pimatic, ppm] info: In file included from /home/xbian/pimatic-app/.node-gyp/6.14.3/include/node/v8.h:25:0,
13:21:21.529 [pimatic, ppm] info: from /home/xbian/pimatic-app/.node-gyp/6.14.3/include/node/node.h:42,
13:21:21.538 [pimatic, ppm] info: from ../node_modules/nan/nan.h:24,
13:21:21.546 [pimatic, ppm] info: from ../src/serialport.h:5,
13:21:21.556 [pimatic, ppm] info: from ../src/serialport.cpp:3:
13:21:21.562 [pimatic, ppm] info: /home/xbian/pimatic-app/.node-gyp/6.14.3/include/node/v8.h:3032:36: note: declared here
13:21:21.596 [pimatic, ppm] info: MaybeLocal<Object> CloneElementAt(Local<Context> context,
13:21:21.603 [pimatic, ppm] info: ^
13:21:21.618 [pimatic, ppm] info: /home/xbian/pimatic-app/.node-gyp/6.14.3/include/node/v8config.h:333:3: note: in definition of macro ‘V8_DEPRECATED’
13:21:21.634 [pimatic, ppm] info: declarator __attribute__((deprecated(message)))
13:21:21.643 [pimatic, ppm] info: ^~~~~~~~~~
13:21:21.649 [pimatic, ppm] info: In file included from ../node_modules/nan/nan_new.h:189:0,
13:21:21.656 [pimatic, ppm] info: from ../node_modules/nan/nan.h:188,
13:21:21.662 [pimatic, ppm] info: from ../src/serialport.h:5,
13:21:21.673 [pimatic, ppm] info: from ../src/serialport.cpp:3:
....
....
....
13:21:24.271 [pimatic, ppm] info: from ../node_modules/nan/nan.h:24,
13:21:24.276 [pimatic, ppm] info: from ../src/serialport.h:5,
13:21:24.281 [pimatic, ppm] info: from ../src/serialport.cpp:3:
13:21:24.286 [pimatic, ppm] info: /home/xbian/pimatic-app/.node-gyp/6.14.3/include/node/v8.h:8214:14: note: declared here
13:21:24.294 [pimatic, ppm] info: Local<Int32> Value::ToInt32() const {
13:21:24.299 [pimatic, ppm] info: ^~~~~
13:21:24.316 [pimatic, ppm] info: ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
13:21:24.334 [pimatic, ppm] info: ../src/serialport.cpp:603:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
13:21:24.340 [pimatic, ppm] info: int fd = info[0]->ToInt32()->Int32Value();
13:21:24.348 [pimatic, ppm] info: ^
13:21:24.354 [pimatic, ppm] info: In file included from /home/xbian/pimatic-app/.node-gyp/6.14.3/include/node/node.h:42:0,
13:21:24.359 [pimatic, ppm] info: from ../node_modules/nan/nan.h:24,
13:21:24.369 [pimatic, ppm] info: from ../src/serialport.h:5,
13:21:24.373 [pimatic, ppm] info: from ../src/serialport.cpp:3:
13:21:24.379 [pimatic, ppm] info: /home/xbian/pimatic-app/.node-gyp/6.14.3/include/node/v8.h:8214:14: note: declared here
13:21:24.383 [pimatic, ppm] info: Local<Int32> Value::ToInt32() const {
13:21:24.388 [pimatic, ppm] info: ^~~~~
13:21:25.813 [pimatic, ppm] info: make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
13:21:25.821 [pimatic, ppm] info: gyp ERR! build error
13:21:25.828 [pimatic, ppm] info: gyp ERR! stack Error: `make` failed with exit code: 2
13:21:25.835 [pimatic, ppm] info: gyp ERR! stack at ChildProcess.onExit (/home/xbian/pimatic-app/node_modules/npm/node_modules/node-gyp/lib/build.js:285:23)
13:21:25.842 [pimatic, ppm] info: gyp ERR! stack at emitTwo (events.js:106:13)
13:21:25.848 [pimatic, ppm] info: gyp ERR! stack at ChildProcess.emit (events.js:191:7)
13:21:25.884 [pimatic, ppm] info: gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
13:21:25.890 [pimatic, ppm] info: gyp ERR! System Linux 4.14.52+
13:21:25.895 [pimatic, ppm] info: gyp ERR! command "/usr/bin/node" "/home/xbian/pimatic-app/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/build/Release/node-v48-linux-arm/serialport.node" "--module_name=serialport" "--module_path=/home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/build/Release/node-v48-linux-arm"
13:21:25.902 [pimatic, ppm] info: gyp ERR! cwd /home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport
13:21:25.918 [pimatic, ppm] info: gyp ERR! node -v v6.14.3
13:21:25.937 [pimatic, ppm] info: gyp ERR! node-gyp -v v3.6.0
13:21:25.943 [pimatic, ppm] info: gyp ERR! not ok
13:21:25.949 [pimatic, ppm] info: node-pre-gyp ERR! build error
13:21:25.961 [pimatic, ppm] info: node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /home/xbian/pimatic-app/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/build/Release/node-v48-linux-arm/serialport.node --module_name=serialport --module_path=/home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/build/Release/node-v48-linux-arm' (1)
13:21:25.967 [pimatic, ppm] info: node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
13:21:25.972 [pimatic, ppm] info: node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
13:21:25.978 [pimatic, ppm] info: node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
13:21:25.985 [pimatic, ppm] info: node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:920:16)
13:21:26.003 [pimatic, ppm] info: node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
13:21:26.016 [pimatic, ppm] info: node-pre-gyp ERR! System Linux 4.14.52+
13:21:26.023 [pimatic, ppm] info: node-pre-gyp ERR! command "/usr/bin/node" "/home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
13:21:26.029 [pimatic, ppm] info: node-pre-gyp ERR! cwd /home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport
13:21:26.038 [pimatic, ppm] info: node-pre-gyp ERR! node -v v6.14.3
13:21:26.050 [pimatic, ppm] info: node-pre-gyp ERR! node-pre-gyp -v v0.6.18
13:21:26.058 [pimatic, ppm] info: node-pre-gyp ERR! not ok
13:21:26.065 [pimatic, ppm] info: ERR! Linux 4.14.52+
13:21:26.072 [pimatic, ppm] info: ERR! argv "/usr/bin/node" "/home/xbian/pimatic-app/node_modules/pimatic/ppm.js" "install" "pimatic-homeduino@0.9.11" "--unsafe-perm"
13:21:26.080 [pimatic, ppm] info: ERR! node v6.14.3
13:21:26.087 [pimatic, ppm] info: ERR! npm v2.15.12
13:21:26.093 [pimatic, ppm] info: ERR! code ELIFECYCLE
13:21:26.099 [pimatic, ppm] info: ERR! serialport@2.0.6 install: `node-pre-gyp install --fallback-to-build`
13:21:26.105 [pimatic, ppm] info: ERR! Exit status 1
13:21:26.111 [pimatic, ppm] info: ERR!
13:21:26.118 [pimatic, ppm] info: ERR! Failed at the serialport@2.0.6 install script 'node-pre-gyp install --fallback-to-build'.
13:21:26.122 [pimatic, ppm] info: ERR! This is most likely a problem with the serialport package,
13:21:26.128 [pimatic, ppm] info: ERR! not with npm itself.
13:21:26.132 [pimatic, ppm] info: ERR! Tell the author that this fails on your system:
13:21:26.137 [pimatic, ppm] info: ERR! node-pre-gyp install --fallback-to-build
13:21:26.144 [pimatic, ppm] info: ERR! You can get information on how to open an issue for this project with:
13:21:26.149 [pimatic, ppm] info: ERR! npm bugs serialport
13:21:26.154 [pimatic, ppm] info: ERR! Or if that isn't available, you can get their info via:
13:21:26.158 [pimatic, ppm] info: ERR!
13:21:26.163 [pimatic, ppm] info: ERR! npm owner ls serialport
13:21:26.169 [pimatic, ppm] info: ERR! There is likely additional logging output above.
13:21:26.237 [pimatic, ppm] info: serialport.target.mk:94: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
13:21:26.252 [pimatic, ppm] info: make: Leaving directory '/home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/build'
13:21:26.258 [pimatic, ppm] info: Failed to execute '/usr/bin/node /home/xbian/pimatic-app/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/build/Release/node-v48-linux-arm/serialport.node --module_name=serialport --module_path=/home/xbian/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/build/Release/node-v48-linux-arm' (1)
13:21:37.100 [pimatic, ppm] info: ERR! Please include the following file with any support request:
13:21:37.114 [pimatic, ppm] info: ERR! /home/xbian/pimatic-app/npm-debug.log
13:21:37.201 [pimatic] error: Error installing plugin pimatic-homeduino: Error running "./node_modules/pimatic/ppm.js install pimatic-homeduino@0.9.11 --unsafe-perm"
[/code]>
Why it it trying to use an old serial version?!? Is that the problem? How to fix?