# Node-red on Windows10 quits immediately

**URL:** https://discourse.nodered.org/t/node-red-on-windows10-quits-immediately/45965
**Category:** General
**Created:** [20 May 2021 08:15 UTC](https://discourse.nodered.org/t/node-red-on-windows10-quits-immediately/45965 "2021-05-20T08:15:39Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![janek](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@janek](https://discourse.nodered.org/u/janek)
#### Post date: [20 May 2021 08:15 UTC](https://discourse.nodered.org/t/node-red-on-windows10-quits-immediately/45965/1 "2021-05-20T08:15:40Z")

</div>

Just installed nodejs and nodered on Win10 following the instruction and it quits immediately after start. What is the fix?

C:\WINDOWS\system32\>node-red  
20 May 18:11:33 - [info]

# Welcome to Node-RED

20 May 18:11:33 - [info] Node-RED version: v1.3.5  
20 May 18:11:33 - [info] Node.js version: v14.17.0  
20 May 18:11:33 - [info] Windows\_NT 10.0.19042 x64 LE  
20 May 18:11:34 - [info] Loading palette nodes  
20 May 18:11:35 - [info] Dashboard version 2.23.2 started at /ui

C:\WINDOWS\system32

---

<div class="post-metadata">

### Author: ![minhhn0205](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/minhhn0205/32/29062_2.png) [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)
#### Post date: [20 May 2021 09:14 UTC](https://discourse.nodered.org/t/node-red-on-windows10-quits-immediately/45965/2 "2021-05-20T09:14:17Z")

</div>

Did you edit the file `settings.js` or change anything in the folder _C:\Users\<LOGIN\_USER\>.node-red_ ?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [20 May 2021 09:19 UTC](https://discourse.nodered.org/t/node-red-on-windows10-quits-immediately/45965/3 "2021-05-20T09:19:11Z")

</div>

How did you install it? It hasn't got as far as telling you what userDir folder it is using and I'm wondering whether your installation/user doesn't have access to the folder?

You may find some additional info by hunting through the event logs though that is often a very painful process.

---

<div class="post-metadata">

### Author: ![janek](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@janek](https://discourse.nodered.org/u/janek)
#### Post date: [20 May 2021 10:04 UTC](https://discourse.nodered.org/t/node-red-on-windows10-quits-immediately/45965/4 "2021-05-20T10:04:27Z")

</div>

It's on Windows10  
I followed the instruction from here:

1. install nodejs and as result:  
C:\WINDOWS\system32\>node -v  
v14.17.0

C:\WINDOWS\system32\>npm -v  
6.14.13  
2) from cmd as Administrator I executed:

```auto
npm install -g --unsafe-perm node-red

```

1. in C:\Users\Janek\AppData\Roaming\npm I have:  
C:\Users\Janek\AppData\Roaming\npm\>ls  
node-red node-red-pi node-red-pi.cmd node-red-pi.ps1 node-red.cmd node-red.ps1 node\_modules

2. when I run (as Administrator from command line)

C:\Users\Janek\AppData\Roaming\npm\>node-red  
20 May 19:59:59 - [info]

# Welcome to Node-RED

20 May 19:59:59 - [info] Node-RED version: v1.3.5  
20 May 19:59:59 - [info] Node.js version: v14.17.0  
20 May 19:59:59 - [info] Windows\_NT 10.0.19042 x64 LE  
20 May 20:00:00 - [info] Loading palette nodes  
20 May 20:00:02 - [info] Dashboard version 2.23.2 started at /ui

C:\Users\Janek\AppData\Roaming\npm\>

I haven't done any editing

---

<div class="post-metadata">

### Author: ![janek](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@janek](https://discourse.nodered.org/u/janek)
#### Post date: [20 May 2021 10:05 UTC](https://discourse.nodered.org/t/node-red-on-windows10-quits-immediately/45965/5 "2021-05-20T10:05:34Z")

</div>

sorry, instructions from here: [Running on Windows : Node-RED](https://nodered.org/docs/getting-started/windows)

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [20 May 2021 10:11 UTC](https://discourse.nodered.org/t/node-red-on-windows10-quits-immediately/45965/6 "2021-05-20T10:11:13Z")

</div>

Try starting it from your node-red folder (just as normal user cmd terminal window)

e.g cd to `c:\users\Janek\.node-red`  
and then run  
node-red

---

<div class="post-metadata">

### Author: ![janek](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@janek](https://discourse.nodered.org/u/janek)
#### Post date: [20 May 2021 10:14 UTC](https://discourse.nodered.org/t/node-red-on-windows10-quits-immediately/45965/7 "2021-05-20T10:14:16Z")

</div>

After uninstalling and deleting everything and installing again it behaves ok. Solved. Thanks to everyone responding

---

<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: [3 June 2021 10:14 UTC](https://discourse.nodered.org/t/node-red-on-windows10-quits-immediately/45965/8 "2021-06-03T10:14:55Z")

</div>

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