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.
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.
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:
npm ls -g node-red-contrib-pdfmake
cd ~/.node-red
npm ls node-red-contrib-pdfmake
Also, please paste your node-red startup log output.
You are using projects mode - the location of node-red files are a little different.
can you cd into c:\User\<username>\.node-red\projects\empty
and npm ls the nodes again
cd c:\User\<username>\.node-red\projects\empty
npm ls node-red-contrib-pdfmake
npm ls @platmac/pdfbuilder
also, did you CTRL+F
inside the node-red editor and search for pdf
? Did it find anything?
PS: please dont post pictures of text (its hard to read, unsearchable, and difficult to copy text from for replying) - use a code block and paste text instead (you can sanitise the text of course)
I have tried that, but the result is empty.
C:\Users<username>.node-red\projects\Empty>npm ls node-red-contrib-pdfmake
Empty@0.0.1 C:\Users<username>.node-red\projects\Empty
`-- (empty)C:\Users<username>.node-red\projects\Empty>npm ls @platmac/pdfbuilder
Empty@0.0.1 C:\Users<username>.node-red\projects\Empty
`-- (empty)
Yes, I have searched for "pdf"