Bonjour,
Apres un redemarrage de Jeedom, le démon de RFLink ne se lancait plus !
edit : Même les dépendances ne se lançait pas pour une mise à jour.
nice: « nodejs »: Aucun fichier ou dossier de ce type
Mon Aug 22 2022 20:55:03 GMT+0200 (heure d’été d’Europe centrale) - Jeedom url : http://127.0.0.1:80/plugins/rflink/core/api/rflink.php?apikey=xxxxxxxxxxxxxxxxxxxx, gwAddress : /dev/ttyUSB1
/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:121
throw e;
^
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 93. This version of Node.js requires
NODE_MODULE_VERSION 83. 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:1144:18)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at bindings (/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:112:48)
at Object. (/var/www/html/plugins/rflink/resources/node_modules/@serialport/bindings/lib/linux.js:2:36)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32) {
code: 'ERR_DLOPEN_FAILED'
}
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module 'request'
Require stack:
- /var/www/html/plugins/rflink/resources/rflink.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object. (/var/www/html/plugins/rflink/resources/rflink.js:3:15)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/var/www/html/plugins/rflink/resources/rflink.js' ]
}
Sur le forum j’ai trouvé cette solution.
le Démon est reparti
Cependant il y a un message d’avertissement ci-dessous
root@jeedom:/var/www/html/plugins/rflink/resources# cd /var/www/html/plugins/rflink/resources && sudo npm install
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
> @serialport/bindings@9.2.8 install /var/www/html/plugins/rflink/resources/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm notice created a lockfile as package-lock.json. You should commit this file.
added 103 packages from 113 contributors and audited 103 packages in 8.782s
22 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
╭────────────────────────────────────────────────────────────────╮
│ │
│ New major version of npm available! 6.14.13 -> 8.18.0 │
│ Changelog: https://github.com/npm/cli/releases/tag/v8.18.0 │
│ Run npm install -g npm to update! │
│ │
╰────────────────────────────────────────────────────────────────╯
C’est grave Docteur ?