> For the complete documentation index, see [llms.txt](https://wiki.codeandcompile.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.codeandcompile.com/iiot/iiot-tools/node-red/node-red-safe-mode.md).

# Node-RED Safe mode

Many a time your flow caused your Node-RED to crash. And when you restart your Node-RED, it crashes again and makes it difficult for you to troubleshoot the flow.

In this situation, you can use the safe mode of Node-RED where Node-RED will not start right after initializing the server. This allows you to edit the faulty nodes and deploy them again. This will save you hours of troubleshooting.&#x20;

Just open the command prompt and type **node-red --safe**

<figure><img src="https://1831238825-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLd2M9UNfMTnw9DjDdZJz%2Fuploads%2FARIGTV4L0yWm1K1vW7wk%2Fimage.png?alt=media&amp;token=fcda4a26-6b6d-4e8f-afb7-8d3bc2dd1357" alt=""><figcaption><p>Command prompt view</p></figcaption></figure>
