Node-red Keeps rebooting itself

hmmmm.

ok, so looking at your error...

... it happens in lgtv-volume.js at line 19

This is the code on the repo - node-red-contrib-lgtv/nodes/lgtv-volume.js at 16583f19ea2aeccaa9a43599da25966a99d2aa79 · hobbyquaker/node-red-contrib-lgtv · GitHub

Looking at the code on that line ...

                    if (!err && res && res && res.changed.indexOf('volume') !== -1) {
                        node.send({payload: res.volume});
                    }

... I suspect the dev meant to write ...

                    if (!err && res && res.changed && res.changed.indexOf('volume') !== -1) {
                        node.send({payload: res.volume});
                    }

Try that in file /home/pi/.node-red/node_modules/node-red-contrib-lgtv/nodes/lgtv-volume.js then restart node-red