I have a similar problem: I added several libraries by building a docker container. It used to work, but after an upgrade, the libraries are no longer available…
Here is the Dockerfile:
FROM n8nio/n8n:1.73.1
USER root
RUN apk update && apk upgrade && apk add graphicsmagick inkscape qpdf imagemagick
USER node
RUN npm install bcrypt body-parser ovh googleapis
and the docker-compose.yml:
version: '2'
services:
n8n:
build:
context: .
container_name: n8n_test
environment:
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- NODE_PATH=/home/node/node_modules
- GENERIC_TIMEZONE=Europe/Paris
- NODE_FUNCTION_ALLOW_BUILTIN=*
- NODE_FUNCTION_ALLOW_EXTERNAL=bcrypt,body-parser,googleapis,lodash,moment,ovh,ua-parser-js
with n8n version 1.43 the modules were available, when upgrading to 1.73, they are not anymore.