Code
homebridge : TTY=pts/1 ; PWD=/usr/local/lib ; USER=root ; COMMAND=/usr/local/bin/npm install @tuyapi/homebridge-plugin@latest
pam_unix(sudo:session): session opened for user root by (uid=0)
pam_unix(sudo:session): session closed for user root
[4/24/2020, 20:25:13] [Config] [@tuyapi/homebridge-plugin] Failed to check registry.npmjs.org for updates: socket hang up
[4/24/2020, 20:25:13] [Config] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: Cannot read property 'latest' of undefined
[4/24/2020, 20:33:51] [Config] Changes to config.json saved.
[4/24/2020, 20:33:53] [Config] Homebridge restart request received
[4/24/2020, 20:33:53] [Config] Executing restart command: sudo -n systemctl restart homebridge
[4/24/2020, 20:33:53] [Config] Restart command exited with an error. Failed to restart Homebridge.