# Custom node installation removes other node

**URL:** <https://discourse.nodered.org/t/custom-node-installation-removes-other-node/7095>\
**Category:** General\
**Created:** [21 January 2019 12:24 UTC](https://discourse.nodered.org/t/custom-node-installation-removes-other-node/7095 "2019-01-21T12:24:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![malinthasa](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@malinthasa](https://discourse.nodered.org/u/malinthasa)\
**Post date:** [21 January 2019 12:24 UTC](https://discourse.nodered.org/t/custom-node-installation-removes-other-node/7095/1 "2019-01-21T12:24:16Z")

</div>

Hi,

I have `X` and `Y` two custom nodes. I installed node `X` and `Y` I used them for a while. Then, I re-install node Y and it removes node `X` and I have to reinstall `X` node. What are the possible reasons for this behavior? Is this due to a dependency conflict between these two nodes?

Regards,  
Malintha

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [21 January 2019 12:42 UTC](https://discourse.nodered.org/t/custom-node-installation-removes-other-node/7095/2 "2019-01-21T12:42:57Z")

</div>

How did you install the nodes?  
How did you re-install node Y?

What version of npm (`npm -v`) are you using?

One possible explanation is your nodes were not listed in `.node-red/package.json` and you are using npm 5 or later. When you reinstalled node Y, npm will have removed node X if it was not listed in your package.json.

---

<div class="post-metadata">

**Author:** ![malinthasa](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@malinthasa](https://discourse.nodered.org/u/malinthasa)\
**Post date:** [21 January 2019 13:22 UTC](https://discourse.nodered.org/t/custom-node-installation-removes-other-node/7095/3 "2019-01-21T13:22:30Z")

</div>

I am using `npm 6.5.0 version`.

I install nodes using`npm install <location_of_the_source_folder>` command in side `.node-red` folder.

I can see both nodes are in`.node-red/package.json` file. But After installing Y, the short cut folder of X which was in `.node-red/node_modules` folder is missing and but the registration is still there in the `package.json` file.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [21 January 2019 13:26 UTC](https://discourse.nodered.org/t/custom-node-installation-removes-other-node/7095/4 "2019-01-21T13:26:16Z")

</div>

In which case, all I can say is you're hitting some odd behaviour of npm - it isn't anything Node-RED is doing.
