For setup on pi
Follow nvm installation instructions Install nodejs and npm
enable serial port by going to boot/config.txt and adding enable_uart=1 at the end of the document but before pi4 stuff Make sure to turn off the linux console also (see respi docs)