Problems when starting the node red

That version of Node-JS is too new for your version of Node-RED 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 latest

npm i -g node-red@latest