Node-RED does not load with custom packages (both system and npm) without Internet/WAN connectivity

Hi,

I’m using the Node-RED Add-on for Hass.io on an ESXi Hypervisor with these custom packages:

“system_packages”: [
“make”,
“g++”,
“gcc”,
“python”,
“linux-headers”
],
“npm_packages”: [“node-red-contrib-rfxcom”]

and it crashes if I load with those packages with no WAN connection. How do I ensure I have a local cache of the required dependencies?

Logs below (all the packages are fetched so if I turn off WAN it will crash for any of the above packages):