Skip to content

Commit 0fdd35b

Browse files
committed
docs: use node 22 in the tutorial
1 parent bdd04d3 commit 0fdd35b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/src/content/tutorial/setting-up-the-environment.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Copy and paste these commands in a terminal:
2121
```
2222
sudo apt update
2323
sudo apt install curl git
24-
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
24+
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
2525
sudo apt-get install -y nodejs
2626
```
2727

@@ -33,9 +33,9 @@ There are multiple ways of installing Node.js on MacOS. We will be using [Node V
3333

3434
```
3535
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
36-
nvm install 20
37-
nvm use 20
38-
nvm alias default 20
36+
nvm install 22
37+
nvm use 22
38+
nvm alias default 22
3939
npm install npm --global # Upgrade npm to the latest version
4040
```
4141

@@ -61,12 +61,12 @@ If your version of Node.js is older and [not supported by Hardhat](../hardhat-ru
6161

6262
### MacOS
6363

64-
You can change your Node.js version using [nvm](http://github.com/creationix/nvm). To upgrade to Node.js `20.x` run these in a terminal:
64+
You can change your Node.js version using [nvm](http://github.com/creationix/nvm). To upgrade to Node.js `22.x` run these in a terminal:
6565

6666
```
67-
nvm install 20
68-
nvm use 20
69-
nvm alias default 20
67+
nvm install 22
68+
nvm use 22
69+
nvm alias default 22
7070
npm install npm --global # Upgrade npm to the latest version
7171
```
7272

0 commit comments

Comments
 (0)