Here’s a very quick post on how to install node js on a pi. This is more for my memory than anything else.

sudo apt-get update
sudo apt-get upgrade
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt install nodejs