I'm running home assistant, and node red is running in docker. To be able to access the container I have to be root.
The node red node modules are installed in this config folder and therefore I've run this command there. In this folder all the modules are installed, also when they are installed through the palette.