Custom node installation removes other node

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

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.

I am using npm 6.5.0 version.

I install nodes usingnpm 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.

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