How to use node packages

i am using docker to n8n. I want to use let’s say deep-diff npm package inside of my “function node” or “Http node” not sure how to.
Overall i’m very impressed with this idea and thanks all for your efforts, I really liked the way it functions. I am trying to automate my api testing using n8n :slight_smile:

Hello @Naresh_Nagarajan welcome to the community! Thanks, really great to hear that you enjoy n8n!

About your question. You can check out this topic which should answer your question:

Thank you very much for the quick response.
Mounting volume for libs may create issue for example mac compiled lib will not work in alpine. So i did,


FROM n8nio/n8n:0.55.1

RUN npm install moment -g

ENV NODE_FUNCTION_ALLOW_EXTERNAL=moment

CMD ["n8n"]

@jan

1 Like