How to install Node.js on your Raspberry Pi 2 or 3January 14, 2017
I visited a dozen pages searching for a nice, clean and elegant way to install Node.js on my Pi and found nothing on my favor. Some sites pointed to specific, non-official Node.js versions 😔 Others talked about using the package manager vs. doing the manual install.
Boring and unproductive all the above. I had to double or triple check the official docs just to realize that what I was looking for was somehow buried under some misleading links on the Node.js Downloads page.
This is how we do it right
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
Because installing Node.js on a Pi should be more straightforward. Take care.