Pardon my newbie question but what is the best way to update homebridge to the latest version? I searched and found the command npm update --depth 9999 -g homebridge but that doesn't do anything.
Thanks!
Vou can update homebridge (or other npms) by simply running the install command again. At least that is the way I normally do this. So...
npm install -g homebridge
should do it. Maybe with a sudo. Depends on your setup and how you installed it
I installed it originally with
sudo npm install -g --unsafe-perm homebridge so just run that again? Won't it overwrite my current config?
Simply run sudo npm install -g homebridge (without the --unsafe-perm). This will update your homebridge setup. Of course you can save your config before. Just make a backup of the config-file in the .homebridge directory.
This issue has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.
Most helpful comment
Simply run
sudo npm install -g homebridge(without the --unsafe-perm). This will update your homebridge setup. Of course you can save your config before. Just make a backup of the config-file in the .homebridge directory.