# Node-Red stopped... sort of

**URL:** <https://discourse.nodered.org/t/node-red-stopped-sort-of/49424>\
**Category:** Industrial\
**Created:** [6 August 2021 14:42 UTC](https://discourse.nodered.org/t/node-red-stopped-sort-of/49424 "2021-08-06T14:42:48Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [6 August 2021 16:34 UTC](https://discourse.nodered.org/t/node-red-stopped-sort-of/49424/8 "2021-08-06T16:34:05Z")

</div>

> [@tony1](#):
>
> but why is it rejecting being run from NSSM as not a valid Win32 application?

what have you tried ?  
a quick search on the forum reveals many results for NSSM configuration for NR.

> [@\[Solved\] Running as a service on windows](https://discourse.nodered.org/t/solved-running-as-a-service-on-windows/22683/3):
>
> I also tried using the following method which worked as provided by @dceejay[https://gist.github.com/dceejay/576b4847f0a17dc066db](https://gist.github.com/dceejay/576b4847f0a17dc066db) nssm install Node-RED "c:\Users\\"%USERNAME%"\AppData\Roaming\npm\node-red.cmd" nssm set Node-RED AppDirectory "c:\Users\\"%USERNAME%"\.node-red" nssm set Node-RED AppParameters "-u c:\Users\\"%USERNAME%"\.node-red \> c:\temp\node-red.log" nssm set Node-RED Description "A wiring tool for the Internet of Things"```

I think its best for debugging to run it from the command prompt first and then set it up as a service

---

_[View the full topic](https://discourse.nodered.org/t/node-red-stopped-sort-of/49424)._
