Node red keeps restarting and i'm unable to fix it. Already removed and installed xpath.js Need some help!
Welcome to Node-RED
===================
25 Dec 13:45:48 - [info] Node-RED version: v0.17.5
25 Dec 13:45:48 - [info] Node.js version: v6.12.2
25 Dec 13:45:48 - [info] Linux 4.9.59-v7+ arm LE
25 Dec 13:45:49 - [info] Loading palette nodes
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
25 Dec 13:45:54 - [info] Dashboard version 2.7.0 started at /ui
25 Dec 13:45:56 - [info] Settings file : /home/pi/.node-red/settings.js
25 Dec 13:45:56 - [info] User directory : /home/pi/.node-red
25 Dec 13:45:56 - [info] Flows file : /home/pi/.node-red/flows_raspberrypi.json
25 Dec 13:45:56 - [info] Starting flows
25 Dec 13:45:57 - [info] Started flows
[xmldom error] invalid document source
@#[line:0,col:undefined]
25 Dec 13:45:57 - [red] Uncaught Exception:
25 Dec 13:45:57 - TypeError: Cannot read property 'nodeType' of undefined
at PathExpr.evaluate (/home/pi/.node-red/node_modules/xpath/xpath.js:1716:16)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool..
Started Node-RED graphical event wiring tool..
25 Dec 13:46:00 - [info]
Welcome to Node-RED
===================
25 Dec 13:46:00 - [info] Node-RED version: v0.17.5
25 Dec 13:46:00 - [info] Node.js version: v6.12.2
25 Dec 13:46:00 - [info] Linux 4.9.59-v7+ arm LE
25 Dec 13:46:01 - [info] Loading palette nodes