Installing Node Red on the Raspberry Pi
After completing the setup steps in Part 1, you will be taken to the main Raspberry Pi desktop. In the top left, click on the Raspberry logo, which will show a drop down of options. Click on the Programming tab, then click Terminal.
In order to program our Pi and get connected, we will need to install a couple of tools first, mainly Node.js and Node-Red by completing the following terminal commands:
- To update the system package list run
sudo apt-get update - Install the latest versions of system packages with
sudo apt-get dist-upgrade - Get the Node.js package we need to install by running
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - To install the Node.js package
sudo apt-get install -y nodejs - Finally download and install Node Red with command
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
Once all commands have been run in the terminal, the Raspberry Pi is setup and ready to go with Node Red.