Error, nodered.service: Succeeded

I'm getting this:

Error loading settings file: /home/pi/.node-red/settings.js
nodered.service: Succeeded.

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.

Note: this was a working settings.js file.

Any idea's anyone ? :smiley:

Thanks in advance.

Do you have a log of the start of node-RED?

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.

Found it. It was a require('lodash') which caused it. Strange,

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.