https://linuxize.com/post/how-to-install-node-js-on-raspberry-pi/
On a Raspberry Pi 4 run the following command:
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
Then add the following line:
@lxterminal -e /home/pi/HomeHubServer/start.sh
Installs node modules.
Runs the server.