Install Node.JS on Raspberry Pi 3

To install Node.JS on our little raspbian server, we will use the NodeSource repository.

The first step is to add the NodeSource APT repository and the PGP keys to verify packages. In your terminal, type:

curl -sL | sudo -E bash -

Now we can install Node.JS. Type:

sudo apt-get install -y nodejs

To check if Node.JS is installed successfully on your raspberry, type:

node -v

The output will be the node version (v8.6.0 in my case):