Can‘t Update Node - Download Error
Kohle81 opened this issue · 7 comments
Describe The Bug
If I want to update Node with „sudo hb-config“ node could not updated because download error.
Logs
Updating Node.js to LTS, please wait...
Installed: v20.10.0
Current Node.js LTS: v20.12.0
Updating Node.js to v20.12.0...
Downloading to /tmp/tmp.PvRJx5pT9V/node-v20.12.0-linux-armv6l.tar.gz ...
curl: (22) The requested URL returned error: 404 Not Found
Failed to download node-v20.12.0-linux-armv6l.tar.gz. See logs above.
Config
No response
Homebridge UI Version
4.55.1
Homebridge Version
1.7.0
Node.js Version
20.10.0
Operating System
Official Homebridge Raspberry Pi Image
Environment Info
{"label"=>"Using hb-service?"}
Raspberry Pi Model
Raspberry Pi 4 B
How did you install your existing version v20.10.0?
So just to confirm, the steps to resolve (i.e. install node 20.12.0) were to reinstall the UI
sudo npm install -g --unsafe-perm homebridge-config-ui-x
and then the usual command worked?
sudo hb-service update-node 20.12.0
Hi,
I can‘t update node about
„ sudo hb-config“
But if I used the command
„ sudo hb-service update-node 20.12.0“ it worked.
I doesn‘t reinstalled the UI - should I?
Greetings….
Ah I understand now. No you don't need to reinstall the UI.
Using hb-service
is the recommended way to update node:
So great that sudo hb-service update-node 20.12.0
worked for you.
I will close this issue now as I assume resolved. Feel free to re-open if needed 👍
Hello, unfortunately it's me again with the same problem...
I wanted to update node via the menu using sudo hb-config and again received the error during the download. The command sudo hb-service update-node 20.12.1 worked again.
pi@homebridge:~ $ sudo hb-config
Updating Node.js to LTS, please wait...
Installed: v20.12.0
Current Node.js LTS: v20.12.1
Updating Node.js to v20.12.1...
Downloading to /tmp/tmp.gmmfQ1MKzW/node-v20.12.1-linux-armv6l.tar.gz ...
curl: (22) The requested URL returned error: 404 Not Found
Failed to download node-v20.12.1-linux-armv6l.tar.gz. See logs above.
pi@homebridge:~ $ sudo hb-service update-node 20.12.1
ℹ Installing Node.js v20.12.1 over v20.12.0...
ℹ Target: /usr/local
✔ Download complete.��������������������������������✔ Cleaned up npm at at /usr/local/lib/node_modules/npm
✔ Installed Node.js v20.12.1
ℹ Restarting Homebridge Service...
✔ Homebridge Restarted