# How to install node packages, where's the node\_modules?

**URL:** <https://community.n8n.io/t/how-to-install-node-packages-wheres-the-node-modules/48495>\
**Category:** Questions\
**Tags:** deployment, docker-compose\
**Created:** [June 14, 2024, 2:26pm UTC](https://community.n8n.io/t/how-to-install-node-packages-wheres-the-node-modules/48495 "2024-06-14T14:26:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ludwig](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ludwig/32/58969_2.png) [@Ludwig](https://community.n8n.io/u/Ludwig)\
**Post date:** [June 14, 2024, 4:54pm UTC](https://community.n8n.io/t/how-to-install-node-packages-wheres-the-node-modules/48495/2 "2024-06-14T16:54:43Z")

</div>

Hi @yousername! Always a good question. We’ve had a few answers to it shared before. I’ll drop the links below:

> [@Installing node modules](http://community.n8n.io/t/installing-node-modules/32370/2):
>
> Hey @atomtr, Try using the below and see if that helps. FROM n8nio/n8n:latest USER root RUN npm install -g json2md USER node

> [@Installing additional module with npm](http://community.n8n.io/t/installing-additional-module-with-npm/11682):
>
> I want to install and extra module, and if I understand correctly from the docs, I need to: install the extra module ad an environment variable NODE\_FUNCTION\_ALLOW\_EXTERNAL=modulename What is not (yet) clear to me, is: whether I’ve got to install the extra module globally or inside n8n/node\_modules folder? how/where to ad an environment variable. I tried export NODE\_FUNCTION\_ALLOW\_EXTERNAL=modulename but nothing happens I’m obviously overlooking something very simple, but I don’t know what…

Happy building!

---

_[View the full topic](https://community.n8n.io/t/how-to-install-node-packages-wheres-the-node-modules/48495)._
