Lisk Elements requires Node.js as the underlying engine for code execution. This document describes how to install Node and NPM for installation via NPM.
Follow the instructions for your operating system on the Node.js downloads page.
|NPM is automatically installed along with Node.js.|
This section describes how to install Lisk Elements for a given distribution.
|As all packages in Lisk Elements are independent from each other, they can be installed seperately.|
To install the latest version of Lisk Elements for use as a dependency in a Node.js project, please proceed with the following:
npm install lisk-elements
npm install @liskhq/<package-name> (1)
|For concrete code examples for each package, check the Packages section.|
Upon successful completion, NPM will add the Lisk Elements package to your
Include the script below using the following HTML. The
lisk variable will be exposed.
To include other packages of Lisk Elements, replace
lisk-client with any of the packages of Lisk Elements.