Instal dépendances ZwaveJS impossible

Bonjour à tous,

Suite à un crash de mon Jeedom, j’ai du procéder à une réinstallation complète de mon Jeedom. Je suis sur Raspberry 4.

Tout est ok, sauf que je n’arrive pas à installer les dépendances du plugin.
J’ai procédé à une vérification de Jeedom qui remonte tout OK, un rétablissement des droits, une commande :

thomas@jeedom:~ $ sudo yarn cache clean
yarn cache v1.22.21
success Cleared cache.
Done in 62.33s.

Mais impossible de les installer. Elle apparaissent en OK, mais le demon ne s’initialise pas.
Ci dessous le log zwavejs-packages ainsi que le log zwavejsd.

  • echo ‹ *Begin of package installation ›
    *Begin of package installation
  • touch /tmp/jeedom_install_in_progress_zwavejs
  • echo 1
  • echo 2
  • sudo chmod +x /var/www/html/core/class/…/…/plugins/zwavejs/resources/pre_install.sh
  • sudo /var/www/html/core/class/…/…/plugins/zwavejs/resources/pre_install.sh
  • echo ‹ Pre installation de l ›'‹ installation/mise à jour des dépendances zwavejs ›
    Pre installation de l’installation/mise à jour des dépendances zwavejs
    +++ dirname /var/www/html/core/class/…/…/plugins/zwavejs/resources/pre_install.sh
    ++ cd /var/www/html/core/class/…/…/plugins/zwavejs/resources
    ++ pwd
  • BASEDIR=/var/www/html/plugins/zwavejs/resources
  • cd /var/www/html/plugins/zwavejs/resources
  • source …/core/config/zwavejs.config.ini
  • echo ‹ Wanted Version: 9.6.2 ›
    Wanted Version: 9.6.2
  • rm -R zwave-js-ui
  • git clone --branch v9.6.2 --depth 1 GitHub - zwave-js/zwave-js-ui: Full featured Z-Wave Control Panel UI and MQTT gateway. Built using Nodejs, and Vue/Vuetify
    Cloning into ‹ zwave-js-ui ›…
    Note: checking out ‹ 6e369a1bc8fac7ea92a3c069e808a46b42c68a8d ›.

You are in ‹ detached HEAD › state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

  • echo ‹ Pre install finished ›
    Pre install finished
  • echo 3
  • sudo chmod +x /var/www/html/core/class/…/…/plugins/zwavejs/resources/post_install.sh
  • sudo /var/www/html/core/class/…/…/plugins/zwavejs/resources/post_install.sh
  • echo ‹ Post installation de l ›'‹ installation/mise à jour des dépendances zwavejs ›
    Post installation de l’installation/mise à jour des dépendances zwavejs
    +++ dirname /var/www/html/core/class/…/…/plugins/zwavejs/resources/post_install.sh
    ++ cd /var/www/html/core/class/…/…/plugins/zwavejs/resources
    ++ pwd
  • BASEDIR=/var/www/html/plugins/zwavejs/resources
  • cd /var/www/html/plugins/zwavejs/resources
  • cd zwave-js-ui
  • sudo yarn install
    yarn install v1.22.21
    info No lockfile found.
    warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
    [1/5] Validating package.json…
    [2/5] Resolving packages…
    warning csurf@1.11.0: Please use another csrf package
    warning native-url > querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
    warning vue@2.7.16: Vue 2 has reached EOL and is no longer actively maintained. See Vue.js for more details.
    warning @types/extract-zip@2.0.1: This is a stub types definition. extract-zip provides its own type definitions, so you do not need this installed.
    warning vite-plugin-pwa > workbox-build > rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
    warning vite-plugin-pwa > workbox-build > workbox-google-analytics@7.0.0: It is not compatible with newer versions of GA starting with v4, as long as you are using GAv3 it should be ok, but the package is not longer being maintained
    warning vite-plugin-pwa > workbox-build > @surma/rollup-plugin-off-main-thread > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
    [3/5] Fetching packages…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    error Error: https://registry.yarnpkg.com/prismjs/-/prismjs-1.29.0.tgz: ESOCKETTIMEDOUT
    at ClientRequest. (/usr/lib/node_modules/yarn/lib/cli.js:141501:19)
    at Object.onceWrapper (node:events:631:28)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.emitRequestTimeout (node:_http_client:847:9)
    at Object.onceWrapper (node:events:631:28)
    at TLSSocket.emit (node:events:529:35)
    at Socket._onTimeout (node:net:598:8)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)
    info Visit yarn install | Yarn for documentation about this command.
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
    info There appears to be trouble with your network connection. Retrying…
  • sudo yarn run build
    yarn run v1.22.21
    $ npm-run-all ‹ build:* ›
    /bin/sh: 1: npm-run-all: not found
    error Command failed with exit code 127.
    info Visit yarn run | Yarn for documentation about this command.
  • chown -R www-data:www-data CHANGELOG.md LICENSE README.md SECURITY.md api certs docker docs esbuild-register.js esbuild.js genereteDocs.ts index.html kubernetes kustomization.yaml nodemon.json package-lock.json package.json package.sh pkg public server_config.js snippets src store test tsconfig.eslint.json tsconfig.json vite.config.js wallaby.js
  • ‹ [ › -e /dev/ttyAMA0 ‹ ] ›
  • sudo sed -i ‹ s/console=ttyAMA0,115200//; s/kgdboc=ttyAMA0,115200// › /boot/cmdline.txt
  • sudo sed -i ‹ s|[^:]:[^:]:respawn:/sbin/getty[^:]ttyAMA0[^:]|| › /etc/inittab
    sed: can’t read /etc/inittab: No such file or directory
  • ‹ [ › -e /dev/ttymxc0 ‹ ] ›
  • ‹ [ › -e /dev/ttyAMA0 ‹ ] ›
  • sudo systemctl mask serial-getty@ttyAMA0.service
  • sudo systemctl stop serial-getty@ttyAMA0.service
    ++ grep Revision /proc/cpuinfo
    ++ cut -d: -f2
    ++ tr -d ’ ’
  • RPI_BOARD_REVISION=c03112
  • [[ c03112 == a\8 ]]
  • [[ c03112 == a\8 ]]
  • [[ c03112 == a\d ]]
  • echo ‹ Everything is successfully installed! ›
    Everything is successfully installed!
  • echo 4
  • php /var/www/html/core/class/…/php/jeecli.php plugin dependancy_end zwavejs
  • rm /tmp/jeedom_install_in_progress_zwavejs
  • echo ‹ *End of package installation ›
    *End of package installation

yarn run v1.22.21
$ node --preserve-symlinks server/bin/www.js
node:internal/modules/cjs/loader:1137
throw err;
^
Error: Cannot find module ‹ /var/www/html/plugins/zwavejs/resources/zwave-js-ui/server/bin/www.js ›
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49 {
code: ‹ MODULE_NOT_FOUND ›,
requireStack:
}
Node.js v18.19.1
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.

Pourriez vous m’aiguiller ?

Merci beaucoup

Thomas

T’as des soucis de connexion internet ?

Merci beaucoup pour ton aide.
Mon raspberry était connecté à internet (comme j’ai installé Jeedom via une ligne de commande, je suppose qu’il a téléchargé les éléments depuis le net)
En revanche, j’avais oublié de remettre en place le certificat SSL.
Une fois Certbot installé et le certificat réactivé, tout s’est passé sans soucis.

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.