Skip to content

Commit 596dbf3

Browse files
Update files to reflect the new node.js v24 (#7949)
With the update to node.js v24 in vscode and package.json some files have not been updated and still referenced version 22.x.
1 parent 51f90a3 commit 596dbf3

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

ci/build/npm-postinstall.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ main() {
6565
echo "USE AT YOUR OWN RISK!"
6666
fi
6767

68-
if [ "$major_node_version" -ne "${FORCE_NODE_VERSION:-22}" ]; then
69-
echo "ERROR: code-server currently requires node v22."
68+
if [ "$major_node_version" -ne "${FORCE_NODE_VERSION:-24}" ]; then
69+
echo "ERROR: code-server currently requires node v24."
7070
if [ -n "$FORCE_NODE_VERSION" ]; then
7171
echo "However, you have overrided the version check to use v$FORCE_NODE_VERSION."
7272
fi

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The prerequisites for contributing to code-server are almost the same as those
3131
for [VS Code](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#prerequisites).
3232
Here is what is needed:
3333

34-
- `node` v22.x
34+
- `node` v24.x
3535
- `git` v2.x or greater
3636
- [`git-lfs`](https://git-lfs.github.com)
3737
- [`npm`](https://www.npmjs.com/)

docs/android.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
1111
```
1212

1313
6. Exit the terminal using `exit` and then reopen the terminal
14-
7. Install and use Node.js 22:
14+
7. Install and use Node.js 24:
1515

1616
```shell
17-
nvm install 22
18-
nvm use 22
17+
nvm install 24
18+
nvm use 24
1919
```
2020

2121
8. Install code-server globally on device with: `npm install --global code-server`

docs/npm.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ includes installing instructions based on your operating system.
2929
3030
## Node.js version
3131

32-
We use the same major version of Node.js shipped with Code's remote, which is
33-
currently `22.x`. VS Code also [lists Node.js
32+
We use Node.js `24.x`. VS Code also [lists Node.js
3433
requirements](https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites).
3534

3635
Using other versions of Node.js [may lead to unexpected
@@ -78,7 +77,7 @@ Proceed to [installing](#installing)
7877
## FreeBSD
7978

8079
```sh
81-
pkg install -y git python npm-node22 pkgconf
80+
pkg install -y git python npm-node24 pkgconf
8281
pkg install -y libinotify
8382
```
8483

docs/termux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ npm config set python python3
5757
node -v
5858
```
5959

60-
you will get Node version `v22`
60+
you will get Node version `v24`
6161

6262
5. Now install code-server following our guide on [installing with npm](./npm.md)
6363

0 commit comments

Comments
 (0)