Skip to Content
Mastering Blockchain - Second Edition
book

Mastering Blockchain - Second Edition

by Ankur Daharwal, Imran Bashir, Pranav Burnwal
March 2018
Beginner to intermediate
656 pages
20h 9m
English
Packt Publishing
Content preview from Mastering Blockchain - Second Edition

Installation

Before installation, it is assumed that node is available, which can be queried as shown here. If the node is not available, then the installation of node is required first in order to install truffle:

$ node -version 
v7.2.1 

The installation of truffle is very simple and can be done using the following command via Node Package Manager (npm):

$ sudo npm install -g truffle 

This will take a few minutes; once it is installed, the truffle command can be used to display help information and verify that it is installed correctly:

$ sudo npm install -g truffle
Password:
/us/local/bin/truffle -> /usr/local/lib/node_modules/truffle/build/cli.bundled.js
/usr/local/lib└── truffle@4.0.1  

Type truffle at Terminal to display usage help:

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

Mastering Blockchain - Third Edition

Mastering Blockchain - Third Edition

Imran Bashir
Mastering Blockchain

Mastering Blockchain

Lorne Lantz, Daniel Cawrey
Mastering Ethereum

Mastering Ethereum

Andreas M. Antonopoulos, Gavin Wood

Publisher Resources

ISBN: 9781788839044Supplemental Content