Describe the problem/error/question
Im triying to install @azure/search-documents npm package to be used inside a Function Node.
Im using Docker in Swarm mode, to run n8n, managing it with Portainer Dashboard.
my n8n stack has 3 services n8n_editor,n8n_workers and n8n_webhook
in all of my 3 services i have the following env variables:
- N8N_REINSTALL_MISSING_PACKAGES=true
- N8N_COMMUNITY_PACKAGES_ENABLED=true
- N8N_NODE_PATH=/home/note/.n8n/nodes
- NODE_FUNCTION_ALLOW_EXTERNAL=moment,lodash,moment-with-locales,axios,@azure/search-documents
I had a similar problem in the past, where ineeded to expose axios to use in my function node, doing so ,modifying the env variables in my stack did the trick but now i get the following error message in my function node
- I have tried installing the package inside the containers and restarting them, did not worked.
Am I missing something out?
What is the error message (if any)?
Cannot find module ‘@azure/search-documents’ [line 1]
Please share your workflow
Information on your n8n setup
- n8n version: latest
- Database (default: SQLite): PostgresSQL
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Ubuntu 22 server