From fddd40a5cdb39be4824824bdc8bfbd2bf0379113 Mon Sep 17 00:00:00 2001 From: Hung-Ruei Wu <84708731+x85432@users.noreply.github.com> Date: Fri, 8 Aug 2025 22:40:21 +0800 Subject: [PATCH] docs: clarify Node.js heap memory instructions for cross-platform usage (#5041) docs: clarify Node.js heap config for all platforms --- README.md | 47 +++++++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 8fc742050..4255a7214 100644 --- a/README.md +++ b/README.md @@ -23,16 +23,16 @@ English | [繁體中文](./i18n/README-TW.md) | [简体中文](./i18n/README-ZH. ## 📚 Table of Contents -- [⚡ Quick Start](#-quick-start) -- [🐳 Docker](#-docker) -- [👨‍💻 Developers](#-developers) -- [🌱 Env Variables](#-env-variables) -- [📖 Documentation](#-documentation) -- [🌐 Self Host](#-self-host) -- [☁️ Flowise Cloud](#️-flowise-cloud) -- [🙋 Support](#-support) -- [🙌 Contributing](#-contributing) -- [📄 License](#-license) +- [⚡ Quick Start](#-quick-start) +- [🐳 Docker](#-docker) +- [👨‍💻 Developers](#-developers) +- [🌱 Env Variables](#-env-variables) +- [📖 Documentation](#-documentation) +- [🌐 Self Host](#-self-host) +- [☁️ Flowise Cloud](#️-flowise-cloud) +- [🙋 Support](#-support) +- [🙌 Contributing](#-contributing) +- [📄 License](#-license) ## ⚡Quick Start @@ -64,18 +64,19 @@ Download and Install [NodeJS](https://nodejs.org/en/download) >= 18.15.0 ### Docker Image 1. Build the image locally: - + ```bash docker build --no-cache -t flowise . ``` + 2. Run image: - + ```bash docker run -d --name flowise -p 3000:3000 flowise ``` 3. Stop image: - + ```bash docker stop flowise ``` @@ -124,10 +125,24 @@ Flowise has 3 different modules in a single mono repository.
Exit code 134 (JavaScript heap out of memory) - If you get this error when running the above `build` script, try increasing the Node.js heap size and run the script again: + If you get this error when running the above `build` script, try increasing the Node.js heap size and run the script again: - export NODE_OPTIONS="--max-old-space-size=4096" - pnpm build + ```bash + # macOS / Linux / Git Bash + export NODE_OPTIONS="--max-old-space-size=4096" + + # Windows PowerShell + $env:NODE_OPTIONS="--max-old-space-size=4096" + + # Windows CMD + set NODE_OPTIONS=--max-old-space-size=4096 + ``` + + Then run: + + ```bash + pnpm build + ```