[2024-01-07 11:50:07]INFO : ##### Synchronisation du temps avant l'installation des dépendances...
[2024-01-07 11:50:23]INFO : ##### Synchronisation du temps terminée, lancement des dépendances.
#######################################################
# INSTALL : Zigbee2mqtt #
#######################################################
#######################################################
##### apt-get update in progress
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease
Hit:4 https://packagecloud.io/ookla/speedtest-cli/debian buster InRelease
Reading package lists...
#######################################################
##### Install or update Git
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:8.3.0-1+rpi2).
gcc is already the newest version (4:8.3.0-1+rpi2).
git is already the newest version (1:2.20.1-2+deb10u8).
make is already the newest version (4.2.1-1.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#######################################################
##### Install or update NodeJs
NodeJs 18 already installed : Nothing to do !
#######################################################
# INSTALLING : Mosquitto for Php #
#######################################################
Mosquitto for Php is already installed, nothing to do
#######################################################
##### Install Socat
Socat is already installed, nothing to do
#######################################################
##### Install yaml php and restart apache
Yaml is already installed, nothing to do
#######################################################
##### Stopping Zigbee2mqtt deamon #
Removed /etc/systemd/system/multi-user.target.wants/zigbee2mqtt.service.
#######################################################
##### First installation : Download Zigbee2mqtt git
Cloning into '/opt/zigbee2mqtt'...
#######################################################
##### Install/Update Zigbee2mqtt
npm ERR! Cannot read properties of undefined (reading 'ajv')
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2024-01-07T10_52_14_603Z-debug.log
#######################################################
##### Configure deamon and start it
Created symlink /etc/systemd/system/multi-user.target.wants/zigbee2mqtt.service -> /etc/systemd/system/zigbee2mqtt.service.
#######################################################
# END #
#######################################################
On trouve les problèmes suivants :
Install/Update Zigbee2mqtt
npm ERR! Cannot read properties of undefined (reading ‹ ajv ›)
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2024-01-07T10_52_14_603Z-debug.log
Malheureusement je n’arrive pas à accéder au répertoire root - Access Denied - donc je ne peux pas voir le log…
Mes versions :
nodejs -v v18.19.0
node -v v18.19.0
arrêté le démon (cliquer « Désactiver » Gestion automatique)
sudo rm -Rf /opt/zigbee2mqtt
remettre le démon en démarrge auto (cliquer « Activer » Gestion automatique)
relancer les dépendances
Mais cela ne fonctionne toujours pas… et aucun message d’erreur cette fois.
#######################################################
# INSTALL : Zigbee2mqtt #
#######################################################
#######################################################
##### apt-get update in progress
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease
Hit:4 https://packagecloud.io/ookla/speedtest-cli/debian buster InRelease
Reading package lists...
#######################################################
##### Install or update Git
Reading package lists...
Building dependency tree...
Reading state information...
g++ is already the newest version (4:8.3.0-1+rpi2).
gcc is already the newest version (4:8.3.0-1+rpi2).
git is already the newest version (1:2.20.1-2+deb10u8).
make is already the newest version (4.2.1-1.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#######################################################
##### Install or update NodeJs
NodeJs 18 already installed : Nothing to do !
#######################################################
# INSTALLING : Mosquitto for Php #
#######################################################
Mosquitto for Php is already installed, nothing to do
#######################################################
##### Install Socat
Socat is already installed, nothing to do
#######################################################
##### Install yaml php and restart apache
Yaml is already installed, nothing to do
#######################################################
##### Stopping Zigbee2mqtt deamon #
Removed /etc/systemd/system/multi-user.target.wants/zigbee2mqtt.service.
#######################################################
##### Update : Download update from Zigbee2mqtt git
From https://github.com/Koenkk/zigbee2mqtt
* [new tag] 1.35.1 -> 1.35.1
##### up to date
#######################################################
##### Configure deamon and start it
Created symlink /etc/systemd/system/multi-user.target.wants/zigbee2mqtt.service → /etc/systemd/system/zigbee2mqtt.service.
#######################################################
# END #
#######################################################
Après la mise à jour de npm en 10.2.5 et la suppression du répertoire /opt/zigbee2mqtt, j’ai éteins le système complètement pendant 10 minutes. J’ai relancé jeedom et j’ai eu - enfin - les options Experts. J’ai lancé une réparation, et cela a fini par fonctionner.
Finalement, je confirme que l’upgrade de npm résout le Pb, même sans redémarrer jeedom.
Par contre, je suis sous debian et la commande sudo npm update -g ne fonctionne pas. C’est ce qui m’a induit en erreur.
J’ai utilisé la commande npm install npm -g