Re: zigbee2mqtt, passerelle low cost
Publié : 02 déc. 2019, 17:10
Forum sur Jeedom
https://www.jeedom.com/forum/
Après mise à jour de Zigbee2Mqtt en version 1.7.1 j'ai résolu le problème ci-dessus.kbaretti a écrit : ↑02 déc. 2019, 22:54Bonjour, malgré de nombreuses tentatives de résolution de ce soucis avec les différentes choses que j'ai trouvé sur internet, impossible de réussir.
Pouvez vous m'aider ?
> zigbee2mqtt@1.6.0 start /opt/zigbee2mqtt
> node index.js
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module 'zigbee-herdsman/dist/deprecated/ziee'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/opt/zigbee2mqtt/lib/zapp/cie.js:6:14)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.6.0 start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.6.0 start 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! /home/pi/.npm/_logs/2019-12-02T21_52_36_635Z-debug.log
Code : Tout sélectionner
pi@raspberrypi:/opt/zigbee2mqtt $ npm start
> zigbee2mqtt@1.7.1 start /opt/zigbee2mqtt
> node index.js
Zigbee2mqtt requires node version 10, you are running v12.13.1!
zigbee2mqtt:info 2019-12-03T00:11:15: Logging to directory: '/opt/zigbee2mqtt/data/log/2019-12-03.00-11-11'
(node:31079) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/opt/zigbee2mqtt/data/log/2019-11-16.00-46-01'
at Object.statSync (fs.js:915:3)
at /opt/zigbee2mqtt/lib/util/logger.js:70:40
at Array.map (<anonymous>)
at DerivedLogger.cleanup (/opt/zigbee2mqtt/lib/util/logger.js:68:57)
at Controller.start (/opt/zigbee2mqtt/lib/controller.js:86:16)
at Object.<anonymous> (/opt/zigbee2mqtt/index.js:11:12)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
(node:31079) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:31079) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Code : Tout sélectionner
Error: The module '/var/www/html/plugins/rflink/resources/node_modules/@serialport/bindings/build/Release/bindings.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 72. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at bindings (/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:112:48)
at Object.<anonymous> (/var/www/html/plugins/rflink/resources/node_modules/@serialport/bindings/lib/linux.js:2:36)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/var/www/html/plugins/rflink/resources/node_modules/@serialport/bindings/lib/index.js:14:22)
Je t'ai répondu sur ton autre sujet.kbaretti a écrit : ↑03 déc. 2019, 01:20Après mise à jour de Zigbee2Mqtt en version 1.7.1 j'ai résolu le problème ci-dessus.kbaretti a écrit : ↑02 déc. 2019, 22:54Bonjour, malgré de nombreuses tentatives de résolution de ce soucis avec les différentes choses que j'ai trouvé sur internet, impossible de réussir.
Pouvez vous m'aider ?
> zigbee2mqtt@1.6.0 start /opt/zigbee2mqtt
> node index.js
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module 'zigbee-herdsman/dist/deprecated/ziee'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/opt/zigbee2mqtt/lib/zapp/cie.js:6:14)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! zigbee2mqtt@1.6.0 start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the zigbee2mqtt@1.6.0 start 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! /home/pi/.npm/_logs/2019-12-02T21_52_36_635Z-debug.log
Mais désormais je suis embêté avec la version de Node entre mon RfLink et ma clé Zigbee2Mqtt.
Si je laisse Node avec la version de l'installation des dépendances du RFLink j'ai ce message quand je fais un Npm Start :
Si je downgrade Node pour convenir à ce que demande Zigbee2Mqtt j'ai un soucis avec RFLink et je n'arrive pas à re compilé comme demandé :Code : Tout sélectionner
pi@raspberrypi:/opt/zigbee2mqtt $ npm start > zigbee2mqtt@1.7.1 start /opt/zigbee2mqtt > node index.js Zigbee2mqtt requires node version 10, you are running v12.13.1! zigbee2mqtt:info 2019-12-03T00:11:15: Logging to directory: '/opt/zigbee2mqtt/data/log/2019-12-03.00-11-11' (node:31079) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/opt/zigbee2mqtt/data/log/2019-11-16.00-46-01' at Object.statSync (fs.js:915:3) at /opt/zigbee2mqtt/lib/util/logger.js:70:40 at Array.map (<anonymous>) at DerivedLogger.cleanup (/opt/zigbee2mqtt/lib/util/logger.js:68:57) at Controller.start (/opt/zigbee2mqtt/lib/controller.js:86:16) at Object.<anonymous> (/opt/zigbee2mqtt/index.js:11:12) at Module._compile (internal/modules/cjs/loader.js:959:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10) at Module.load (internal/modules/cjs/loader.js:815:32) at Function.Module._load (internal/modules/cjs/loader.js:727:14) (node:31079) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:31079) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Est ce quelqu'un utilise un RFLink avec une clé Zigbee2Mqtt et pourrait m'aider ?Code : Tout sélectionner
Error: The module '/var/www/html/plugins/rflink/resources/node_modules/@serialport/bindings/build/Release/bindings.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 72. This version of Node.js requires NODE_MODULE_VERSION 64. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`). at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at bindings (/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:112:48) at Object.<anonymous> (/var/www/html/plugins/rflink/resources/node_modules/@serialport/bindings/lib/linux.js:2:36) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (/var/www/html/plugins/rflink/resources/node_modules/@serialport/bindings/lib/index.js:14:22)
Merci d'avance.
Bonne nuit