# Installing pm2 services for windows

**URL:** https://discourse.nodered.org/t/installing-pm2-services-for-windows/89285
**Category:** General
**Created:** [5 July 2024 06:32 UTC](https://discourse.nodered.org/t/installing-pm2-services-for-windows/89285 "2024-07-05T06:32:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Tharun](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@Tharun](https://discourse.nodered.org/u/Tharun)
#### Post date: [5 July 2024 06:32 UTC](https://discourse.nodered.org/t/installing-pm2-services-for-windows/89285/1 "2024-07-05T06:32:42Z")

</div>

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?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/7/67daf3fc9fef8ceb81e4b73261317aeedad1dfbc.png)

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [5 July 2024 12:56 UTC](https://discourse.nodered.org/t/installing-pm2-services-for-windows/89285/2 "2024-07-05T12:56:49Z")

</div>

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:

```auto
npm get

```

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

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [3 October 2024 12:57 UTC](https://discourse.nodered.org/t/installing-pm2-services-for-windows/89285/3 "2024-10-03T12:57:34Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
