Skip to content

Commit 9258d92

Browse files
committed
Update Node to v18
1 parent 6b83057 commit 9258d92

12 files changed

+39
-39
lines changed

.github/workflows/build.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ jobs:
5050
files: |
5151
docs/**
5252
53-
- name: Install Node.js v16
53+
- name: Install Node.js v18
5454
if: steps.changed-files.outputs.any_changed == 'true'
5555
uses: actions/setup-node@v3
5656
with:
57-
node-version: "16"
57+
node-version: "18"
5858
cache: "yarn"
5959

6060
- name: Install doctoc
@@ -115,11 +115,11 @@ jobs:
115115
files_ignore: |
116116
lib/vscode/**
117117
118-
- name: Install Node.js v16
118+
- name: Install Node.js v18
119119
if: steps.changed-files.outputs.any_changed == 'true'
120120
uses: actions/setup-node@v3
121121
with:
122-
node-version: "16"
122+
node-version: "18"
123123

124124
- name: Fetch dependencies from cache
125125
if: steps.changed-files.outputs.any_changed == 'true'
@@ -170,11 +170,11 @@ jobs:
170170
files_ignore: |
171171
lib/vscode/**
172172
173-
- name: Install Node.js v16
173+
- name: Install Node.js v18
174174
if: steps.changed-files.outputs.any_changed == 'true'
175175
uses: actions/setup-node@v3
176176
with:
177-
node-version: "16"
177+
node-version: "18"
178178

179179
- name: Fetch dependencies from cache
180180
if: steps.changed-files.outputs.any_changed == 'true'
@@ -224,10 +224,10 @@ jobs:
224224
- name: Patch Code
225225
run: quilt push -a
226226

227-
- name: Install Node.js v16
227+
- name: Install Node.js v18
228228
uses: actions/setup-node@v3
229229
with:
230-
node-version: "16"
230+
node-version: "18"
231231

232232
- name: Fetch dependencies from cache
233233
id: cache-node-modules
@@ -298,10 +298,10 @@ jobs:
298298
- name: Install system dependencies
299299
run: sudo apt update && sudo apt install -y libkrb5-dev
300300

301-
- name: Install Node.js v16
301+
- name: Install Node.js v18
302302
uses: actions/setup-node@v3
303303
with:
304-
node-version: "16"
304+
node-version: "18"
305305

306306
- name: Fetch dependencies from cache
307307
id: cache-node-modules
@@ -357,10 +357,10 @@ jobs:
357357
- name: Install system dependencies
358358
run: sudo apt update && sudo apt install -y libkrb5-dev
359359

360-
- name: Install Node.js v16
360+
- name: Install Node.js v18
361361
uses: actions/setup-node@v3
362362
with:
363-
node-version: "16"
363+
node-version: "18"
364364

365365
- name: Fetch dependencies from cache
366366
id: cache-node-modules

.github/workflows/release.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
- name: Checkout repo
3636
uses: actions/checkout@v3
3737

38-
- name: Install Node.js v16
38+
- name: Install Node.js v18
3939
uses: actions/setup-node@v3
4040
with:
41-
node-version: "16"
41+
node-version: "18"
4242

4343
- name: Install development tools
4444
run: |
@@ -142,16 +142,16 @@ jobs:
142142
CXX: ${{ format('{0}-g++', matrix.prefix) }}
143143
LINK: ${{ format('{0}-g++', matrix.prefix) }}
144144
NPM_CONFIG_ARCH: ${{ matrix.arch }}
145-
NODE_VERSION: v16.13.0
145+
NODE_VERSION: v18.15.0
146146

147147
steps:
148148
- name: Checkout repo
149149
uses: actions/checkout@v3
150150

151-
- name: Install Node.js v16
151+
- name: Install Node.js v18
152152
uses: actions/setup-node@v3
153153
with:
154-
node-version: "16"
154+
node-version: "18"
155155

156156
- name: Install nfpm
157157
run: |
@@ -210,10 +210,10 @@ jobs:
210210
- name: Checkout repo
211211
uses: actions/checkout@v3
212212

213-
- name: Install Node.js v16
213+
- name: Install Node.js v18
214214
uses: actions/setup-node@v3
215215
with:
216-
node-version: "16"
216+
node-version: "18"
217217

218218
- name: Install nfpm
219219
run: |

.github/workflows/security.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
with:
3030
fetch-depth: 0
3131

32-
- name: Install Node.js v16
32+
- name: Install Node.js v18
3333
uses: actions/setup-node@v3
3434
with:
35-
node-version: "16"
35+
node-version: "18"
3636

3737
- name: Fetch dependencies from cache
3838
id: cache-yarn

ci/build/npm-postinstall.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ main() {
6868
echo "USE AT YOUR OWN RISK!"
6969
fi
7070

71-
if [ "$major_node_version" -ne "${FORCE_NODE_VERSION:-16}" ]; then
72-
echo "ERROR: code-server currently requires node v16."
71+
if [ "$major_node_version" -ne "${FORCE_NODE_VERSION:-18}" ]; then
72+
echo "ERROR: code-server currently requires node v18."
7373
if [ -n "$FORCE_NODE_VERSION" ]; then
7474
echo "However, you have overrided the version check to use v$FORCE_NODE_VERSION."
7575
fi

docs/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ for [VS
3737
Code](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#prerequisites).
3838
Here is what is needed:
3939

40-
- `node` v16.x
40+
- `node` v18.x
4141
- `git` v2.x or greater
4242
- [`git-lfs`](https://git-lfs.github.com)
4343
- [`yarn`](https://classic.yarnpkg.com/en/)

docs/android.md

+3-3
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 16:
14+
7. Install and use Node.js 18:
1515

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

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

docs/npm.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ includes installing instructions based on your operating system.
3030
## Node.js version
3131

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

3636
Using other versions of Node.js [may lead to unexpected
@@ -79,7 +79,7 @@ Proceed to [installing](#installing)
7979
## FreeBSD
8080

8181
```sh
82-
pkg install -y git python npm-node16 pkgconf
82+
pkg install -y git python npm-node18 pkgconf
8383
pkg install -y libinotify
8484
```
8585

docs/termux.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ npm config set python python3
5656
node -v
5757
```
5858

59-
you will get node version `v16.15.0`
59+
you will get Node version `v18`
6060

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

flake.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
flake-utils.lib.eachDefaultSystem
88
(system:
99
let pkgs = nixpkgs.legacyPackages.${system};
10-
nodejs = pkgs.nodejs-16_x;
10+
nodejs = pkgs.nodejs-18_x;
1111
yarn' = pkgs.yarn.override { inherit nodejs; };
1212
in {
1313
devShells.default = pkgs.mkShell {

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ install_npm() {
441441
return
442442
fi
443443
echoerr "Please install npm to install code-server!"
444-
echoerr "You will need at least node v12 and a few C dependencies."
444+
echoerr "You will need at least node v18 and a few C dependencies."
445445
echoerr "See the docs https://coder.com/docs/code-server/latest/install#npm"
446446

447447
exit 1

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@types/express": "^4.17.8",
4545
"@types/http-proxy": "^1.17.4",
4646
"@types/js-yaml": "^4.0.0",
47-
"@types/node": "^16.0.0",
47+
"@types/node": "^18.0.0",
4848
"@types/pem": "^1.9.5",
4949
"@types/proxy-from-env": "^1.0.1",
5050
"@types/safe-compare": "^1.1.0",
@@ -82,7 +82,7 @@
8282
"nanoid": "^3.1.31",
8383
"minimist": "npm:minimist-lite@2.2.1",
8484
"glob-parent": "^6.0.1",
85-
"@types/node": "^16.0.0",
85+
"@types/node": "^18.0.0",
8686
"qs": "^6.7.3"
8787
},
8888
"dependencies": {
@@ -120,7 +120,7 @@
120120
"remote-development"
121121
],
122122
"engines": {
123-
"node": "16"
123+
"node": "18"
124124
},
125125
"jest": {
126126
"transform": {

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,10 @@
285285
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.2.tgz#93e25bf9ee75fe0fd80b594bc4feb0e862111b5a"
286286
integrity sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==
287287

288-
"@types/node@*", "@types/node@^16.0.0":
289-
version "16.18.18"
290-
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.18.tgz#06cb0eeb5a0175d26d99b7acf4db613ca30cb07f"
291-
integrity sha512-fwGw1uvQAzabxL1pyoknPlJIF2t7+K90uTqynleKRx24n3lYcxWa3+KByLhgkF8GEAK2c7hC8Ki0RkNM5H15jQ==
288+
"@types/node@*", "@types/node@^18.0.0":
289+
version "18.17.18"
290+
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.17.18.tgz#acae19ad9011a2ab3d792232501c95085ba1838f"
291+
integrity sha512-/4QOuy3ZpV7Ya1GTRz5CYSz3DgkKpyUptXuQ5PPce7uuyJAOR7r9FhkmxJfvcNUXyklbC63a+YvB3jxy7s9ngw==
292292

293293
"@types/pem@^1.9.5":
294294
version "1.9.6"

0 commit comments

Comments
 (0)