# Multiple NodeRed Instances on different Ports - Linux/SystemD

**URL:** https://discourse.nodered.org/t/multiple-nodered-instances-on-different-ports-linux-systemd/9555
**Category:** General
**Created:** [28 March 2019 18:24 UTC](https://discourse.nodered.org/t/multiple-nodered-instances-on-different-ports-linux-systemd/9555 "2019-03-28T18:24:01Z")
**Posts on this page:** 7
**Page:** 2

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [9 July 2020 20:33 UTC](https://discourse.nodered.org/t/multiple-nodered-instances-on-different-ports-linux-systemd/9555/22 "2020-07-09T20:33:23Z")

</div>

run `npm list node-red` and `npm list -g node-red` to see what it is running and where it is.

---

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [9 July 2020 20:39 UTC](https://discourse.nodered.org/t/multiple-nodered-instances-on-different-ports-linux-systemd/9555/23 "2020-07-09T20:39:22Z")

</div>

Might be something you already did but typically global node removal commands need to be run as root/with sudo (`sudo npm remove -g node-red`).

---

<div class="post-metadata">

### Author: ![ozpos](https://avatars.discourse-cdn.com/v4/letter/o/278dde/32.png) [@ozpos](https://discourse.nodered.org/u/ozpos)
#### Post date: [9 July 2020 21:18 UTC](https://discourse.nodered.org/t/multiple-nodered-instances-on-different-ports-linux-systemd/9555/24 "2020-07-09T21:18:05Z")

</div>

> [@Colin](#):
>
> npm list -g node-red

Thank you but sorry non the wiser:  
npm list node-red  
/home/pi  
|  
----- node-red@1.0.4

pi@control0:~ $ npm list -g node-red  
/home/pi/.config/nvm/versions/node/v8.15.1/lib  
|  
------ (empty)

---

<div class="post-metadata">

### Author: ![ozpos](https://avatars.discourse-cdn.com/v4/letter/o/278dde/32.png) [@ozpos](https://discourse.nodered.org/u/ozpos)
#### Post date: [9 July 2020 21:20 UTC](https://discourse.nodered.org/t/multiple-nodered-instances-on-different-ports-linux-systemd/9555/25 "2020-07-09T21:20:56Z")

</div>

> [@ristomatti](#):
>
> `sudo npm remove -g node-red`

That just removed all instances of NR.

---

<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: [9 July 2020 21:25 UTC](https://discourse.nodered.org/t/multiple-nodered-instances-on-different-ports-linux-systemd/9555/26 "2020-07-09T21:25:42Z")

</div>

Just a quick add. I have an alternate installer on my GitHub that focusses on independent, local installs of Node-RED so that you can install whatever version you like and run them independently. Even if you don't use the repo, the ideas may be of help.

---

<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: [9 July 2020 21:27 UTC](https://discourse.nodered.org/t/multiple-nodered-instances-on-different-ports-linux-systemd/9555/27 "2020-07-09T21:27:03Z")

</div>

> [@ozpos](#):
>
> npm list node-red  
> /home/pi  
> |  
> ----- node-red@1.0.4

Looks like you have another copy installed into your home folder. Check for a `node_modules` folder there and remove it if there is nothing you want in it.

---

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [10 July 2020 10:11 UTC](https://discourse.nodered.org/t/multiple-nodered-instances-on-different-ports-linux-systemd/9555/28 "2020-07-10T10:11:27Z")

</div>

> [@ozpos](#):
>
> That just removed all instances of NR.

It should remove the global/system wide installed one. I don't think there can be more than one. On a Pi the global modules dir is typically `/usr/lib/node_modules`. If you install another version with the `-g` flag, it will first uninstall any previous version.

[Previous page](https://discourse.nodered.org/t/multiple-nodered-instances-on-different-ports-linux-systemd/9555.md?page=1)
