Yes, it seems to delete the directory after failed installation.
Unfortunately, manual installation yields the same result:
pi@raspberrypi:~/pimatic-app/node_modules $ sudo service pimatic stop
pi@raspberrypi:~/pimatic-app/node_modules $ sudo npm install michbeck100/pimatic-hap --unsafe-perm
-
> curve25519-n2@1.1.3 install /home/pi/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/curve25519-n2
> node-gyp rebuild
make: Entering directory '/home/pi/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/curve25519-n2/build'
CXX(target) Release/obj.target/curve/node_curve.o
SOLINK_MODULE(target) Release/obj.target/curve.node
COPY Release/curve.node
make: Leaving directory '/home/pi/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/curve25519-n2/build'
> mdns@2.3.4 install /home/pi/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/mdns
> node-gyp rebuild
make: Entering directory '/home/pi/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/mdns/build'
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_browse.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_enumerate_domains.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_get_addr_info.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_process_result.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_deallocate.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_sock_fd.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_register.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_resolve.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_update_record.o
CXX(target) Release/obj.target/dns_sd_bindings/src/mdns_utils.o
CXX(target) Release/obj.target/dns_sd_bindings/src/network_interface.o
CXX(target) Release/obj.target/dns_sd_bindings/src/socket_watcher.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_ref.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_create.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_deallocate.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_set_value.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_get_length.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_buffer_to_object.o
SOLINK_MODULE(target) Release/obj.target/dns_sd_bindings.node
COPY Release/dns_sd_bindings.node
make: Leaving directory '/home/pi/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/mdns/build'
> ed25519@0.0.4 install /home/pi/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/ed25519
> node-gyp rebuild
make: Entering directory '/home/pi/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/ed25519/build'
CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o
../src/ed25519/keypair.c: In function ‘crypto_sign_keypair’:
../src/ed25519/keypair.c:21:1: internal compiler error: Ungültiger Maschinenbefehl
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cckKfRdG.out file, please attach this to your bugreport.
ed25519.target.mk:141: recipe for target 'Release/obj.target/ed25519/src/ed25519/keypair.o' failed
make: *** [Release/obj.target/ed25519/src/ed25519/keypair.o] Error 1
make: Leaving directory '/home/pi/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/ed25519/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.9.35-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/pimatic-app/node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/ed25519
gyp ERR! node -v v4.6.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Linux 4.9.35-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "michbeck100/pimatic-hap" "--unsafe-perm"
npm ERR! node v4.6.0
npm ERR! npm v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! ed25519@0.0.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ed25519@0.0.4 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the ed25519 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ed25519
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls ed25519
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/pimatic-app/node_modules/npm-debug.log
pi@raspberrypi:~/pimatic-app/node_modules $ ls -l
insgesamt 420
-rw-r--r-- 1 root root 332087 Dez 21 13:06 npm-debug.log
drwxrwxrwx 8 root root 4096 Okt 6 08:05 pimatic
drwxrwxrwx 6 root root 4096 Okt 6 2016 pimatic-cron
drwxrwxrwx 4 root root 4096 Dez 19 11:36 pimatic-dash-button
drwxrwxrwx 4 root root 4096 Dez 16 2016 pimatic-dht-sensors
drwxrwxrwx 6 root root 4096 Dez 15 18:15 pimatic-echo
drwxrwxrwx 4 root root 4096 Dez 18 19:33 pimatic-edimax
drwxrwxrwx 4 root root 4096 Jul 3 20:55 pimatic-fritz
drwxrwxrwx 4 root root 4096 Aug 10 21:55 pimatic-harmonyhub
drwxrwxrwx 4 root root 4096 Okt 6 2016 pimatic-homeduino
drwxrwxrwx 5 root root 4096 Mär 13 2017 pimatic-hue-zll
drwxrwxrwx 4 root root 4096 Okt 7 2016 pimatic-lcd
drwxrwxrwx 8 root root 4096 Jan 25 2017 pimatic-led-light
drwxrwxrwx 4 root root 4096 Jan 20 2017 pimatic-log-reader
drwxrwxrwx 8 root root 4096 Jul 30 16:04 pimatic-milight-reloaded
drwxrwxrwx 7 root root 4096 Okt 6 08:06 pimatic-mobile-frontend
drwxrwxrwx 4 root root 4096 Jan 9 2017 pimatic-openweather
drwxrwxrwx 5 root root 4096 Okt 6 2016 pimatic-ping
drwxrwxrwx 4 root root 4096 Okt 6 2016 pimatic-pushbullet
drwxrwxrwx 4 root root 4096 Jul 3 20:55 pimatic-shell-execute
drwxrwxrwx 4 root root 4096 Okt 6 2016 pimatic-sunrise
drwxrwxrwx 4 root root 4096 Okt 6 2016 pimatic-sysinfo
drwxrwxrwx 4 root root 4096 Dez 19 09:45 pimatic-telegram
drwxrwxrwx 7 root root 4096 Okt 6 2016 sqlite3
pi@raspberrypi:~/pimatic-app/node_modules $