# Can anyone diagnose Node-red not running on Windows?

**URL:** <https://discourse.nodered.org/t/can-anyone-diagnose-node-red-not-running-on-windows/89199>\
**Category:** General\
**Created:** [2 July 2024 22:51 UTC](https://discourse.nodered.org/t/can-anyone-diagnose-node-red-not-running-on-windows/89199 "2024-07-02T22:51:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [2 July 2024 22:51 UTC](https://discourse.nodered.org/t/can-anyone-diagnose-node-red-not-running-on-windows/89199/1 "2024-07-02T22:51:42Z")

</div>

I have installed Node-red on a Windows 10 PC.  
Because it's thousands of miles away everything is done over Teamviewer.  
If I type node-red in a command window it runs and a browser opens localhost:1880.

To run it automatically I have followed the instructions to install nssm and setup a service.  
Manually I can start this service, it says it is successful but the editor doesnt show up.:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/2/32b1dfaad1093de5be1bce081f9be80b777a77b4.png)

The path to the executable in nssm is c:\Users\username\AppData\Roaming\npm\node-red.cmd.  
If I type **that full pathname** in a non administrator window, Node-red starts up (even though the nssm service claims to be running)

The startup output:

```auto
c:\temp>c:\Users\XXXXX\AppData\Roaming\npm\node-red.cmd
2 Jul 19:43:50 - [info]

Welcome to Node-RED
===================

2 Jul 19:43:50 - [info] Node-RED version: v3.1.9
2 Jul 19:43:50 - [info] Node.js version: v20.13.1
2 Jul 19:43:50 - [info] Windows_NT 10.0.19045 x64 LE
2 Jul 19:43:51 - [info] Loading palette nodes
2 Jul 19:43:52 - [info] Settings file : C:\Users\XXXXXX\.node-red\settings.js
2 Jul 19:43:52 - [info] Context store : 'default' [module=memory]
2 Jul 19:43:52 - [info] User directory : \Users\XXXXXX\.node-red
2 Jul 19:43:52 - [warn] Projects disabled : editorTheme.projects.enabled=false
2 Jul 19:43:52 - [info] Flows file : \Users\XXXXXX\.node-red\flows.json
2 Jul 19:43:52 - [info] Server now running at http://127.0.0.1:1880/
2 Jul 19:43:52 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.
[shortened]
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

2 Jul 19:43:52 - [info] Starting flows
2 Jul 19:43:52 - [info] Started flows
2 Jul 19:43:53 - [info] [mqtt-broker:hivemq] Connected to broker: mqtts://5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc.s1.eu.hivemq.cloud:8883

```

So nssm thinks it's doing something but it's not running Node-red.  
What can I do?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [2 July 2024 23:31 UTC](https://discourse.nodered.org/t/can-anyone-diagnose-node-red-not-running-on-windows/89199/2 "2024-07-02T23:31:39Z")

</div>

Have you checked the event log for messages from NSSM ?

Maybe show us what the noe-red.cmd file contains

I have not used NSSM - but usually with those sort of service managers there are options for selecting who the service will run as and the location in which to start it - have these been set ?

Can you give us a screenshot of the NSSM config for the NR service ?

Craig

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [2 July 2024 23:44 UTC](https://discourse.nodered.org/t/can-anyone-diagnose-node-red-not-running-on-windows/89199/3 "2024-07-02T23:44:46Z")

</div>

Alas the TeamViewer opportunity has closed for now, I'll try and get what you asked for asap.

> [@craigcurtin](#):
>
> Maybe show us what the node-red.cmd file contains

I can't do that right now, but if I run that cmd file manually Node-red starts up OK so I _assume_ it's correct.

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [3 July 2024 07:23 UTC](https://discourse.nodered.org/t/can-anyone-diagnose-node-red-not-running-on-windows/89199/4 "2024-07-03T07:23:10Z")

</div>

I use NSSM to start Node Red (5 instances) automatically when PC powers up or restarts. if you need any help in debugging, please let me know. I am not SME, but can sure tell you what is the setup i have done.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [4 July 2024 02:39 UTC](https://discourse.nodered.org/t/can-anyone-diagnose-node-red-not-running-on-windows/89199/5 "2024-07-04T02:39:11Z")

</div>

Thank you. It's going to be a while till I can get back onto the PC, I'll get back to you 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 October 2024 02:39 UTC](https://discourse.nodered.org/t/can-anyone-diagnose-node-red-not-running-on-windows/89199/6 "2024-10-02T02:39:48Z")

</div>

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