Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4151

Beginners • Pi NAS server: JS Heap error

$
0
0
Hello! This is my first time to the forums; please let me know if I've missed anything or neglected to include any needed information.

- Running on a Pi Zero 2W
- Following this tutorial: https://raspberrytips.com/raspberry-pi-file-server/
- stuck on this step:
-

Code:

sudo npm install --unsafe-perm
Usually what'll happen is that I manage to get nearly all the way through the install, before running into this line:

Code:

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
I've read that the way to fix this is to set the max old space size to smaller options (such as 512, like this example states

Code:

export NODE_OPTIONS=--max-old-space-size=512
I've set mine at 32, as that is the size of my SD card. Perhaps I'm thinking too big and the card space is too small, or maybe I'm overlooking something else. Any advice?

Statistics: Posted by sky-limits — Sat Jul 27, 2024 8:38 pm



Viewing all articles
Browse latest Browse all 4151

Trending Articles