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.
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.
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.
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.
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!