FlowFuse / nr-launcher

A Laucher for Node-RED that allows settings to be loaded at startup.
Apache License 2.0
5 stars 6 forks source link

Add NODE_OPTIONS env var to npm install #195

Closed hardillb closed 9 months ago

hardillb commented 9 months ago

part of #194

Description

Set the max-old-space for npm when doing the initial install to try and prevent the process getting killed by the OOM reaper (or at least try and limit heap size to with in the bounds)

Related Issue(s)

part of #194

Checklist

Labels

hardillb commented 9 months ago

I need to test this a bit more on Docker and my local Kube, but it should help.

hardillb commented 9 months ago

Deleting because

$NODE_OPTIONS="--max-old-space=256" npm install 
/usr/bin/node-18: --max-old-space= is not allowed in NODE_OPTIONS