diff --git a/.wordlist.txt b/.wordlist.txt index 17a82cd917f..1af267cc5f5 100644 --- a/.wordlist.txt +++ b/.wordlist.txt @@ -13,6 +13,7 @@ Casper Chai ChainSafe Codespaces +Corepack Customizations DPoS DVs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 026a72298a5..903f9ee32da 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,6 +16,7 @@ When using MacOS, there are a couple of extra prerequisites that are required. ## Getting Started +- :gear: Run `corepack enable` to enable [Corepack](https://nodejs.org/api/corepack.html). - :gear: Run `yarn` to install dependencies. - :gear: Run `yarn build` to build lib from source. - :package: A `lodestar` binary will be bundled in `./packages/cli/bin`. diff --git a/docs/pages/faqs.md b/docs/pages/faqs.md index d86f2a37471..8c6351a2438 100644 --- a/docs/pages/faqs.md +++ b/docs/pages/faqs.md @@ -2,6 +2,20 @@ This section of the documentation will cover common questions and encounters often asked by users and developers. +## Tooling + +:::note "Package manager issues" + +Lodestar relies on [Corepack](https://nodejs.org/api/corepack.html) and associated `packageManager` value to manage its package manager version. + +Make sure `corepack` is correctly enabled if you encounter some package manager related issues: + +```bash +corepack enable +``` + +::: + ## Troubleshooting Lodestar ### Running a beacon node diff --git a/package.json b/package.json index a30b6658917..29dc9822f7b 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "engines": { "node": ">=20.1.0 <21" }, + "packageManager": "yarn@1.22.22+sha256.c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca", "workspaces": [ "packages/*" ],