J’ai installé le plugin Ikea-Light, j’ai lancé à plusieurs reprises les dépendances, mais le deamon ne veut pas démarrer… Le log me dit :
[2020-05-21 17:13:58][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2020-05-21 17:14:30][ERROR] : Impossible de lancer le démon ikealightd, vérifiez le log
module.js:549
throw err;
^
Error: Cannot find module 'node-aead-crypto'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/ikealight/resources/ikealightd/node_modules/node-tradfri-client/node_modules/node-coap-client/node_modules/node-dtls-client/build/lib/AEADCrypto.js:54:47)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
Je complète… je viens de voir que les dépendances ne s’installent pas si bien que ça… Je suis en nodejs v8… est-ce la raison de l’erreur ?
Setting up npm (1.4.21+ds-2) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
(node:15853) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm WARN engine semver@7.3.2: wanted: {"node":">=10"} (current: {"node":"8.11.1","npm":"1.4.21"})
> node-aead-crypto@2.2.0 preinstall /var/www/html/plugins/ikealight/resources/ikealightd/node_modules/node-tradfri-client/node_modules/node-coap-client/node_modules/node-dtls-client/node_modules/node-aead-crypto
> node lib/preinstall.js
running rpi1 installation script
(node:20664) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
> node-aead-crypto@2.2.0 install:rpi1 /var/www/html/plugins/ikealight/resources/ikealightd/node_modules/node-tradfri-client/node_modules/node-coap-client/node_modules/node-dtls-client/node_modules/node-aead-crypto
> prebuild-install --build-from-source
npm ERR! node-aead-crypto@2.2.0 install:rpi1: `prebuild-install --build-from-source`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-aead-crypto@2.2.0 install:rpi1 script.
npm ERR! This is most likely a problem with the node-aead-crypto package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! prebuild-install --build-from-source
npm ERR! You can get their info via:
npm ERR! npm owner ls node-aead-crypto
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.19.66+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "run" "install:rpi1"
npm ERR! cwd /var/www/html/plugins/ikealight/resources/ikealightd/node_modules/node-tradfri-client/node_modules/node-coap-client/node_modules/node-dtls-client/node_modules/node-aead-crypto
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/html/plugins/ikealight/resources/ikealightd/node_modules/node-tradfri-client/node_modules/node-coap-client/node_modules/node-dtls-client/node_modules/node-aead-crypto/npm-debug.log
npm ERR! not ok code 0
child_process.js:644
throw err;
^
Error: Command failed: npm run install:rpi1
at checkExecSyncError (child_process.js:601:13)
at execSync (child_process.js:641:13)
at Object.<anonymous> (/var/www/html/plugins/ikealight/resources/ikealightd/node_modules/node-tradfri-client/node_modules/node-coap-client/node_modules/node-dtls-client/node_modules/node-aead-crypto/lib/install.js:22:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm WARN optional dep failed, continuing node-aead-crypto@2.2.0