+ echo '*******************Begin of package installation******************' *******************Begin of package installation****************** + touch /tmp/jeedom_install_in_progress_z2m + echo 1 + echo 2 + sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh + sudo /var/www/html/core/class/../../plugins/z2m/resources/pre-install.sh Launch pre-install of z2m dependancy + echo 3 + php /var/www/html/core/class/../php/jeecli.php plugin install mqtt2 + echo 4 + sudo killall apt apt-get unattended-upgr apt: no process found apt-get: no process found unattended-upgr: no process found + sudo rm /var/lib/apt/lists/lock + sudo rm /var/cache/apt/archives/lock + sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend + sudo sudo dpkg --configure -a --force-confdef + sudo apt update WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Hit:3 https://deb.nodesource.com/node_20.x nodistro InRelease Reading package lists... Building dependency tree... Reading state information... 307 packages can be upgraded. Run 'apt list --upgradable' to see them. + echo 5 + sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh + sudo /var/www/html/core/class/../../resources/install_nodejs.sh Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Hit:3 https://deb.nodesource.com/node_20.x nodistro InRelease Reading package lists... Reading package lists... Building dependency tree... Reading state information... apt-utils is already the newest version (2.2.4). build-essential is already the newest version (12.9). git is already the newest version (1:2.30.2-1+deb11u3). lsb-release is already the newest version (11.1.0+rpi1). The following packages were automatically installed and are no longer required: cups-pk-helper firmware-microbit-micropython fonts-inconsolata fonts-lyx gir1.2-notify-0.7 gir1.2-polkit-1.0 gir1.2-secret-1 libjs-jquery-ui libqt5charts5 libqt5designer5 libqt5help5 libqt5location5 libqt5multimedia5 libqt5multimediawidgets5 libqt5opengl5 libqt5positioningquick5 libqt5quickwidgets5 libqt5serialport5 libqt5test5 libqt5websockets5 libqt5xmlpatterns5 pyflakes3 python-matplotlib-data python3-appdirs python3-backcall python3-cups python3-cycler python3-dateutil python3-decorator python3-guizero python3-ipykernel python3-ipython python3-ipython-genutils python3-jupyter-client python3-jupyter-core python3-jwt python3-kiwisolver python3-matplotlib python3-mock python3-nudatus python3-oauthlib python3-pbr python3-pickleshare python3-prompt-toolkit python3-pycodestyle python3-pyflakes python3-pyqt5 python3-pyqt5.qsci python3-pyqt5.qtchart python3-pyqt5.qtmultimedia python3-pyqt5.qtopengl python3-pyqt5.qtpositioning python3-pyqt5.qtquick python3-pyqt5.qtserialport python3-pyqt5.qtsql python3-pyqt5.qtsvg python3-pyqt5.qtwebchannel python3-pyqt5.qtwebkit python3-pyqt5.qtwebsockets python3-pyqt5.qtxmlpatterns python3-pyqt5.sip python3-qtconsole python3-qtpy python3-semver python3-smbc python3-tornado python3-traitlets python3-uflash python3-wcwidth python3-zmq Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 307 not upgraded. [Check Version NodeJS actuelle : v20.18.0 : [ OK ] [Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [ OK ] Clean npm cache npm warn using --force Recommended protections disabled. + echo 6 + sudo apt install -o Dpkg::Options::=--force-confdef -y php-yaml WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Reading package lists... Building dependency tree... Reading state information... php-yaml is already the newest version (2.2.1+2.1.0+2.0.4+1.3.2-2). The following packages were automatically installed and are no longer required: cups-pk-helper firmware-microbit-micropython fonts-inconsolata fonts-lyx gir1.2-notify-0.7 gir1.2-polkit-1.0 gir1.2-secret-1 libjs-jquery-ui libqt5charts5 libqt5designer5 libqt5help5 libqt5location5 libqt5multimedia5 libqt5multimediawidgets5 libqt5opengl5 libqt5positioningquick5 libqt5quickwidgets5 libqt5serialport5 libqt5test5 libqt5websockets5 libqt5xmlpatterns5 pyflakes3 python-matplotlib-data python3-appdirs python3-backcall python3-cups python3-cycler python3-dateutil python3-decorator python3-guizero python3-ipykernel python3-ipython python3-ipython-genutils python3-jupyter-client python3-jupyter-core python3-jwt python3-kiwisolver python3-matplotlib python3-mock python3-nudatus python3-oauthlib python3-pbr python3-pickleshare python3-prompt-toolkit python3-pycodestyle python3-pyflakes python3-pyqt5 python3-pyqt5.qsci python3-pyqt5.qtchart python3-pyqt5.qtmultimedia python3-pyqt5.qtopengl python3-pyqt5.qtpositioning python3-pyqt5.qtquick python3-pyqt5.qtserialport python3-pyqt5.qtsql python3-pyqt5.qtsvg python3-pyqt5.qtwebchannel python3-pyqt5.qtwebkit python3-pyqt5.qtwebsockets python3-pyqt5.qtxmlpatterns python3-pyqt5.sip python3-qtconsole python3-qtpy python3-semver python3-smbc python3-tornado python3-traitlets python3-uflash python3-wcwidth python3-zmq Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 307 not upgraded. + echo 7 + sudo systemctl restart apache2 Failed to restart apache2.service: Unit apache2.service not found. + echo 8 + sudo chmod +x /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh + sudo /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh + echo Launch post-install of z2m dependancy Launch post-install of z2m dependancy + realpath /var/www/html/core/class/../../plugins/z2m/resources/post-install.sh + dirname /var/www/html/plugins/z2m/resources/post-install.sh + BASEDIR=/var/www/html/plugins/z2m/resources + [ -d /var/www/html/plugins/z2m/resources/zigbee2mqtt ] + rm -rf /var/www/html/plugins/z2m/resources/zigbee2mqtt + mkdir /var/www/html/plugins/z2m/resources/zigbee2mqtt + git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /var/www/html/plugins/z2m/resources/zigbee2mqtt Cloning into '/var/www/html/plugins/z2m/resources/zigbee2mqtt'... + cd /var/www/html/plugins/z2m/resources/zigbee2mqtt + [ -f /var/www/html/plugins/z2m/resources/../data/wanted_z2m_version ] + npm ci npm error code EUSAGE npm error npm error The `npm ci` command can only install with an existing package-lock.json or npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or npm error later to generate a package-lock.json file, then try again. npm error npm error Clean install a project npm error npm error Usage: npm error npm ci npm error npm error Options: npm error [--install-strategy ] [--legacy-bundling] npm error [--global-style] [--omit [--omit ...]] npm error [--include [--include ...]] npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit] npm error [--no-bin-links] [--no-fund] [--dry-run] npm error [-w|--workspace [-w|--workspace ...]] npm error [-ws|--workspaces] [--include-workspace-root] [--install-links] npm error npm error aliases: clean-install, ic, install-clean, isntall-clean npm error npm error Run "npm help ci" for more info npm error A complete log of this run can be found in: /root/.npm/_logs/2025-01-06T06_47_47_167Z-debug-0.log + npm run build > zigbee2mqtt@2.0.0 build > tsc && node index.js writehash sh: 1: tsc: not found + chown www-data:www-data -R /var/www/html/plugins/z2m/resources/zigbee2mqtt + echo 9 + php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end z2m rm: invalid option -- '/' Try 'rm --help' for more information. + echo 10 + rm /tmp/jeedom_install_in_progress_z2m + echo '*******************End of package installation******************' *******************End of package installation******************