What are the system spec that is needed to pnpm run build the n8n locally?

Hey there I am trying to build the n8n branch locally, I did the pnpm i correctly to install the dependencies, but when I am running the pnpm run build, it abruptly fails due to ram overhead as my os kills that process. I am using 8gb 3200DDR4 ram, is it not enough? Thanks for helping.

Hello djchk, welcome to n8n community! i’ll try my best to help.

Building n8n locally is memory-hungry because it compiles a large monorepo with TypeScript + webpack. 8 GB RAM is usually not enough, the build often gets OOM-killed. I recommend 16 GB RAM (bare minimum 12 GB free during build)

For the Disk, ~10 GB free space for node_modules + build artifacts. For the CPU, 4+ cores helps a lot but memory is the main bottleneck.

I give you a tips if you only have 8 GB:

  • Run pnpm build –filter= to build only the parts you need
  • Close other apps so Node gets more headroom.
  • Add swap space (on Linux) or increase Docker Dekstop’s memory allocation.

Maybe thats all i can share, if you plan to work on n8n regularly, upgrading to 16 GB RAM will save you constant pain. Hope this will works yaa! :blush::raising_hands:

3 Likes

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