Workaround: Failed to start server

Hi
i got an issue with Starting up node red.

Error: Failed to start server

Versions: Node red 3.1.8, nodejs 20.16.0

Error is with running npm in line
[project dir]\node_modules@node-red\registry\lib\installer.js:584:27

Workaround:
change

const npmCommand = process.platform === 'win32' ? 'npm.cmd' : 'npm';

to

const npmCommand = 'npm';

The better "workaround" is to update to latest Node-RED where this issue is already fixed :wink:

The issue was NodeJS changed something for security reasons that place restrictions on spawning .bat and .cmd.

:smiley: Seems to be more easy...
Thanks.. just have seen that this error was discussed allot.