docs: clarify Node.js heap memory instructions for cross-platform usage (#5041)

docs: clarify Node.js heap config for all platforms
This commit is contained in:
Hung-Ruei Wu 2025-08-08 22:40:21 +08:00 committed by GitHub
parent bbcfb5ab63
commit fddd40a5cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 31 additions and 16 deletions

View File

@ -68,6 +68,7 @@ Download and Install [NodeJS](https://nodejs.org/en/download) >= 18.15.0
```bash
docker build --no-cache -t flowise .
```
2. Run image:
```bash
@ -126,8 +127,22 @@ Flowise has 3 different modules in a single mono repository.
<summary>Exit code 134 (JavaScript heap out of memory)</summary>
If you get this error when running the above `build` script, try increasing the Node.js heap size and run the script again:
```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
```
</details>