Skip to content

Commit dd84260

Browse files
authored
chore: update Node.js install in CONTRIBUTING.md (#1821)
1 parent ea3b304 commit dd84260

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,21 @@ own GitHub account and then [clone](https://help.github.com/articles/cloning-a-r
1313

1414
### Install Node.js
1515

16-
We recommend using Node.js 18. You can check your currently used Node.js version with the following command:
16+
Use [fnm](https://github.com/Schniz/fnm) or [nvm](https://github.com/nvm-sh/nvm) to run the command below. This will switch to the Node.js version specified in the project's `.nvmrc` file.
1717

1818
```bash
19-
node -v
20-
```
21-
22-
If you do not have Node.js installed in your current environment, you can use [nvm](https://github.com/nvm-sh/nvm) or [fnm](https://github.com/Schniz/fnm) to install it.
23-
24-
Here is an example of how to install the Node.js 18 LTS version via nvm:
25-
26-
```bash
27-
# Install the LTS version of Node.js 18
28-
nvm install 18 --lts
19+
# with fnm
20+
fnm use
2921

30-
# Make the newly installed Node.js 18 as the default version
31-
nvm alias default 18
32-
33-
# Switch to the newly installed Node.js 18
34-
nvm use 18
22+
# with nvm
23+
nvm use
3524
```
3625

3726
### Install pnpm
3827

39-
```sh
40-
# Enable pnpm with corepack, only available on Node.js >= `v14.19.0`
28+
Enable [pnpm](https://pnpm.io/) with corepack:
29+
30+
```bash
4131
corepack enable
4232
```
4333

0 commit comments

Comments
 (0)