Node-RED Safe Mode
When a Node-RED instance is unresponsive, for example due to an infinite loop, it can be put into Safe Mode.
- Edit the instance's Environment Variables
- Add a variable called
NODE_RED_ENABLE_SAFE_MODEtotrue. - Save the changes then suspend/restart the instance.
When starting up in Safe Mode, Node-RED will provide access to the editor without starting the flows. You can log in to the editor, make any necessary changes and then deploy to restart the flows.
Once recovered you should delete the NODE_RED_ENABLE_SAFE_MODE environment variable
to prevent it entering Safe Mode the next time it is restarted.
Updated: