Assuming that this is the same Raspberry Pi 3 board that was used in Chapter 4, AWS IoT, it should have Node.js installed. If Node.js is not installed, please refer to the following steps:
- Open a new Terminal and run the following commands:
$ sudo apt update$ sudo apt full-upgrade
- This will upgrade all the packages that need upgrades. Next, we will install the latest version of Node.js. We will be using the Node 7.x version:
$ curl -sL https://deb.nodesource.com/setup_7.x | sudo -Ebash- $ sudo apt install nodejs
- This will take a moment to install, and, once your installation is done, you should be able to run the following commands to see the versions of Node.js and NPM:
$ node -v$ npm -v