RPi 3B Slow & JavaScript heap issues

March 28, 2024, 19:20

thijmenl98

Hey guys, I'm trying to serve an angular application using nginx on my RPi 3B (not 3B+, the title is incorrect), but I haven't even passed installing a simple angular application, as using npm install causes the entire thing to freeze (and i need to restart it by unplugging). Every time i get issues such as: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory or INFO: task kworker/1:0:1273 blocked for more than 120 seconds (or 240 etc) And the commands such as ng serve, ng build are incredibly slow. Is there anything I can do? I am running the latest Ubuntu Server 64x LTS, installed node v20 and cloned a github repo, the rest is all still fresh.