Having a problem getting n8n up and running after installing a NPM package.
I created a directory, in there npm installed the package and mounted the volume in my docker-compose.yml. I also set the NODE_FUNCTION_ALLOW_EXTERNAL env variable.
Before doing this my n8n instance ran perfectly. Currently I get the error
n8n-1 | /docker-entrypoint.sh: exec: line 7: n8n: not found
This fixed the original error and made me able to run n8n again but using the installed package inside the Code node does not seem to work.
I’ve installed both the maizzle and @maizzle/framework packages with this dockerfile and pushed it to my registry
FROM docker.n8n.io/n8nio/n8n
USER root
RUN npm install -g maizzle @maizzle/framework
USER node
Changed the NODE_FUNCTION_ALLOW_EXTERNAL environment variable to * in docker-compose.yml
However, trying to get the package to work using const Maizzle = require("maizzle"); (or @maizzle/framework) results in an error that the package has not been found by n8n.