Skip to content

Commit

Permalink
chore address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Jun 5, 2024
1 parent bb62f51 commit 44a6ab0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions docs/pages/faqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ This section of the documentation will cover common questions and encounters oft

## Tooling

:::note "Incorrect yarn version"
:::note "Package manager issues"

Lodestar is using [yarn classic](https://classic.yarnpkg.com/lang/en/). Using more recent versions will lead to issues (e.g. spurious insertion of `packageManager` field in `package.json`).
Lodestar relies on [corepack](https://nodejs.org/api/corepack.html) and associated `packageManager` value to manage its package manager version.

To set yarn to the right version globally, use the following command:
Make sure `corepack` is correctly enabled if you envounter some package manager related issues:

```bash
# Get latest classic version from https://classic.yarnpkg.com/lang/en/
yarn policies set-version $LATEST_CLASSIC_VERSION
corepack enable
```

:::
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,6 @@
"dns-over-http-resolver": "^2.1.1",
"loupe": "^2.3.6",
"vite": "^5.2.11"
}
},
"packageManager": "yarn@1.22.22+sha256.c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca"
}

0 comments on commit 44a6ab0

Please sign in to comment.