1. Environment Setup
1) Install Node.js (npm)
We recommend you install the latest Node LTS version for the
caver-js
compatibility.
Download Node.js (npm) from the official site: https://nodejs.org/
Install the package by clicking the download file.
Type
$ node --version
in your terminal to verifynode
has been successfully installed.
⚠ At the time of writing, the latest LTS version that is compatible with caver-js
is 10.16.0. If you have a higher Node version, caver-js
cannot be installed. Reinstall the Node or use NVM (Node Version Manager) to set up a stable environment.
2) Install Truffle
Truffle is a great tool for compiling and deploying contract files.
Type
$ sudo npm install -g truffle
in your terminal to install the truffle.Type
$ truffle version
in your terminal to verifytruffle
has been installed successfully.
⚠ If the version is lower than 5, install the truffle version 5.
$ sudo npm install -g truffle@5
Last updated