[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!
This commit is contained in:
Hitarth Sheth
2024-10-21 10:07:14 -04:00
committed by GitHub
parent 28c99cbc64
commit b87c7d4a0c

View File

@ -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
<ArticleWarning>
Use `nvm` to install the correct `node` version. The `.nvmrc` ensures all contributors use the same version.
</ArticleWarning>
```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.
</ArticleTab>
</ArticleTabs>
@ -186,17 +199,8 @@ cp ./packages/twenty-server/.env.example ./packages/twenty-server/.env
```
## Step 6: Installing dependencies
<ArticleWarning>
Use `nvm` to install the correct `node` version. The `.nvmrc` ensures all contributors use the same version.
</ArticleWarning>
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
}
```
<ArticleEditContent></ArticleEditContent>
<ArticleEditContent></ArticleEditContent>