I can't add npm packages when deploying n8n via Docker Hub

Hello, for the first time I bought a web server from a hosting company called render and I am deploying n8n via docker hub to access it from the internet, but I want to do some coding in n8n, so I need some npm packages additionally, but I haven’t been able to do it. Has anyone done this before ?

This my web server :

In this section, I can write terminal codes at runtime or before running :

If I deploy like this, I cannot use npm packages. My question is, what commands do you think I should enter to include npm packages in n8n and deploy the n8n project ?

@rznkolds welcome to the N8n community.

The solution to your question is to create your own custom Docker image that starts with the official n8n image and then adds your extra npm packages. You will then tell Render to use this custom image instead of the standard one.

Hope this helps.

This repo is one of the ready-made templates that does most of the work for you during the production phase, allowing you to securely open it to the internet. You can create your own image by watching this video :

And repo :

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.