This is taken from an excellent article by Dave Johnson. You can read the entire article here.
Open a terminal.
Update package repository indexes.
sudo apt update
Download and update packages.
sudo apt full-upgrade
Download the latest Node.js binary from NodeSource.
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
Install the downloaded binary.
sudo apt install nodejs
Check and verify if the installation was successful.
Now you have installed the latest Node.js version on your Raspberry Pi!
Post your Node on Pi experiences below!
#Robots #Robotics #raspberrypi #robotics