homebridge/homebridge-syno-spk

Node.js Update

Closed this issue · 9 comments

Raspberry Pi Model

Other (specify in description)

Describe The Bug

Hello,

I installed Homebridge on Synology. It works so far.
But how can I update Node.js?
I have version 18.15.0 and would like to update to the latest version.
Unfortunately, I get an error that the installation path is not the correct one. (Cannot update Node.js on your system. Non-standard installation path detected: /volume1/@appstore/Node.js_v18/usr/local)
So the normal installation/update doesn't work.

What can I do?

Logs

No response

With synology we are leveraging the Synology supplied NodeJS version, and need synology to provide an updated NodeJS version. So we need to wait for them to provide an update

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Has there been a progress on this? I have a number of plugins that require a newer node version. Is there an updated node.js version for Synology installations.

Node.js 20.9.0-1003 is available on DSM7.

But i get this issue:
homebridge@DS220plus:/volume1/homebridge $ hb-service update-node 20.9.0 ℹ Installing Node.js v20.9.0 over v18.18.2... ✖ Cannot update Node.js on your system. Non-standard installation path detected: /volume1/@appstore/Node.js_v18/usr/local

How can I change the path to v20 ?

In the meanwhile, Synology published a node 20 package. how can I point homebridge to that version of node? How to change the used node path from 18 to the 20 one?

@gerstemann - Node JS is picked here - https://github.com/homebridge/homebridge-syno-spk/blob/latest/app/source.sh

If you could confirm the path for NodeJS 20, we can update the if statement to check for NodeJS 20 as well

if [ -f /var/packages/Node.js_v18/target/usr/local/bin/node ]; then

Just put a 20 instead of the 18. Thats it.
Do I then have to reinstall the package or is it checking for the new node.js while it updates.

image

It checks the version when starting homebridge, so just restart should do it.

Release 3.1.0 has been published with NodeJS 20 support