Node-Red crashes internally since updated to latest version of Node.JS

Hello guys,

perhaps you can help me with an issue.
We run node-red to simplify company processes with low-code. so far it was working well.
Since we updated due to IT-security demands to the latest version of Node.JS the windows service that was setup with admin account and NSSM crashes and the server address of node-red like localhost:1880 is not reachable anymore and all flows have stopped working.

In the windows event logs I found the following error message:
Error attaching to console for service Node-Red. AttachConsole() failed: No process is on the other end of the pipe.

I have already done the following:
-removed any local file access (reading and writing)
-removed stderr / stdout as well stdin from NSSM

When observing the Node.exe with sysinternals procmon.exe I have found this error message:
The server {... server name ...} did not register with DCOM within the required timeout.
Whatever that means.

After that crash I noticed the CPU load of Node.Exe is at 50%

Perhaps you guys can help and give me a hint what to do.

Thanks very much in advance.

What version of nodejs?

And what version of node-red?

Also, after upgrading nodejs, you may need to rebuild any binary artifacts that node modules created on the previous version of node. You may need to do this in the node-red installation directory as well as your user directory.

How you do this ^ will depend on how you installed node-red and the command line you use to start node-red.

Also show us the node red startup log.

Node JS current version: node-v25.2.1
Node-Red Version compare start-up
12 Feb 08:36:55 - [info] Node-RED version: v4.1.2
12 Feb 08:36:55 - [info] Node.js version: v25.2.1
12 Feb 08:36:55 - [info] Windows_NT 10.0.20348 x64 LE
12 Feb 08:36:56 - [info] Loading palette nodes
12 Feb 08:36:59 - [info] Settings file : C:\Users\xxx.node-red\settings.js
12 Feb 08:36:59 - [info] Context store : 'default' [module=memory]
12 Feb 08:36:59 - [info] User directory : \Users\xxx.node-red
12 Feb 08:36:59 - [warn] Projects disabled : editorTheme.projects.enabled=false
12 Feb 08:36:59 - [info] Flows file : \Users\xxx.node-red\flows.json

Node-Red has been installed via npm

Node-Red runs as windows service via NSSM

You are using an experimental version of Node.js.

Odd numbered Node.js versions are not considered useful for "live" use. You should always stick to LTS (Long Term Support) versions of which there are usually 3 to choose from.

I do note that I had to make some changes to UIBUILDER to allow some edge-case issues with node.js v24 so it is possible that you might also see some issues with Node-RED but I've not actually found any as yet. v22 is certainly a safe bet for now.

As mentioned, you should do a npm rebuild on your userDir folder to make sure any binaries are rebuilt.

Thank you very much for the fast answer.

I will consult with our IT-Security department to grand an exception for Node-JS v22.
I think actually it was v22 that was running before without issues - though our IT-Security department demanded to upgrade to the latest version of Node-JS due to security purposes and since that the trouble began.

Thank you guys for your help!
Kind regards

Node.js is very good at applying security fixes to ALL current LTS versions, not just the latest. Your IT department should never be using non-LTS versions of anything. And, they should be regularly updating things such as node.js for point updates so that they apply security and bug fixes rapidly. So they should be regularly updating v22. Moving to a new major version should involve a conversation with node.js app developers as there may be breaking changes. They certainly should know better than to implement a development version of something like node.js!