Skip to Content
Enterprise Internet of Things Handbook
book

Enterprise Internet of Things Handbook

by Arvind Ravulavaru
April 2018
Intermediate to advanced
332 pages
8h 5m
English
Packt Publishing
Content preview from Enterprise Internet of Things Handbook

Setting up Node.js on the Raspberry Pi 3

Log into your Raspberry Pi 3, either via VNC or SSH, or directly connecting it to a monitor.

We will start off by downloading Node.js. 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 -E bash -
$ 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 version of Node.js and npm:

$ node -v
$ npm -v  

You should see something like this:

With this, we are done with ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Embedded Software for the IoT

Embedded Software for the IoT

Klaus Elk
Building Sensor Networks

Building Sensor Networks

Ioanis Nikolaidis, Krzysztof Iniewski
Architecting the Industrial Internet

Architecting the Industrial Internet

Robert Stackowiak, Carla Romano, Shyam Varan Nath

Publisher Resources

ISBN: 9781788838399Supplemental Content