- Platform
- Hardware: Raspberry 4
- openHAB version: 4.3.1
Ran into yet another 4.3.1 upgrade trouble … this time with zigbee2mqtt.
I have not been able to update zigbee2mqtt from openhabian-config. the process ends with “error” and a not very helpful reference to the openhabian.md file.
(Also tried the same on a fresh 4.3.1 installation/SD card from scratch – same problem).
The culprit is: the npm ci
command in the nodejs-apps.bash
file.
2025-01-08_08:49:58_CET [openHABian] Downloading Zigbee2MQTT... OK
2025-01-08_08:50:24_CET [openHABian] Creating log directory... OK
2025-01-08_08:50:24_CET [openHABian] Zigbee2MQTT install & config... FAILED (npm ci)
When issuing the npm ci
command manually outside of the bash (as user openhabian), the following ensues:
/usr/share/nodejs/npm/lib/cli.js:48
throw err
^
Error: ENOENT: no such file or directory, uv_cwd
at process.wrappedCwd [as cwd] (node:internal/bootstrap/switches/does_own_process_state:126:28)
at Object.<anonymous> (/usr/share/nodejs/depd/index.js:23:24)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/usr/share/nodejs/npm/node_modules/agentkeepalive/lib/agent.js:6:19)
at Module._compile (node:internal/modules/cjs/loader:1356:14) {
errno: -2,
code: 'ENOENT',
syscall: 'uv_cwd'
}
Node.js v18.19.0
I’m afraid, this is where my competence of linux / npm ends.
Can anybody help to see what’s been broken?