How to Install Node.js on Raspberry Pi 3 (Raspbian)

Here’s how to install Node.js on Raspberry Pi (originally posted as a SoF answer for Ubuntu here)

Install curl

1
sudo apt-get install curl

Install node

v4

1
2
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs

v5

1
2
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs

v6

1
2
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

Share