homebridge / homebridge-config-ui-x

The Homebridge UI. Monitor, configure and backup Homebridge from a browser.
https://homebridge.io
MIT License
2.59k stars 369 forks source link

Unable to Update NodeJS #2091

Open mzagaja opened 2 weeks ago

mzagaja commented 2 weeks ago

Analysis

When attempting to update NodeJS from the terminal, the update can't download the Node package.

Expected Behavior

NodeJS will be updated to the latest version.

Steps To Reproduce

pi@homebridge:~ $ sudo hb-config
Updating Node.js to LTS, please wait...
Installed: v16.14.0
Current Node.js LTS: v20.15.1
Updating Node.js to v20.15.1...
Downloading to /tmp/tmp.KULqzgyRnZ/node-v20.15.1-linux-armv6l.tar.gz ...
curl: (22) The requested URL returned error: 404 Not Found

Failed to download node-v20.15.1-linux-armv6l.tar.gz. See logs above.

Logs

See above.

Configuration

Probably not relevant.

Environment

Process Supervisor

hb-service

Additional Context

No response

NorthernMan54 commented 2 weeks ago

Looking at the messages, am thinking you are running an older version of the Homebridge UI, and that the download URL it is trying to download from was changed.

Also if it is an older implementation, the OS won't support NodeJS 20. NodeJS 20 is only supported by Bullseye or newer.

 * Debian Version - Supplied GLIBC Version
   *
   *  9 - Stretch       2.24
   * 10 - Buster        2.28
   * 11 - Bullseye      2.31
   * 12 - Bookworm      2.36
   * 13 - Trixie
   *
   * NodeJS Version - Minimum GLIBC Version
   *
   *      18            2.28
   *      20            2.31