I am trying to use the Google API (@googleapis/androidpublisher) module in a Code node inside my n8n workflow. Although I have installed the module and tested it successfully inside the Docker container, n8n is unable to recognize the module when the workflow is executed. The same error occurs for other modules like jsonwebtoken unless NODE_FUNCTION_ALLOW_EXTERNAL=* is set, but even that doesn’t work consistently.
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