Thursday 29 September 2016

Installing NodeJS on Raspberry PI

Things you will need:


1- Putty(SSH Client)
2- Internet connectivity on your pi

1- Update and install all the essential files needed for the build

sudo apt-get update
---wait for the update to finish


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

To confirm the installation enter following

node -v

I have a different version


2- Install the RPI-GPIO to access the Raspberry pins via nodejs

sudo npm install rpi-gpio