It fstarted happening after I had to remove package-lock.json because one module complained about all sorts of things during installation. After removing the lock file the installation succeeded but now nodered wont start anymore. No further error logging is shown.
There is no further logging. Starting node-red says this:
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.1.85:1880
On Pi Node-RED works better with the Firefox or Chrome browser
Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot
To find more nodes and example flows - go to http://flows.nodered.org
Starting as a systemd service.
Error loading settings file: /home/pi/.node-red/settings.js
nodered.service: Succeeded.
But I've narrowed it down to a problem within the functionGlobalContext settings in de settings.ja file. Need to do some further debugging to which line causes this.