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:
parent
bbcfb5ab63
commit
fddd40a5cd
15
README.md
15
README.md
|
|
@ -68,6 +68,7 @@ Download and Install [NodeJS](https://nodejs.org/en/download) >= 18.15.0
|
||||||
```bash
|
```bash
|
||||||
docker build --no-cache -t flowise .
|
docker build --no-cache -t flowise .
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Run image:
|
2. Run image:
|
||||||
|
|
||||||
```bash
|
```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>
|
<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:
|
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"
|
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
|
pnpm build
|
||||||
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue