Node-RED needs an operating system to live on, and it needs a little more horsepower.

Arduino has no operating system; it’s not that much of a processor
Although ARM-Cortex (STM-32) can run simple real-time operating systems, it’s still not running the bare minimum.

Don’t you want one of these? Raspberry-Pi Zero (very low-cost).
Node RED on Raspberry Pi zero

–Konrad, WA4OSH