From b87c7d4a0ca0523c54961664595ccfa2c74fdfa7 Mon Sep 17 00:00:00 2001 From: Hitarth Sheth <133380930+Hitarthsheth07@users.noreply.github.com> Date: Mon, 21 Oct 2024 10:07:14 -0400 Subject: [PATCH] [FIX] install node version before corepack enable (#7809) FIX #7696 This correctly installs the recommended node version before enabling corepack. ![Screenshot 2024-10-14 142628](https://github.com/user-attachments/assets/674f28d5-8d1b-40fc-aaae-4195c14ea350) Thanks! --- .../src/content/developers/local-setup.mdx | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/packages/twenty-website/src/content/developers/local-setup.mdx b/packages/twenty-website/src/content/developers/local-setup.mdx index b66ea2ee4..1db380bce 100644 --- a/packages/twenty-website/src/content/developers/local-setup.mdx +++ b/packages/twenty-website/src/content/developers/local-setup.mdx @@ -48,15 +48,28 @@ git config --global user.name "Your Name" git config --global user.email "youremail@domain.com" ``` -3. Install Node.js, nvm, yarn +3. Install nvm, node.js and yarn + + +Use `nvm` to install the correct `node` version. The `.nvmrc` ensures all contributors use the same version. + + + ```bash sudo apt-get install curl curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash +``` +Close and reopen your terminal to use nvm. Then run the following commands. + +```bash + +nvm install # installs recommended node version + +nvm use # use recommended node version corepack enable ``` -Close and reopen your terminal to start using nvm. @@ -186,17 +199,8 @@ cp ./packages/twenty-server/.env.example ./packages/twenty-server/.env ``` ## Step 6: Installing dependencies - - - -Use `nvm` to install the correct `node` version. The `.nvmrc` ensures all contributors use the same version. - - - -To build Twenty server and seed some data into your database, run the following commands: +To build Twenty server and seed some data into your database, run the following command: ```bash -nvm install # installs recommended node version -nvm use # use recommended node version yarn ``` @@ -280,4 +284,4 @@ This should work out of the box with the eslint extension installed. If this doe } ``` - + \ No newline at end of file