Install from source¶
NodeJS versions older than the current LTS are not supported by Lodestar. We recommend running the latest Node LTS.
Node Version Manager (NVM) will only install NodeJS for use with the active user. If you intend on setting up Lodestar to run under another user, we recommend using Nodesource's source for NodeJS so you can install NodeJS globally.
Clone the repo locally.
git clone https://github.com/chainsafe/lodestar.git
Install across all packages. Lodestar follows a monorepo structure, so all commands below must be run in the project root. Use the
--ignore-optional flag to prevent downloading the Ethereum Consensus spec tests.
yarn install --ignore-optional
Build across all packages.
yarn run build
Or if you are using Lerna:
Lodestar should now be ready for use.