Palette Manager Cache

Hi all,

I found out that I can't remove some modules 1 of 3 modules is my custom node. I have tried to uninstall and install the node red again, but it doesn't work. I checked the node modules folder, it is still empty.

If a modules node is in use, you cannot remove them from the palette. Use CTRL+F in the node-red workspace and search for instances of "pdf" and "cnc" etc. Dont forget to check in the RH sidebar labelled "config" for config nodes left behind from previously deleted nodes.

If a module was installed globally (e.g. using npm install -g some-module) you cannot remove them from the palette and need to run npm remove -g some-module)

That is because installing node-red only installs the main runtime. When you run node-red it creates a user directory (usually ~/.node-red or c:\Users\<user>\.node-red) where modules are installed.

So when you re-installed node-red and started it, it would find your old project in the user directory mentioned above.

If you want to know where that user directory is, it is printed in the startup output log of node-red.

1 Like

Actually, when I uninstalled the node red, I have deleted the ~/.node-red folder. My picture above is the pallet manager when the node-red first run, it just use empty flow. I think when the module is used, the status in palette manager becomes "in used".

I think the issue comes because I tried to uninstall or remove the module from cmd. Do you know where is the source of palette manager? I have checked the node-modules folder inside node red workspace and node red npm, nor of them have those modules.

What does the following show:

1

npm ls -g node-red-contrib-pdfmake

2

cd ~/.node-red 
npm ls node-red-contrib-pdfmake

3

Also, please paste your node-red startup log output.