Hallo,
ich habe versucht auf die neue Node Version 10 x64 umzustellen.
Bisher nutze ich die Version 8.12.0 x86.
Folgendes Passiert.
pi@386pi:~/Downloads $ cd node-v10.13.0-linux-x64/
pi@386pi:~/Downloads/node-v10.13.0-linux-x64 $ sudo npm cache clean -f
npm WARN using --force I sure hope you know what you are doing.
pi@386pi:~/Downloads/node-v10.13.0-linux-x64 $ sudo cp -R * /usr/local/
pi@386pi:~/Downloads/node-v10.13.0-linux-x64 $ node -v
v10.13.0
pi@386pi:~/Downloads/node-v10.13.0-linux-x64 $ npm -v
6.4.1
pi@386pi:~/Downloads/node-v10.13.0-linux-x64 $
pi@386pi:~/Downloads/node-v10.13.0-linux-x64 $ sudo npm install -g --unsafe-perm homebridge@latest
/usr/local/bin/homebridge -> /usr/local/lib/node_modules/homebridge/bin/homebridge
+ [email protected]
updated 1 package in 6.826s
pi@386pi:~/Downloads/node-v10.13.0-linux-x64 $
Dann Start Homebridge
Nov 04 16:04:42 386pi systemd[1]: Started Node.js HomeKit Server.
Nov 04 16:04:42 386pi homebridge[7758]: /usr/local/lib/node_modules/homebridge/node_modules/bindings/bindings.js:88
Nov 04 16:04:42 386pi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 16:04:42 386pi systemd[1]: homebridge.service: Unit entered failed state.
Nov 04 16:04:42 386pi systemd[1]: homebridge.service: Failed with result 'exit-code'.
Nov 04 16:04:52 386pi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.
Nov 04 16:04:52 386pi systemd[1]: Stopped Node.js HomeKit Server.
Nov 04 16:04:52 386pi systemd[1]: Started Node.js HomeKit Server.
Nov 04 16:04:53 386pi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE
Nov 04 16:04:53 386pi systemd[1]: homebridge.service: Unit entered failed state.
Nov 04 16:04:53 386pi systemd[1]: homebridge.service: Failed with result 'exit-code'.
Dann rebuild
pi@386pi:/usr/local/lib/node_modules $ sudo npm rebuild --unsafe-perm
> [email protected] install /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n
> node-gyp rebuild
make: Verzeichnis „/usr/local/lib/node_modules/homebridge/node_modules/curve25519-n/build“ wird betreten
CXX(target) Release/obj.target/curve/node_curve.o
In file included from ../node_curve.cc:1:0:
/usr/include/string.h:26:36: fatal error: bits/libc-header-start.h: Datei oder Verzeichnis nicht gefunden
#include <bits/libc-header-start.h>
^
compilation terminated.
curve.target.mk:101: die Regel für Ziel „Release/obj.target/curve/node_curve.o“ scheiterte
make: *** [Release/obj.target/curve/node_curve.o] Fehler 1
make: Verzeichnis „/usr/local/lib/node_modules/homebridge/node_modules/curve25519-n/build“ wird verlassen
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: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.15.0-3-amd64
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 /usr/local/lib/node_modules/homebridge/node_modules/curve25519-n
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-11-04T15_06_24_098Z-debug.log
pi@386pi:/usr/local/lib/node_modules $
Kopiere ich jetzt das "alte" 8.12.0 x86 wider nach /usr/local rennt die homebridge wieder.
Habt Ihr einen guten Tipp?
Danke