Zigbee не работает после апдейта на bullseye

После обновления не могу запустить zigbee2mqtt 1.25.2
Что сделал:
apt remove zigbee2mqtt && apt install zigbee2mqtt, не изменилось ничего

В логах zigbee
2022-10-24T17:52:25.048Z [zigbee2mqtt] at Module.load (node:internal/modules/cjs/loader:1033:32)
2022-10-24T17:52:25.048Z [zigbee2mqtt] at Object.Module._extensions…js (node:internal/modules/cjs/loader:1209:10)
2022-10-24T17:52:25.048Z [zigbee2mqtt] at Module._compile (node:internal/modules/cjs/loader:1155:14)
2022-10-24T17:52:25.048Z [zigbee2mqtt] at Object. (/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/lib/linux.js:2:36)
2022-10-24T17:52:25.048Z [zigbee2mqtt] at bindings (/mnt/data/root/zigbee2mqtt/node_modules/bindings/bindings.js:112:48)
2022-10-24T17:52:25.048Z [zigbee2mqtt] at require (node:internal/modules/cjs/helpers:103:18)
2022-10-24T17:52:25.048Z [zigbee2mqtt] at Module.require (node:internal/modules/cjs/loader:1057:19)
2022-10-24T17:52:25.048Z [zigbee2mqtt] at Function.Module._load (node:internal/modules/cjs/loader:868:12)
2022-10-24T17:52:25.048Z [zigbee2mqtt] at Module.load (node:internal/modules/cjs/loader:1033:32)
2022-10-24T17:52:25.048Z [zigbee2mqtt] at Object.Module._extensions…node (node:internal/modules/cjs/loader:1239:18)
2022-10-24T17:52:25.048Z [zigbee2mqtt] at Object.Module._extensions…node (node:internal/modules/cjs/loader:1239:18)
2022-10-24T17:52:25.048Z [zigbee2mqtt] the module (for instance, using npm rebuild or npm install).
2022-10-24T17:52:25.048Z [zigbee2mqtt] NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
2022-10-24T17:52:25.048Z [zigbee2mqtt] NODE_MODULE_VERSION 72. This version of Node.js requires
2022-10-24T17:52:25.048Z [zigbee2mqtt] was compiled against a different Node.js version using
2022-10-24T17:52:25.048Z [zigbee2mqtt] Zigbee2MQTT:error 2022-10-24 22:52:25: Error: The module ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/Release/bindings.node’
2022-10-24T17:52:25.024Z [zigbee2mqtt] Zigbee2MQTT:error 2022-10-24 22:52:25: Exiting…
2022-10-24T17:52:25.018Z [zigbee2mqtt] Zigbee2MQTT:error 2022-10-24 22:52:25: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
2022-10-24T17:52:25.012Z [zigbee2mqtt] Zigbee2MQTT:error 2022-10-24 22:52:25: Failed to start zigbee
2022-10-24T17:52:25.005Z [zigbee2mqtt] Zigbee2MQTT:error 2022-10-24 22:52:25: Error while starting zigbee-herdsman
2022-10-24T17:52:25.005Z [zigbee2mqtt] Zigbee2MQTT:error 2022-10-24 22:52:25: Error while starting zigbee-herdsman
2022-10-24T17:52:24.836Z [zigbee2mqtt] Zigbee2MQTT:info 2022-10-24 22:52:24: Starting zigbee-herdsman (0.14.34)
2022-10-24T17:52:24.824Z [zigbee2mqtt] Zigbee2MQTT:info 2022-10-24 22:52:24: Starting Zigbee2MQTT version 1.25.2 (commit #e8528512)
2022-10-24T17:52:24.707Z [zigbee2mqtt] Zigbee2MQTT:info 2022-10-24 22:52:24: Logging to console and directory: ‘/mnt/data/root/zigbee2mqtt/data/log/2022-10-24.22-52-24’ filename: log.txt
2022-10-24T17:52:14.329Z [zigbee2mqtt] > node index.js
2022-10-24T17:52:14.329Z [zigbee2mqtt] > zigbee2mqtt@1.25.2 start

2022-10-24T17:52:25.048Z [zigbee2mqtt] NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
2022-10-24T17:52:25.048Z [zigbee2mqtt] NODE_MODULE_VERSION 72. This version of Node.js requires

Оч похоже на Расхождение версий node.js zigbee2mqtt - #5 от пользователя Explorerol

в моем случае это произошло после того как я перешел на новую версию nodejs и установил питон 3.9, т.к. просил node-red

предлагаю сделать
npm rebuild zigbee2mqtt
и посмотреть что ответит

вероятно ответ будет в духе

npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! find Python checking if “python3” can be used
npm ERR! gyp ERR! find Python - executable path is “/usr/bin/python3”
npm ERR! gyp ERR! find Python - version is “3.5.3”
npm ERR! gyp ERR! find Python - version is 3.5.3 - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python checking if “python” can be used
npm ERR! gyp ERR! find Python - executable path is “/usr/bin/python”
npm ERR! gyp ERR! find Python - version is “2.7.13”
npm ERR! gyp ERR! find Python - version is 2.7.13 - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.

не претендую на правильность ответа, потому как я “сломал” zigbee2mqtt самостоятельно обновлением nodejs и python

спасибо. в моем случае
npm rebuild zigbee2mqtt выполнился успешано.

ошибка осталась, не взлетает, но проблемы с node ушли

25-10-2022 08:23:56.186 at Module._compile (node:internal/modules/cjs/loader:1155:14)
25-10-2022 08:23:56.186 at Object. (/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/lib/index.js:14:22)
25-10-2022 08:23:56.178 at require (node:internal/modules/cjs/helpers:103:18)
25-10-2022 08:23:56.178 at Module.require (node:internal/modules/cjs/loader:1057:19)
25-10-2022 08:23:56.178 at Function.Module._load (node:internal/modules/cjs/loader:868:12)
25-10-2022 08:23:56.178 at Module.load (node:internal/modules/cjs/loader:1033:32)
25-10-2022 08:23:56.178 at Object.Module._extensions…js (node:internal/modules/cjs/loader:1209:10)
25-10-2022 08:23:56.178 at Module._compile (node:internal/modules/cjs/loader:1155:14)
25-10-2022 08:23:56.178 at Object. (/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/lib/linux.js:2:36)
25-10-2022 08:23:56.178 at bindings (/mnt/data/root/zigbee2mqtt/node_modules/bindings/bindings.js:126:9)
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/lib/binding/node-v93-linux-arm/bindings.node
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/addon-build/default/install-root/bindings.node
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/addon-build/debug/install-root/bindings.node
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/addon-build/release/install-root/bindings.node
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/compiled/16.18.0/linux/arm/bindings.node
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/default/bindings.node
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/Release/bindings.node
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/out/Release/bindings.node
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/Debug/bindings.node
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/out/Debug/bindings.node
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/Release/bindings.node
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/Debug/bindings.node
25-10-2022 08:23:56.178 → /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/bindings.node
25-10-2022 08:23:56.178 Zigbee2MQTT:error 2022-10-25 08:23:56: Error: Could not locate the bindings file. Tried:
25-10-2022 08:23:56.152 Zigbee2MQTT:error 2022-10-25 08:23:56: Exiting…
25-10-2022 08:23:56.149 Zigbee2MQTT:error 2022-10-25 08:23:56: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
25-10-2022 08:23:56.144 Zigbee2MQTT:error 2022-10-25 08:23:56: Failed to start zigbee
25-10-2022 08:23:56.140 Zigbee2MQTT:error 2022-10-25 08:23:56: Error while starting zigbee-herdsman
25-10-2022 08:23:56.021 Zigbee2MQTT:info 2022-10-25 08:23:56: Starting zigbee-herdsman (0.14.34)
25-10-2022 08:23:56.010 Zigbee2MQTT:info 2022-10-25 08:23:56: Starting Zigbee2MQTT version 1.25.2 (commit #e8528512)
25-10-2022 08:23:55.871 Zigbee2MQTT:info 2022-10-25 08:23:55: Logging to console and directory: ‘/mnt/data/root/zigbee2mqtt/data/log/2022-10-25.08-23-55’ filename: log.txt
25-10-2022 08:23:45.645 > node index.js
25-10-2022 08:23:45.645 > zigbee2mqtt@1.25.2 start

npm ci

Спасибо, выдает ошибку
npm ci
npm ERR! code EUSAGE
npm ERR!
npm ERR! The npm ci command can only install with an existing package-lock.json or
npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
npm ERR! later to generate a package-lock.json file, then try again.
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci

npm install пробую

root@wirenboard-AMENMA3Q:~# npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /mnt/data/root/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open ‘/mnt/data/root/package.json’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

на всякий случай apt npm upgrade, тоже ошибка

root@wirenboard-AMENMA3Q:~# apt upgrade npm
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libnode72 : Conflicts: nodejs-legacy
nodejs : Conflicts: npm
E: Broken packages

А для какого объекта выполняете? Перефразируя, где, к в каком каталоге?

спасибо, намек понял ) но опять ошибки

root@wirenboard-AMENMA3Q:~/zigbee2mqtt# npm ci
[##################] - reify:zigbee2mqtt-frontend: timing reifyNode:node_modules
npm ERR! code 1
npm ERR! path /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindingsnpm ERR! command failed
npm ERR! command sh -c – prebuild-install --tag-prefix @serialport/bindings@ ||
node-gyp rebuild
npm ERR! make: Entering directory ‘/mnt/data/root/zigbee2mqtt/node_modules/@seri
alport/bindings/build’
npm ERR! CXX(target) Release/obj.target/bindings/src/serialport.o
npm ERR! make: Leaving directory ‘/mnt/data/root/zigbee2mqtt/node_modules/@seria
lport/bindings/build’
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=16.18.
0 runtime=node arch=arm libc= platform=linux)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.1.0
npm ERR! gyp info using node@16.18.0 | linux | arm
npm ERR! gyp info find Python using Python version 3.9.2 found at “/usr/bin/pyth
on3”
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args ‘/mnt/data/usr/lib/node_modules/npm/node_modules/
node-gyp/gyp/gyp_main.py’,
npm ERR! gyp info spawn args ‘binding.gyp’,
npm ERR! gyp info spawn args ‘-f’,
npm ERR! gyp info spawn args ‘make’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialp
ort/bindings/build/config.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/mnt/data/usr/lib/node_modules/npm/node_modules/
node-gyp/addon.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/root/.cache/node-gyp/16.18.0/include/node/commo
n.gypi’,
npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
npm ERR! gyp info spawn args ‘-Dvisibility=default’,
npm ERR! gyp info spawn args ‘-Dnode_root_dir=/root/.cache/node-gyp/16.18.0’,
npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/mnt/data/usr/lib/node_modules/np
m/node_modules/node-gyp’,
npm ERR! gyp info spawn args ‘-Dnode_lib_file=/root/.cache/node-gyp/16.18.0/<(
target_arch)/node.lib’,
npm ERR! gyp info spawn args ‘-Dmodule_root_dir=/mnt/data/root/zigbee2mqtt/nod
e_modules/@serialport/bindings’,
npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
npm ERR! gyp info spawn args ‘–depth=.’,
npm ERR! gyp info spawn args ‘–no-parallel’,
npm ERR! gyp info spawn args ‘–generator-output’,
npm ERR! gyp info spawn args ‘build’,
npm ERR! gyp info spawn args ‘-Goutput_dir=.’
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
npm ERR! In file included from /root/.cache/node-gyp/16.18.0/include/node/node.h
:73,
npm ERR! from …/…/…/nan/nan.h:60,
npm ERR! from …/src/./serialport.h:13,
npm ERR! from …/src/serialport.cpp:1:
npm ERR! /root/.cache/node-gyp/16.18.0/include/node/v8.h:22:10: fatal error: ato
mic: No such file or directory
npm ERR! 22 | #include
npm ERR! | ^~~~~~~~
npm ERR! compilation terminated.
npm ERR! make: *** [bindings.target.mk:114: Release/obj.target/bindings/src/seri
alport.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: make failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/mnt/data/usr/lib/node_modul
es/npm/node_modules/node-gyp/lib/build.js:201:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:interna
l/child_process:293:12)
npm ERR! gyp ERR! System Linux 5.10.35-wb121
npm ERR! gyp ERR! command “/mnt/data/usr/bin/node” “/mnt/data/usr/lib/node_modul
es/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindin
gs
npm ERR! gyp ERR! node -v v16.18.0
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-10-25T12_5

Итак, в качестве пациента bullseye
Сейчас сам попробую повторить.

wb7 был в последнем тестинге на стретч. чистый с завода, допом установлены только node-red, ha в docker, zigbee2mqtt все по вики. апдэйт до bullseye. docker починили, Nodered и ha работают. по поводу ошибки выше - посмотрел в zigbee2mqtt/node_modules/ только папка ./bin, больше ничего

в логе zigbee2mqtt теперь иначе

25-10-2022 17:53:21.273 }
25-10-2022 17:53:21.273 requireStack: [ ‘/mnt/data/root/zigbee2mqtt/index.js’ ]
25-10-2022 17:53:21.273 code: ‘MODULE_NOT_FOUND’,
25-10-2022 17:53:21.273 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
25-10-2022 17:53:21.273 at Function.Module._load (node:internal/modules/cjs/loader:868:12)
25-10-2022 17:53:21.273 at Module.load (node:internal/modules/cjs/loader:1033:32)
25-10-2022 17:53:21.273 at Object.Module._extensions…js (node:internal/modules/cjs/loader:1209:10)
25-10-2022 17:53:21.273 at Module._compile (node:internal/modules/cjs/loader:1155:14)
25-10-2022 17:53:21.273 at Object. (/mnt/data/root/zigbee2mqtt/index.js:1:1)
25-10-2022 17:53:21.273 at require (node:internal/modules/cjs/helpers:103:18)
25-10-2022 17:53:21.273 at require (node:internal/modules/cjs/helpers:103:18)
25-10-2022 17:53:21.273 at Module.require (node:internal/modules/cjs/loader:1057:19)
25-10-2022 17:53:21.273 at Function.Module._load (node:internal/modules/cjs/loader:833:27)
25-10-2022 17:53:21.273 at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
25-10-2022 17:53:21.273 - /mnt/data/root/zigbee2mqtt/index.js
25-10-2022 17:53:21.273 Require stack:
25-10-2022 17:53:21.273 Error: Cannot find module 'core-js/features/object/from-entries’
25-10-2022 17:53:21.273 ^
25-10-2022 17:53:21.273 throw err;
25-10-2022 17:53:21.273 node:internal/modules/cjs/loader:988
25-10-2022 17:53:21.273 node:internal/modules/cjs/loader:988
25-10-2022 17:53:20.449 > node index.js
25-10-2022 17:53:20.449 > zigbee2mqtt@1.25.2 start

Достаточно

npm ci
npm audit fix

ещё раз выполнил:
1.снёс / поставил z2m
без ошибок, но не стартует так же

  1. npm ci , с ошибками

root@wirenboard-AMENMA3Q:~/zigbee2mqtt# npm ci
npm ERR! code 1
npm ERR! path /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings
npm ERR! command failed
npm ERR! command sh -c – prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! make: Entering directory ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build’
npm ERR! CXX(target) Release/obj.target/bindings/src/serialport.o
npm ERR! make: Leaving directory ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build’
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=16.18.0 runtime=node arch=arm libc= platform=linux)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.1.0
npm ERR! gyp info using node@16.18.0 | linux | arm
npm ERR! gyp info find Python using Python version 3.9.2 found at “/usr/bin/python3”
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args ‘/mnt/data/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py’,
npm ERR! gyp info spawn args ‘binding.gyp’,
npm ERR! gyp info spawn args ‘-f’,
npm ERR! gyp info spawn args ‘make’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/config.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/mnt/data/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/root/.cache/node-gyp/16.18.0/include/node/common.gypi’,
npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
npm ERR! gyp info spawn args ‘-Dvisibility=default’,
npm ERR! gyp info spawn args ‘-Dnode_root_dir=/root/.cache/node-gyp/16.18.0’,
npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/mnt/data/usr/lib/node_modules/npm/node_modules/node-gyp’,
npm ERR! gyp info spawn args ‘-Dnode_lib_file=/root/.cache/node-gyp/16.18.0/<(target_arch)/node.lib’,
npm ERR! gyp info spawn args ‘-Dmodule_root_dir=/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings’,
npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
npm ERR! gyp info spawn args ‘–depth=.’,
npm ERR! gyp info spawn args ‘–no-parallel’,
npm ERR! gyp info spawn args ‘–generator-output’,
npm ERR! gyp info spawn args ‘build’,
npm ERR! gyp info spawn args ‘-Goutput_dir=.’
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
npm ERR! In file included from /root/.cache/node-gyp/16.18.0/include/node/node.h:73,
npm ERR! from …/…/…/nan/nan.h:60,
npm ERR! from …/src/./serialport.h:13,
npm ERR! from …/src/serialport.cpp:1:
npm ERR! /root/.cache/node-gyp/16.18.0/include/node/v8.h:22:10: fatal error: atomic: No such file or directory
npm ERR! 22 | #include
npm ERR! | ^~~~~~~~
npm ERR! compilation terminated.
npm ERR! make: *** [bindings.target.mk:114: Release/obj.target/bindings/src/serialport.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: make failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/mnt/data/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Linux 5.10.35-wb121
npm ERR! gyp ERR! command “/mnt/data/usr/bin/node” “/mnt/data/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings
npm ERR! gyp ERR! node -v v16.18.0
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-10-25T16_13_03_921Z-debug-0.log

  1. npm audit fix тоже с ошибками
    root@wirenboard-AMENMA3Q:~/zigbee2mqtt# npm audit fix
    npm ERR! code 1
    npm ERR! path /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings
    npm ERR! command failed
    npm ERR! command sh -c – prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
    npm ERR! make: Entering directory ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build’
    npm ERR! CXX(target) Release/obj.target/bindings/src/serialport.o
    npm ERR! make: Leaving directory ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build’
    npm ERR! prebuild-install WARN install No prebuilt binaries found (target=16.18.0 runtime=node arch=arm libc= platform=linux)
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp info using node-gyp@9.1.0
    npm ERR! gyp info using node@16.18.0 | linux | arm
    npm ERR! gyp info find Python using Python version 3.9.2 found at “/usr/bin/python3”
    npm ERR! gyp info spawn /usr/bin/python3
    npm ERR! gyp info spawn args [
    npm ERR! gyp info spawn args ‘/mnt/data/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py’,
    npm ERR! gyp info spawn args ‘binding.gyp’,
    npm ERR! gyp info spawn args ‘-f’,
    npm ERR! gyp info spawn args ‘make’,
    npm ERR! gyp info spawn args ‘-I’,
    npm ERR! gyp info spawn args ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/config.gypi’,
    npm ERR! gyp info spawn args ‘-I’,
    npm ERR! gyp info spawn args ‘/mnt/data/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi’,
    npm ERR! gyp info spawn args ‘-I’,
    npm ERR! gyp info spawn args ‘/root/.cache/node-gyp/16.18.0/include/node/common.gypi’,
    npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
    npm ERR! gyp info spawn args ‘-Dvisibility=default’,
    npm ERR! gyp info spawn args ‘-Dnode_root_dir=/root/.cache/node-gyp/16.18.0’,
    npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/mnt/data/usr/lib/node_modules/npm/node_modules/node-gyp’,
    npm ERR! gyp info spawn args ‘-Dnode_lib_file=/root/.cache/node-gyp/16.18.0/<(target_arch)/node.lib’,
    npm ERR! gyp info spawn args ‘-Dmodule_root_dir=/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings’,
    npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
    npm ERR! gyp info spawn args ‘–depth=.’,
    npm ERR! gyp info spawn args ‘–no-parallel’,
    npm ERR! gyp info spawn args ‘–generator-output’,
    npm ERR! gyp info spawn args ‘build’,
    npm ERR! gyp info spawn args ‘-Goutput_dir=.’
    npm ERR! gyp info spawn args ]
    npm ERR! gyp info spawn make
    npm ERR! gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
    npm ERR! In file included from /root/.cache/node-gyp/16.18.0/include/node/node.h:73,
    npm ERR! from …/…/…/nan/nan.h:60,
    npm ERR! from …/src/./serialport.h:13,
    npm ERR! from …/src/serialport.cpp:1:
    npm ERR! /root/.cache/node-gyp/16.18.0/include/node/v8.h:22:10: fatal error: atomic: No such file or directory
    npm ERR! 22 | #include
    npm ERR! | ^~~~~~~~
    npm ERR! compilation terminated.
    npm ERR! make: *** [bindings.target.mk:114: Release/obj.target/bindings/src/serialport.o] Error 1
    npm ERR! gyp ERR! build error
    npm ERR! gyp ERR! stack Error: make failed with exit code: 2
    npm ERR! gyp ERR! stack at ChildProcess.onExit (/mnt/data/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23)
    npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
    npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
    npm ERR! gyp ERR! System Linux 5.10.35-wb121
    npm ERR! gyp ERR! command “/mnt/data/usr/bin/node” “/mnt/data/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
    npm ERR! gyp ERR! cwd /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings
    npm ERR! gyp ERR! node -v v16.18.0
    npm ERR! gyp ERR! node-gyp -v v9.1.0
    npm ERR! gyp ERR! not ok
    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2022-10-25T16_15_40_392Z-debug-0.log
    root@wirenboard-AMENMA3Q:~/zigbee2mqtt#

В какую сторону куда копать?

Судя по

проблема именно с nodejs.
советую удалить полностью (purge) и поставить.

Повоторил то же для zigbee2mqtt 1.18

npm WARN old lockfile 
npm WARN old lockfile The npm-shrinkwrap.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile 
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'zigbee2mqtt@1.18.1',
npm WARN EBADENGINE   required: { node: '^10 || ^12 || ^14 || ^15' },
npm WARN EBADENGINE   current: { node: 'v16.18.0', npm: '8.19.2' }
npm WARN EBADENGINE }
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

added 919 packages, and audited 920 packages in 5m

46 packages are looking for funding
  run `npm fund` for details

21 vulnerabilities (6 moderate, 12 high, 3 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues, run:
  npm audit fix --force

Run `npm audit` for details.
npm audit fix --force
npm WARN using --force Recommended protections disabled.
npm WARN old lockfile 
npm WARN old lockfile The npm-shrinkwrap.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile 
npm WARN audit Updating mqtt to 4.3.7, which is outside your stated dependency range.

added 33 packages, removed 194 packages, changed 37 packages, and audited 759 packages in 3m

49 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Ну и запуск:

zigbee2mqtt# npm start

> zigbee2mqtt@1.18.1 start
> node index.js

		Zigbee2MQTT requires node version ^10 || ^12 || ^14 || ^15, you are running v16.18.0!

Zigbee2MQTT:info  2022-10-26 06:54:53: Logging to console and directory: '/mnt/data/root/zigbee2mqtt/data/log/2022-10-26.06-54-51' filename: log.txt
Zigbee2MQTT:info  2022-10-26 06:54:53: Starting Zigbee2MQTT version 1.18.1 (commit #unknown)
Zigbee2MQTT:info  2022-10-26 06:54:53: Starting zigbee-herdsman (0.13.71)
Zigbee2MQTT:error 2022-10-26 06:55:17: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-10-26 06:55:17: Failed to start zigbee
Zigbee2MQTT:error 2022-10-26 06:55:17: Exiting...
Zigbee2MQTT:error 2022-10-26 06:55:17: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/mnt/data/root/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)
    at Generator.throw (<anonymous>)
    at rejected (/mnt/data/root/zigbee2mqtt/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)

спасибо! уже пошел по пути factoryreset

Блин, незнаю что уже делать :frowning: factory reset не помогает. Имеем полностью чистый контроллер, только что сделан ресет на последний образ в репозитории (202210210802_testing_bullseye_wb7x.fit, переименован в wb_update_FACTORYRESET.fit ) . После первой загрузки (да, удостоверился что /mnt/dата в заводском виде).

  1. apt update && apt upgrade - все окей
  2. apt install zigbee2mqtt - тоже все окей, nodejs тоже устанавливается впервые

root@wirenboard-AMENMA3Q:/mnt# apt install zigbee2mqtt
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following additional packages will be installed:
libatomic1 nodejs wb-zigbee2mqtt
The following NEW packages will be installed:
libatomic1 nodejs wb-zigbee2mqtt zigbee2mqtt
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 52.5 MB of archives.
After this operation, 254 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 Index of /debian bullseye/main armhf libatomic1 armhf 10.2.1-6 [6924 B]
Get:2 http://deb.wirenboard.com/wb7/bullseye testing/main armhf wb-zigbee2mqtt all 1.1.0 [2284 B]
Get:3 Index of /node_16.x/ bullseye/main armhf nodejs armhf 16.18.0-deb-1nodesource1 [24.2 MB]
Get:4 http://deb.wirenboard.com/wb7/bullseye testing/main armhf zigbee2mqtt armhf 1.25.2 [28.3 MB]
Fetched 52.5 MB in 6s (8180 kB/s)
Selecting previously unselected package libatomic1:armhf.
(Reading database … 29023 files and directories currently installed.)
Preparing to unpack …/libatomic1_10.2.1-6_armhf.deb …
Unpacking libatomic1:armhf (10.2.1-6) …
Selecting previously unselected package nodejs.
Preparing to unpack …/nodejs_16.18.0-deb-1nodesource1_armhf.deb …
Unpacking nodejs (16.18.0-deb-1nodesource1) …
Selecting previously unselected package wb-zigbee2mqtt.
Preparing to unpack …/wb-zigbee2mqtt_1.1.0_all.deb …
Unpacking wb-zigbee2mqtt (1.1.0) …
Selecting previously unselected package zigbee2mqtt.
Preparing to unpack …/zigbee2mqtt_1.25.2_armhf.deb …
Unpacking zigbee2mqtt (1.25.2) …
Setting up wb-zigbee2mqtt (1.1.0) …
Setting up libatomic1:armhf (10.2.1-6) …
Setting up nodejs (16.18.0-deb-1nodesource1) …
Setting up zigbee2mqtt (1.25.2) …
Created symlink /etc/systemd/system/multi-user.target.wants/zigbee2mqtt.service Б├▓ /lib/systemd/system/zigbee2mqtt.service.
Processing triggers for libc-bin (2.31-13+deb11u5) …
Created symlink /etc/systemd/system/multi-user.target.wants/zigbee2mqtt.service Б├▓ /lib/systemd/system/zigbee2mqtt.service.
root@wirenboard-AMENMA3Q:/mnt/data/root#

  1. правлю конфиг - меняю только адрес порта, и включаю фронтэнд.
    zigbee2mqtt так же не запускается, в логах та же ошибка
26-10-2022 13:30:40.624 at Module.load (node:internal/modules/cjs/loader:1033:32)
26-10-2022 13:30:40.624 at Object.Module._extensions…js (node:internal/modules/cjs/loader:1209:10)
26-10-2022 13:30:40.624 at Module._compile (node:internal/modules/cjs/loader:1155:14)
26-10-2022 13:30:40.624 at Object. (/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/lib/linux.js:2:36)
26-10-2022 13:30:40.624 at bindings (/mnt/data/root/zigbee2mqtt/node_modules/bindings/bindings.js:112:48)
26-10-2022 13:30:40.624 at require (node:internal/modules/cjs/helpers:103:18)
26-10-2022 13:30:40.624 at Module.require (node:internal/modules/cjs/loader:1057:19)
26-10-2022 13:30:40.624 at Function.Module._load (node:internal/modules/cjs/loader:868:12)
26-10-2022 13:30:40.624 at Module.load (node:internal/modules/cjs/loader:1033:32)
26-10-2022 13:30:40.624 at Object.Module._extensions…node (node:internal/modules/cjs/loader:1239:18)
26-10-2022 13:30:40.624 at Object.Module._extensions…node (node:internal/modules/cjs/loader:1239:18)
26-10-2022 13:30:40.624 the module (for instance, using npm rebuild or npm install).
26-10-2022 13:30:40.624 NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
26-10-2022 13:30:40.624 NODE_MODULE_VERSION 72. This version of Node.js requires
26-10-2022 13:30:40.624 was compiled against a different Node.js version using
26-10-2022 13:30:40.624 Zigbee2MQTT:error 2022-10-26 08:30:40: Error: The module ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/Release/bindings.node’
26-10-2022 13:30:40.601 Zigbee2MQTT:error 2022-10-26 08:30:40: Exiting…
26-10-2022 13:30:40.597 Zigbee2MQTT:error 2022-10-26 08:30:40: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
26-10-2022 13:30:40.591 Zigbee2MQTT:error 2022-10-26 08:30:40: Failed to start zigbee
26-10-2022 13:30:40.587 Zigbee2MQTT:error 2022-10-26 08:30:40: Error while starting zigbee-herdsman
26-10-2022 13:30:40.587 Zigbee2MQTT:error 2022-10-26 08:30:40: Error while starting zigbee-herdsman
26-10-2022 13:30:40.468 Zigbee2MQTT:info 2022-10-26 08:30:40: Starting zigbee-herdsman (0.14.34)
26-10-2022 13:30:40.457 Zigbee2MQTT:info 2022-10-26 08:30:40: Starting Zigbee2MQTT version 1.25.2 (commit #e8528512)
26-10-2022 13:30:40.384 Zigbee2MQTT:info 2022-10-26 08:30:40: Logging to console and directory: ‘/mnt/data/root/zigbee2mqtt/data/log/2022-10-26.08-30-40’ filename: log.txt
26-10-2022 13:30:30.155 > node index.js
26-10-2022 13:30:30.155 > zigbee2mqtt@1.25.2 start
26-10-2022 13:28:56.313 at Module.load (node:internal/modules/cjs/loader:1033:32)
26-10-2022 13:28:56.313 at Object.Module._extensions…js (node:internal/modules/cjs/loader:1209:10)
26-10-2022 13:28:56.313 at Module._compile (node:internal/modules/cjs/loader:1155:14)
26-10-2022 13:28:56.313 at Object. (/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/lib/linux.js:2:36)
26-10-2022 13:28:56.313 at Object. (/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/lib/linux.js:2:36)
26-10-2022 13:28:56.313 at bindings (/mnt/data/root/zigbee2mqtt/node_modules/bindings/bindings.js:112:48)
26-10-2022 13:28:56.313 at require (node:internal/modules/cjs/helpers:103:18)
  1. выполняю npm ci, такая же ошибка как раньше

root@wirenboard-AMENMA3Q:/mnt/data/root/zigbee2mqtt# npm ci
npm ERR! code 1
npm ERR! path /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings
npm ERR! command failed
npm ERR! command sh -c – prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=16.18.0 runtime=node arch=arm libc= platform=linux)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.1.0
npm ERR! gyp info using node@16.18.0 | linux | arm
npm ERR! gyp info find Python using Python version 3.9.2 found at “/usr/bin/python3”
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py’,
npm ERR! gyp info spawn args ‘binding.gyp’,
npm ERR! gyp info spawn args ‘-f’,
npm ERR! gyp info spawn args ‘make’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/config.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/root/.cache/node-gyp/16.18.0/include/node/common.gypi’,
npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
npm ERR! gyp info spawn args ‘-Dvisibility=default’,
npm ERR! gyp info spawn args ‘-Dnode_root_dir=/root/.cache/node-gyp/16.18.0’,
npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp’,
npm ERR! gyp info spawn args ‘-Dnode_lib_file=/root/.cache/node-gyp/16.18.0/<(target_arch)/node.lib’,
npm ERR! gyp info spawn args ‘-Dmodule_root_dir=/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings’,
npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
npm ERR! gyp info spawn args ‘–depth=.’,
npm ERR! gyp info spawn args ‘–no-parallel’,
npm ERR! gyp info spawn args ‘–generator-output’,
npm ERR! gyp info spawn args ‘build’,
npm ERR! gyp info spawn args ‘-Goutput_dir=.’
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: not found: make
npm ERR! gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:10:17)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:57:18
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at step (/usr/lib/node_modules/npm/node_modules/which/which.js:54:21)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:71:22
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at subStep (/usr/lib/node_modules/npm/node_modules/which/which.js:69:33)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:80:22
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! System Linux 5.10.35-wb120
npm ERR! gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings
npm ERR! gyp ERR! node -v v16.18.0
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok

папка /zigbee2mqtt/node_modules становится пустой после этого

  1. подозреваю что audit fix уже смысла не имеет, но все же выполняю, так же без результатно.

root@wirenboard-AMENMA3Q:/mnt/data/root/zigbee2mqtt# npm audit fix --force
npm WARN using --force Recommended protections disabled.
npm ERR! code 1
npm ERR! path /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings
npm ERR! command failed
npm ERR! command sh -c – prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! prebuild-install WARN install No prebuilt binaries found (target=16.18.0 runtime=node arch=arm libc= platform=linux)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.1.0
npm ERR! gyp info using node@16.18.0 | linux | arm
npm ERR! gyp info find Python using Python version 3.9.2 found at “/usr/bin/python3”
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py’,
npm ERR! gyp info spawn args ‘binding.gyp’,
npm ERR! gyp info spawn args ‘-f’,
npm ERR! gyp info spawn args ‘make’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings/build/config.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/root/.cache/node-gyp/16.18.0/include/node/common.gypi’,
npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
npm ERR! gyp info spawn args ‘-Dvisibility=default’,
npm ERR! gyp info spawn args ‘-Dnode_root_dir=/root/.cache/node-gyp/16.18.0’,
npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp’,
npm ERR! gyp info spawn args ‘-Dnode_lib_file=/root/.cache/node-gyp/16.18.0/<(target_arch)/node.lib’,
npm ERR! gyp info spawn args ‘-Dmodule_root_dir=/mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings’,
npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
npm ERR! gyp info spawn args ‘–depth=.’,
npm ERR! gyp info spawn args ‘–no-parallel’,
npm ERR! gyp info spawn args ‘–generator-output’,
npm ERR! gyp info spawn args ‘build’,
npm ERR! gyp info spawn args ‘-Goutput_dir=.’
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: not found: make
npm ERR! gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:10:17)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:57:18
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at step (/usr/lib/node_modules/npm/node_modules/which/which.js:54:21)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:71:22
npm ERR! gyp ERR! stack at new Promise ()
npm ERR! gyp ERR! stack at subStep (/usr/lib/node_modules/npm/node_modules/which/which.js:69:33)
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:80:22
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! System Linux 5.10.35-wb120
npm ERR! gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd /mnt/data/root/zigbee2mqtt/node_modules/@serialport/bindings
npm ERR! gyp ERR! node -v v16.18.0
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-10-26T08_40_36_750Z-debug-0.log

Из пакета z2m ставится под старый nodejs, поэтому все рано надо выполнить

npm ci
npm audit fix

так после npm ci вообще все ломается и пропадают папки из /zigbee2mqtt/node_moduled, я же расписал подробно, с логами каждого шага. и npm ci и npm audit fix. подскажите, как тогда поставить правильный nodejs. правильно ли я понимаю apt upgrade nodejs тоже не поможет, нужно как то иначе?

по мнению apt nodejs последний, 16.18.0

root@wirenboard-AMENMA3Q:~/zigbee2mqtt# apt upgrade nodejs
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
nodejs is already the newest version (16.18.0-deb-1nodesource1).
nodejs set to manually installed.
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded

пробовал
apt purge nodejs (заодно снёсся и zigbee2mqtt)
apt install nodejs
apt install zigbe2mqtt

npm ci так же останавливается по ошибке после этого

правильно я так понимаю что z2m из стандартных репозиториев для bullseye пока нерабочий, нужно собирать из исходников и вот это вот всё?