From e37bd8abf9b0f2d433cbc61b73ca1324659ac700 Mon Sep 17 00:00:00 2001 From: Connor McEwen Date: Fri, 10 May 2024 15:52:23 -0400 Subject: [PATCH] chore: add section to readme on nvm (#3763) ### Description Add section to the readme on using nvm to manage node versions --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index d1767c3c37..2d2d770c65 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,25 @@ foundryup Check out the [Foundry Book](https://book.getfoundry.sh/getting-started/installation) for more information. +### Node + +This repository targets v20 of node. We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage your node version. + +To install nvm + +```bash +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash +``` + +To install version 20 + +```bash +nvm install 20 +nvm use 20 +``` + +You should change versions automatically with the `.nvmrc` file. + ### Workspaces This monorepo uses [Yarn Workspaces](https://yarnpkg.com/features/workspaces). Installing dependencies, building, testing, and running prettier for all packages can be done from the root directory of the repository.