Installing pm2 services for windows

Dear Team,

This query is based on how to install pm2 services for Windows I have flows running on the server whenever the internet gets interrupted or closed the command prompts that my flows stop how do restart it automatically

I need to find the exact location of node-red by using the command "which node-red" causing the error on the command prompt,
I'm trying it on a local machine can you please help me with this pm2 service?

This is one of the reasons I never install Node-RED globally. Finding it can be tricky and very different between platforms.

However, the following command will get you close:

npm get

The resulting "prefix" will show you where global installs reside.