# Node-red won't launch

**URL:** <https://discourse.nodered.org/t/node-red-wont-launch/4392>\
**Category:** General\
**Created:** [29 October 2018 17:51 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392 "2018-10-29T17:51:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![notaaron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/notaaron/32/3428_2.png) [@notaaron](https://discourse.nodered.org/u/notaaron)\
**Post date:** [29 October 2018 17:51 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/1 "2018-10-29T17:51:56Z")

</div>

29 Oct 11:50:27 - [info]

# Welcome to Node-RED

29 Oct 11:50:27 - [info] Node-RED version: v0.19.4  
29 Oct 11:50:27 - [info] Node.js version: v8.12.0  
29 Oct 11:50:27 - [info] Windows\_NT 10.0.17134 x64 LE  
29 Oct 11:50:28 - [info] Loading palette nodes  
29 Oct 11:50:29 - [warn] rpi-gpio : Raspberry Pi specific node set inactive  
29 Oct 11:50:31 - [info] Dashboard version 2.10.1 started at /ui  
29 Oct 11:50:31 - [warn] ------------------------------------------------------  
29 Oct 11:50:31 - [warn] [node-red/tail] Not currently supported on Windows.  
29 Oct 11:50:31 - [warn] ------------------------------------------------------  
29 Oct 11:50:31 - [info] Settings file : C:\Users\username.node-red\settings.js  
29 Oct 11:50:31 - [info] Context store : 'default' [module=memory]  
29 Oct 11:50:31 - [info] User directory : C:\Users\username.node-red  
29 Oct 11:50:31 - [warn] Projects disabled : editorTheme.projects.enabled=false  
29 Oct 11:50:31 - [info] Flows file : C:\Users\username.node-red\flows\_ISS206837.json  
29 Oct 11:50:31 - [info] Creating new flow file  
29 Oct 11:50:31 - [warn]

* * *

Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials  
file will not be recoverable, you will have to delete it and re-enter  
your credentials.

## You should set your own key using the 'credentialSecret' option in your settings file. Node-RED will then re-encrypt your credentials file using your chosen key the next time you deploy a change.

29 Oct 11:50:31 - [info] Starting flows  
29 Oct 11:50:31 - [info] Started flows  
29 Oct 11:50:31 - [error] Uncaught Exception:  
29 Oct 11:50:31 - [error] Error: listen EACCES 0.0.0.0:1880  
at Server.setupListenHandle [as \_listen2] (net.js:1343:19)  
at listenInCluster (net.js:1401:12)  
at doListen (net.js:1510:7)  
at \_combinedTickCallback (internal/process/next\_tick.js:142:11)  
at process.\_tickCallback (internal/process/next\_tick.js:181:9)

What is this and how do I fix it? I have a demo tomorrow afternoon of Node-RED and it just broke on me this morning. Please help!

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [29 October 2018 18:16 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/2 "2018-10-29T18:16:08Z")

</div>

Is it possible that another version is running?

---

<div class="post-metadata">

**Author:** ![notaaron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/notaaron/32/3428_2.png) [@notaaron](https://discourse.nodered.org/u/notaaron)\
**Post date:** [29 October 2018 18:23 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/3 "2018-10-29T18:23:12Z")

</div>

I would have to say no. I have uninstalled/reinstalled twice with the same errors each time.

29 Oct 12:20:23 - [error] Uncaught Exception:  
29 Oct 12:20:23 - [error] Error: listen EACCES 0.0.0.0:1880  
at Server.setupListenHandle [as \_listen2] (net.js:1343:19)  
at listenInCluster (net.js:1401:12)  
at doListen (net.js:1510:7)  
at \_combinedTickCallback (internal/process/next\_tick.js:142:11)  
at process.\_tickCallback (internal/process/next\_tick.js:181:9)

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [29 October 2018 18:33 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/4 "2018-10-29T18:33:06Z")

</div>

What is the full path to your flows file? Copy your flows file to an known location

Best bet given the demo you have tomorrow is to revert to a backup you have taken.

After you have reverted back, copy your flows file back to where it should be

It appears to have confused your `%HOMEPATH%` as your settings file should be in  
C:\Users\<username\>.node-red\settings.js

NOT C:\Users\username.node-red\settings.js

---

<div class="post-metadata">

**Author:** ![notaaron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/notaaron/32/3428_2.png) [@notaaron](https://discourse.nodered.org/u/notaaron)\
**Post date:** [29 October 2018 18:40 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/5 "2018-10-29T18:40:41Z")

</div>

the path is C:\users(myuser.name).node-red\settings.js

I had to edit my first entry to show c:\users\username earlier

this is the latest error:  
29 Oct 12:41:03 - [info] Starting flows  
29 Oct 12:41:03 - [info] Started flows  
29 Oct 12:41:03 - [error] Uncaught Exception:  
29 Oct 12:41:03 - [error] Error: listen EACCES 0.0.0.0:1880  
at Server.setupListenHandle [as \_listen2] (net.js:1343:19)  
at listenInCluster (net.js:1401:12)  
at doListen (net.js:1510:7)  
at \_combinedTickCallback (internal/process/next\_tick.js:142:11)  
at process.\_tickCallback (internal/process/next\_tick.js:181:9)

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [29 October 2018 18:45 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/6 "2018-10-29T18:45:53Z")

</div>

Post edited.....

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [29 October 2018 18:47 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/7 "2018-10-29T18:47:56Z")

</div>

If you want to protect your username within the forum please keep the  
directory slashes in place!

Node-RED is pointed at the flows file but is then creating a new one.

Easiest given your presentation is to revert to your backup.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [29 October 2018 18:49 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/8 "2018-10-29T18:49:39Z")

</div>

@wtrk As your problem is on a different operating system and a different error message, please don't hijack this thread and instead open a new topic

---

<div class="post-metadata">

**Author:** ![notaaron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/notaaron/32/3428_2.png) [@notaaron](https://discourse.nodered.org/u/notaaron)\
**Post date:** [29 October 2018 18:50 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/9 "2018-10-29T18:50:41Z")

</div>

Sadly, I don't have a backup at this time. That's why I uninstalled and re-installed however, I'm not having any luck.

Let me give my machine a quick reboot since it's windows and see if that might help.

---

<div class="post-metadata">

**Author:** ![notaaron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/notaaron/32/3428_2.png) [@notaaron](https://discourse.nodered.org/u/notaaron)\
**Post date:** [29 October 2018 18:58 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/10 "2018-10-29T18:58:14Z")

</div>

that's a negative ghost rider

---

<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:** [29 October 2018 21:28 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/11 "2018-10-29T21:28:49Z")

</div>

It helps if you wrap path uri's in single back-ticks to make them easier to read and to make sure your back-slashes don't get swallowed as it then makes it impossible to see whether the path is in error or something else is happening.

It looks like Windows is refusing to create port 1880 on the local machine. Does the user running Node-RED have admin privileges? Try running Node-RED in an elevated cmd or PowerShell shell.

If that doesn't work, also try renaming `~\.node-red` and then running Node-RED again (from a std cmd/PS shell) in order to recreate the default setup. You can always put other files back in place later.

Finally, is this running on a corporate PC? Might someone have changed security settings?

---

<div class="post-metadata">

**Author:** ![notaaron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/notaaron/32/3428_2.png) [@notaaron](https://discourse.nodered.org/u/notaaron)\
**Post date:** [29 October 2018 22:08 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/12 "2018-10-29T22:08:39Z")

</div>

@TotallyInformation - thanks for the suggestion. Nither worked. I am the security guy within the company and I know I didn't change anything. From working at home on some flows, to coming into the office, the launch process broke

---

<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:** [29 October 2018 22:44 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/13 "2018-10-29T22:44:25Z")

</div>

OK, weird. Not sure you have many options other than to uninstall.

I'd be tempted to uninstall Node-RED, any other global nodes and then uninstall NodeJS. Then go back and carefully reinstall NodeJS from the website. Then follow the instructions in the docs to install Node-RED on Windows. Pay attention to comments about admin vs non-admin rights.

If that still doesn't work, I've some instructions on installing Node-RED locally rather than globally. Not very good instructions at the moment but hopefully you can follow them. Not specifically Windows instructions, they work on any supported platform.

> **[TotallyInformation/alternate-node-red-installer](https://github.com/TotallyInformation/alternate-node-red-installer)**
>
> An alternative installer for Node-RED. Avoids global installs, no admin rights required. - TotallyInformation/alternate-node-red-installer

I've not had any issues with Node-RED on Windows for a long time.

---

<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:** [30 October 2018 01:25 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/14 "2018-10-30T01:25:22Z")

</div>

As Administrator on the PC in a cmd box - run  
Netstat -b

This will tell you what EXE is hogging the 1880 port that Node-red wants.

---

<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:** [30 October 2018 01:32 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/15 "2018-10-30T01:32:55Z")

</div>

Alternatively as a short term fix to see if it is just a port issue - change the default port that NR wants to run with - say to 1881 and see if it will start then - maybe also post up your settings.js file

Craig

---

<div class="post-metadata">

**Author:** ![rpalma](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rpalma/32/9740_2.png) [@rpalma](https://discourse.nodered.org/u/rpalma)\
**Post date:** [13 June 2019 22:51 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/16 "2019-06-13T22:51:23Z")

</div>

As referenced in this [blog](https://www.codepool.biz/node-red-barcode-windows.html) my solution for the same problem was:

> change the port number in **%userprofile%.node-red\settings.js**. For example, we can change the default port number to **18800** and then it will work:

The 1881 also don't work for me.  
Already uninstall-\>install, nodered and nodejs (10 and 8)

**EDIT: I delete all my Hyper-V network cards and now its working.**

---

<div class="post-metadata">

**Author:** ![ibitoyeofd](https://avatars.discourse-cdn.com/v4/letter/i/aca169/32.png) [@ibitoyeofd](https://discourse.nodered.org/u/ibitoyeofd)\
**Post date:** [16 June 2019 10:10 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/17 "2019-06-16T10:10:27Z")

</div>

Thanks a million!!!  
Changed my port in settings.js file from 1880 to 18800 and it worked. Previously tried other ports like 1881 but didn't work.

---

<div class="post-metadata">

**Author:** ![nodekaiser](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@nodekaiser](https://discourse.nodered.org/u/nodekaiser)\
**Post date:** [16 March 2021 13:40 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/18 "2021-03-16T13:40:23Z")

</div>

Hi ,  
i had the same problem , to fix it , i had to check which service /app is using the port 1880 :  
in windows cmd :` netstat -aon | findstr '[1880]'`  
but it showed nothing .  
i have recently installed Docker for Windows and i knew it was the source of the problem , after some search i found : [node.js - Listening to Port 1880 fails on Windows - Stack Overflow](https://stackoverflow.com/questions/59264538/listening-to-port-1880-fails-on-windows)

type this in cmd to see blocked ports by Hyper-V :  
`netsh int ip show excludedportrange protocol=tcp`

to free the ports i did :  
`net stop winnat`  
for further details see : [windows 10 - Many excludedportranges how to delete - hyper-v is disabled - Super User](https://superuser.com/questions/1579346/many-excludedportranges-how-to-delete-hyper-v-is-disabled)

---

<div class="post-metadata">

**Author:** ![RobotX5](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/robotx5/32/62456_2.png) [@RobotX5](https://discourse.nodered.org/u/RobotX5)\
**Post date:** [31 May 2022 15:17 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/19 "2022-05-31T15:17:51Z")

</div>

This worked for me i am not sure what is running on the port it never showed in netstat.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [31 May 2022 19:14 UTC](https://discourse.nodered.org/t/node-red-wont-launch/4392/20 "2022-05-31T19:14:01Z")

</div>

Welcome to the node-Red forum, and thanks for the post, however this topic is over a year old, and will now be closed.  
If you wish to raise an issue, please start a fresh topic.

[Next page](https://discourse.nodered.org/t/node-red-wont-launch/4392.md?page=2)
