Hallo AlCalzone,
ich habe auf meinem NUC testweise eine alte Version von tradfri drauf gehabt.
Nachdem der NUC jetzt mein produktives System werden soll, spiele ich dort nur funtionierende Adapter drauf. Deswegen aktualisiere ich gerade alles und da der Adapter auf meinem Testsystem jetzt gut läuft, sollte er auch auf den NUC.
Leider klappt es nicht. Während der Installation erscheint kurz das tradfri-Verzeichnis unter node_modules, dann konnte ich noch kurz lesen dass im Installationsfenster etwas von cannot parse stand, dann war auch das Verzeichnis und das Installationsfenster wieder weg.
Meine Befürchtung ist es, dass ich Debian 9 und nodejs 7 habe. letzteres wird vom admin schon angemeckert. ich möchte aber noch nicht auf 8 gehen, die ist mir zu buggy, und zurück zur 6 wollte ich auch nicht.
EDIT:
habe es gerade über die Konsole versucht:
! ````
root@ioBroker-NUC:/opt/iobroker# iobroker url https://github.com/AlCalzone/ioBroker.tradfri
install https://github.com/AlCalzone/ioBroker.tradfri/tarball/master
npm install https://github.com/AlCalzone/ioBroker.tradfri/tarball/master --production --prefix "/opt/iobroker" (System call)
node-pre-gyp ERR! Tried to download(404): https://github.com/AlCalzone/node-aes-ccm/releases/download/v1.1.2/node-v51-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-aes-ccm@1.1.2 and node@7.10.1 (node-v51 ABI) (falling back to source compile with node-gyp)
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/7.10.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/node-aes-ccm/.node-gyp"
make: *** Keine Regel vorhanden, um das Ziel „../.node-gyp/7.10.1/include/node/common.gypi“,
benötigt von „Makefile“, zu erstellen. Schluss.
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/iobroker/node_modules/npm/node_modules/node-gyp/lib/build.js:285:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.9.0-2-amd64
gyp ERR! command "/usr/bin/nodejs" "/opt/iobroker/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/node-aes-ccm/build/Release/node-v51-linux-x64/node_aes_ccm.node" "--module_name=node_aes_ccm" "--module_path=/opt/iobroker/node_modules/node-aes-ccm/build/Release/node-v51-linux-x64"
gyp ERR! cwd /opt/iobroker/node_modules/node-aes-ccm
gyp ERR! node -v v7.10.1
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /opt/iobroker/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/node-aes-ccm/build/Release/node-v51-linux-x64/node_aes_ccm.node --module_name=node_aes_ccm --module_path=/opt/iobroker/node_modules/node-aes-ccm/build/Release/node-v51-linux-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. <anonymous>(/opt/iobroker/node_modules/node-aes-ccm/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:194:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:899:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.9.0-2-amd64
node-pre-gyp ERR! command "/usr/bin/nodejs" "/opt/iobroker/node_modules/node-aes-ccm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /opt/iobroker/node_modules/node-aes-ccm
node-pre-gyp ERR! node -v v7.10.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
npm ERR! Linux 4.9.0-2-amd64
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "https://github.com/AlCalzone/ioBroker.tradfri/tarball/master" "--production" "--prefix" "/opt/iobroker"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
! npm ERR! node-aes-ccm@1.1.2 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-aes-ccm@1.1.2 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-aes-ccm package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-aes-ccm
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-aes-ccm
npm ERR! There is likely additional logging output above.
! npm ERR! Please include the following file with any support request:
npm ERR! /root/.npm/_logs/2017-08-19T20_32_04_646Z-debug.log
Cannot parse /opt/iobroker/node_modules/iobroker.js-controller/adapter/tradfri/io-package.json:Error: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.js-controller/adapter/tradfri/io-package.json'</anonymous>
EDIT2:
habe versucht das angemeckerte Paket nachzuinstallieren - ohne Erfolg, dann habe ich mich schweren Herzens entschieden nodejs auf 6.xx downzugraden jetzt läuft es.
Gruß
Rainer