install nodejs on pi code example
Example 1: install node js on raspberry pi
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
Example 2: install node on raspberry pi
node --version
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
node --version