How to install node packages, where's the node_modules?

Problem solved by accessing the container as a root.

Then perform installation with -g for global

docker exec -it -u root n8n_2024 /bin/sh

npm install -g sanitize-html

proof of work

1 Like