# Node-red suddenly doesn't start anymore after a BSOD

**URL:** <https://discourse.nodered.org/t/node-red-suddenly-doesnt-start-anymore-after-a-bsod/82847>\
**Category:** General\
**Created:** [14 November 2023 07:55 UTC](https://discourse.nodered.org/t/node-red-suddenly-doesnt-start-anymore-after-a-bsod/82847 "2023-11-14T07:55:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![difedef](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@difedef](https://discourse.nodered.org/u/difedef)\
**Post date:** [14 November 2023 07:55 UTC](https://discourse.nodered.org/t/node-red-suddenly-doesnt-start-anymore-after-a-bsod/82847/1 "2023-11-14T07:55:20Z")

</div>

Hello everybody,

I have Node-red installed globally under my user folder.  
I have set it up with NSSM as a service and worked like a charm for months.

I was working yesterday and trying to mess around new speech\_to\_text nodes of various type.  
Actually I found what I needed and went with other things. That made my pc crashing.

At reboot, the status of the NSSM Nodered service was PENDING. Tried to stop, restart, and removed the service, but nothing.

If I try to start from cmd "normally" the service stops with the following log:

```auto
Microsoft Windows [Versione 10.0.19045.3570]
(c) Microsoft Corporation. Tutti i diritti sono riservati.

C:\Users\xxx>node-red
14 Nov 08:30:18 - [info]

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

14 Nov 08:30:18 - [info] Node-RED version: v3.0.2
14 Nov 08:30:18 - [info] Node.js version: v18.18.2
14 Nov 08:30:18 - [info] Windows_NT 10.0.19045 x64 LE
14 Nov 08:30:21 - [info] Loading palette nodes
14 Nov 08:30:26 - [error] Failed to start server:
14 Nov 08:30:26 - [error] TypeError: Cannot read properties of undefined (reading 'forEach')
    at Object.addModule (C:\Users\xxx\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\registry\lib\registry.js:195:27)
    at C:\Users\xxx\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\registry\lib\loader.js:153:34

C:\Users\xxx>

```

I tried to search the web and I found that I could uninstall the latest nodes, but actually I don't know the exact procedure to do that.  
There's a way to find out which are the latest node I installed? Where do I have to delete them from?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [14 November 2023 08:36 UTC](https://discourse.nodered.org/t/node-red-suddenly-doesnt-start-anymore-after-a-bsod/82847/2 "2023-11-14T08:36:04Z")

</div>

Welcome @difedef

I would start by removing the node that you installed, that caused the BSOD, and what is presumably breaking Node RED.

You can do this with the following.

- Using `CMD`
  - Navigate to `C:\Users\xxx\.node-red` \<- Make note of the dot named folder
  - Run `npm uninstall <name-of-node-you-installed>`
  - Try Node RED again

---

<div class="post-metadata">

**Author:** ![difedef](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@difedef](https://discourse.nodered.org/u/difedef)\
**Post date:** [14 November 2023 09:10 UTC](https://discourse.nodered.org/t/node-red-suddenly-doesnt-start-anymore-after-a-bsod/82847/3 "2023-11-14T09:10:37Z")

</div>

Hi marcus,

thanks for the reply. I actually solved the problem thanks to this post:

> [@Windows 10 \[error\] Failed to start server: \[error\] TypeError: Cannot read property](https://discourse.nodered.org/t/windows-10-error-failed-to-start-server-error-typeerror-cannot-read-property/18600/8):
>
> Hi @dougcr4 this is a rare issue that we've never managed to get to the root cause of. If you are still hitting it, could I trouble you to add a bit of debug into the code to help us figure it out? Specifically, if you edit the file C:\Users\Dell\AppData\Roaming\npm\node\_modules\node-red\node\_modules@node-red\registry\lib\registry.js and look at line 186 you should see: set.types.forEach(function(t) { if (nodeTypeToId.hasOwnProperty(t)) { Please add the …

I deleted dependencies from the package.json and the package-lock.json of the incriminated flows appeared in the log and deleted the folder manually.

Now I have a warning though about git (I think it's beacuse I copied .node-red folder maybe?) causing this warning (it appears twice) in the debug section:

```auto
Error: fatal: detected dubious ownership in repository at 'C:/Users/xxx/.node-red/projects/ProjectName'
'C:/Users/xxx/.node-red/projects/ProjectName' is owned by:
	'S-1-5-21-16142359-3949692286-4010545788-1001'
but the current user is:
	'S-1-5-18'
To add an exception for this directory, call:

	git config --global --add safe.directory C:/Users/xxx/.node-red/projects/ProjectName

```

And now the git history disappeared.

Do I have to open a new topic about that?

P.S. the BSOD didn't related to node-red, but I think I used other softwares and VMs that caused the BSOD, without stopping my node-red service (and probably without deploying some changes)

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [14 November 2023 09:54 UTC](https://discourse.nodered.org/t/node-red-suddenly-doesnt-start-anymore-after-a-bsod/82847/4 "2023-11-14T09:54:00Z")

</div>

I don't use window, and it relates to NTFS permissions.  
I'm sure someone who uses windows will chime in

---

<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:** [14 November 2023 11:13 UTC](https://discourse.nodered.org/t/node-red-suddenly-doesnt-start-anymore-after-a-bsod/82847/5 "2023-11-14T11:13:13Z")

</div>

> [@difedef](#):
>
> And now the git history disappeared.
> 
> Do I have to open a new topic about that?

> [@marcus-j-davies](#):
>
> I don't use window, and it relates to NTFS permissions.

While the user data is Windows, this is a GIT notification. You would see something similar on Linux/Mac if you copied data and changed ownership. GIT is simply warning you and asking whether you are happy with the change. Run the given command if you are happy that the directory is safe to use.

> [@difedef](#):
>
> And now the git history disappeared.

GIT is failing deliberately because it doesn't know if you trust the moved data. If you add the trust, I think it should re-appear.

---

<div class="post-metadata">

**Author:** ![difedef](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@difedef](https://discourse.nodered.org/u/difedef)\
**Post date:** [15 November 2023 09:37 UTC](https://discourse.nodered.org/t/node-red-suddenly-doesnt-start-anymore-after-a-bsod/82847/6 "2023-11-15T09:37:22Z")

</div>

> [@difedef](#):
>
> now the git history disappeared.
> 
> Do I have to open a new topic about that?
> 
> P.S. the BSOD didn't related to node-red, but I think I used other softwares and VMs that caused the BSOD, without stopping my node-red service (and probably without deploying some changes

I solved all of the issues I had, giving commands required.

Thanks for the help

---

<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:** [29 November 2023 09:37 UTC](https://discourse.nodered.org/t/node-red-suddenly-doesnt-start-anymore-after-a-bsod/82847/7 "2023-11-29T09:37:25Z")

</div>

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