Start Error after Windows Patchday?

My Node-RED instance wont start anymore after installing the patches KB5037763 and KB890830 to my Windows Server 2016.

error message:

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

15 May 20:18:15 - [info] Node-RED version: v2.1.3  
15 May 20:18:15 - [info] Node.js version: v22.1.0  
15 May 20:18:15 - [info] Windows_NT 10.0.14393 x64 LE  
15 May 20:18:15 - [error] Failed to start server:  
15 May 20:18:15 - [error] Error: spawn EINVAL  
at ChildProcess.spawn (node:internal/child_process:421:11)  
at spawn (node:child_process:760:9)  
at Object.execFile (node:child_process:350:17)  
at C:\Users\RTAdm\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\registry\lib\installer.js:581:27  
at new Promise (<anonymous>)  
at Object.checkPrereq (C:\Users\RTAdm\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\registry\lib\installer.js:580:16)  
at Object.load (C:\Users\RTAdm\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\registry\lib\index.js:59:22)  
at C:\Users\RTAdm\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\runtime\lib\index.js:146:29  
(node:3356) [DEP0059] DeprecationWarning: The `util.log API is deprecated. Please use console.log() with a custom formatter or a third-party logger instead.  
(Use `node --trace-deprecation ...` to show where the warning was created)

Any suggestions?

That version of Node-JS is too new for Node-RED 2.1.3 due to a security patch they did recently

Searching that error "Error: spawn EINVAL" would have lead you to:

In short, update node-red to 3.1.9 or 4.0.0-beta.3

Thank You!

after updating node-red to 3.1.19 via

npm install -g -unsafe-perm node-red
everything works fine.

 node-red start
16 May 21:15:35 - [info]

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

16 May 21:15:35 - [info] Node-RED version: v3.1.9
16 May 21:15:35 - [info] Node.js  version: v22.1.0
16 May 21:15:35 - [info] Windows_NT 10.0.14393 x64 LE
(node:12684) [DEP0059] DeprecationWarning: The `util.log API is deprecated. Please use console.log() with a custom formatter or a third-party logger instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
16 May 21:15:35 - [info] Loading palette nodes
16 May 21:15:36 - [info] Dashboard version 2.19.4 started at /ui
(node:12684) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
16 May 21:15:36 - [warn] ------------------------------------------------------
16 May 21:15:36 - [warn] [node-red-node-rbe/rbe] 'rbe' already registered by module node-red
16 May 21:15:36 - [warn] ------------------------------------------------------
16 May 21:15:36 - [info] Settings file  : \Users\RTAdm\.node-red\settings.js
16 May 21:15:36 - [info] HTTP Static    : C:\Users\RTAdm\.node-red\static > /
16 May 21:15:36 - [info] Context store  : 'default' [module=memory]
16 May 21:15:36 - [info] User directory : \Users\RTAdm\.node-red
16 May 21:15:36 - [warn] Projects disabled : editorTheme.projects.enabled=false
16 May 21:15:36 - [info] Flows file     : \Users\RTAdm\.node-red\start
16 May 21:15:36 - [info] Creating new flow file

but

if I start it via
C:\Users\RTAdm\AppData\Roaming\npm\node-red.cmd

then node-red version 2.1.3 starts (I use this for starting node-red via task scheduler)

PS C:\Users\RTAdm\AppData\Roaming\npm> .\node-red.cmd
16 May 21:19:49 - [info]

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

16 May 21:19:49 - [info] Node-RED version: v2.1.3
16 May 21:19:49 - [info] Node.js  version: v22.1.0
16 May 21:19:49 - [info] Windows_NT 10.0.14393 x64 LE
16 May 21:19:49 - [error] Failed to start server:
16 May 21:19:49 - [error] Error: spawn EINVAL
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at spawn (node:child_process:760:9)
    at Object.execFile (node:child_process:350:17)
    at C:\Users\RTAdm\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\registry\lib\installer.js:581:27
    at new Promise (<anonymous>)
    at Object.checkPrereq (C:\Users\RTAdm\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\registry\lib\installer.js:580:16)
    at Object.load (C:\Users\RTAdm\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\registry\lib\index.js:59:22)
    at C:\Users\RTAdm\AppData\Roaming\npm\node_modules\node-red\node_modules\@node-red\runtime\lib\index.js:146:29
(node:7584) [DEP0059] DeprecationWarning: The `util.log API is deprecated. Please use console.log() with a custom formatter or a third-party logger instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

Why? Is this the wrong .cmd file? Do I have to uninstall v2.1.3?