Installing Node.js

The required libraries and dependencies are listed here. First Node.js and npm need to be updated on the Raspberry Pi Raspbian operating system. For this the following steps can be followed:

  1. Install latest Node.js on the Raspberry Pi using the following command:
      $ curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -

This should display output similar to the following. The output is quite large therefore only the top part of the output is shown in the following screenshot:

Node.js installation
  1. Run the update via apt-get:
      $ sudo apt-get install nodejs

Verification can be performed by running the following command ...

Get Mastering Blockchain - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.