# node-red command gives a error

Node red is already running. Probably under user context or a service. You appear to be trying to launch another instance as root.

You shouldn't really run node-red as root unless it is for a specific reason and the is no other solution.

What OS is this running on? Ubuntu? Raspian ?