[FIX] install node version before corepack enable (#7809)
FIX #7696 This correctly installs the recommended node version before enabling corepack.  Thanks!
This commit is contained in:
@ -48,15 +48,28 @@ git config --global user.name "Your Name"
|
|||||||
git config --global user.email "youremail@domain.com"
|
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
|
```bash
|
||||||
sudo apt-get install curl
|
sudo apt-get install curl
|
||||||
|
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
|
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
|
corepack enable
|
||||||
```
|
```
|
||||||
Close and reopen your terminal to start using nvm.
|
|
||||||
|
|
||||||
</ArticleTab>
|
</ArticleTab>
|
||||||
</ArticleTabs>
|
</ArticleTabs>
|
||||||
@ -186,17 +199,8 @@ cp ./packages/twenty-server/.env.example ./packages/twenty-server/.env
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Step 6: Installing dependencies
|
## Step 6: Installing dependencies
|
||||||
|
To build Twenty server and seed some data into your database, run the following command:
|
||||||
<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:
|
|
||||||
```bash
|
```bash
|
||||||
nvm install # installs recommended node version
|
|
||||||
nvm use # use recommended node version
|
|
||||||
yarn
|
yarn
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -280,4 +284,4 @@ This should work out of the box with the eslint extension installed. If this doe
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
<ArticleEditContent></ArticleEditContent>
|
<ArticleEditContent></ArticleEditContent>
|
||||||
Reference in New Issue
Block a user