Echec màj zigbee2mqtt en v2.0.0

Bonjour,
Je viens d’essayer de mettre à jour zigbee2mqtt en v2, mais le démon ne redémarre pas à la fin de l’installation.

L’extrait du log z2m_packages (z2m_packages.log (8,0 Ko))
contenant l’erreur est le suivant :

+ 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 <hoisted|nested|shallow|linked>] [--legacy-bundling]
npm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
npm error [--no-bin-links] [--no-fund] [--dry-run]
npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
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

Le log complet de l’erreur npm est le suivant :

0 verbose cli /usr/bin/node /usr/bin/npm
1 info using npm@10.8.2
2 info using node@v20.18.0
3 silly config load:file:/usr/lib/node_modules/npm/npmrc
4 silly config load:file:/var/www/html/plugins/z2m/resources/zigbee2mqtt/.npmrc
5 silly config load:file:/root/.npmrc
6 silly config load:file:/usr/etc/npmrc
7 verbose title npm ci
8 verbose argv "ci"
9 verbose logfile logs-max:10 dir:/root/.npm/_logs/2025-01-06T06_47_47_167Z-
10 verbose logfile /root/.npm/_logs/2025-01-06T06_47_47_167Z-debug-0.log
11 silly packumentCache heap:247988224 maxSize:61997056 maxEntrySize:30998528
12 silly logfile start cleaning logs, removing 1 files
13 verbose loadVirtual Error: loadVirtual requires existing shrinkwrap file
13 verbose loadVirtual     at Arborist.loadVirtual (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/load-virtual.js:51:18)
13 verbose loadVirtual     at async CI.exec (/usr/lib/node_modules/npm/lib/commands/ci.js:49:5)
13 verbose loadVirtual     at async Npm.exec (/usr/lib/node_modules/npm/lib/npm.js:207:9)
13 verbose loadVirtual     at async module.exports (/usr/lib/node_modules/npm/lib/cli/entry.js:74:5)
14 silly logfile done cleaning log files
15 verbose stack Error: 
15 verbose stack The `npm ci` command can only install with an existing package-lock.json or
15 verbose stack npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
15 verbose stack later to generate a package-lock.json file, then try again.
15 verbose stack
15 verbose stack Clean install a project
15 verbose stack
15 verbose stack Usage:
15 verbose stack npm ci
15 verbose stack
15 verbose stack Options:
15 verbose stack [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
15 verbose stack [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
15 verbose stack [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
15 verbose stack [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
15 verbose stack [--no-bin-links] [--no-fund] [--dry-run]
15 verbose stack [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
15 verbose stack [-ws|--workspaces] [--include-workspace-root] [--install-links]
15 verbose stack
15 verbose stack aliases: clean-install, ic, install-clean, isntall-clean
15 verbose stack
15 verbose stack Run "npm help ci" for more info
15 verbose stack     at CI.usageError (/usr/lib/node_modules/npm/lib/base-cmd.js:109:26)
15 verbose stack     at /usr/lib/node_modules/npm/lib/commands/ci.js:55:18
15 verbose stack     at async CI.exec (/usr/lib/node_modules/npm/lib/commands/ci.js:49:5)
15 verbose stack     at async Npm.exec (/usr/lib/node_modules/npm/lib/npm.js:207:9)
15 verbose stack     at async module.exports (/usr/lib/node_modules/npm/lib/cli/entry.js:74:5)
16 error code EUSAGE
17 error
17 error The `npm ci` command can only install with an existing package-lock.json or
17 error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
17 error later to generate a package-lock.json file, then try again.
17 error
17 error Clean install a project
17 error
17 error Usage:
17 error npm ci
17 error
17 error Options:
17 error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
17 error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
17 error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
17 error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
17 error [--no-bin-links] [--no-fund] [--dry-run]
17 error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
17 error [-ws|--workspaces] [--include-workspace-root] [--install-links]
17 error
17 error aliases: clean-install, ic, install-clean, isntall-clean
17 error
17 error Run "npm help ci" for more info
18 verbose cwd /var/www/html/plugins/z2m/resources/zigbee2mqtt
19 verbose os Linux 6.1.21-v7+
20 verbose node v20.18.0
21 verbose npm  v10.8.2
22 verbose exit 1
23 verbose code 1
24 error A complete log of this run can be found in: /root/.npm/_logs/2025-01-06T06_47_47_167Z-debug-0.log

Mon dongle Zigbee est un Sonoff Zigbee 3.0 USB Dongle Plus Model ZBDongle-E
Le firmware est le ncp-uart-sw_EZNet7.4.3_V1.0.0.gbl

Je ne suis pas bloqué car je suis redescendu en version 1.42.0 et tout fonctionne.
Mais cette erreur sera peut-être constatée par d’autres utilisateurs.

Si quelqu’un a une idée de la cause…

Bonne année 2025 à tous et bravo encore pour votre aide précieuse.

Bonjour,

Doublon, veuillez lire les derniers sujets d’un plugin avant de poster: Sujets avec l'étiquette plugin-z2m

de plus, mauvais tag, ca va pas aider pour trouver les bonnes infos.