Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Commit e36f30c

Browse files
authored
Merge pull request #119 from tanishiking/nodejs-22
Update Node.js to v22
2 parents 7fd86c1 + 61dc70d commit e36f30c

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
java-version: '21'
2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: '22-nightly'
22+
node-version: '22'
2323
- name: npm install
2424
run: npm install
2525
- name: Tests

README.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,17 @@
44

55
### Prerequisites
66

7-
This project requires Node.js >= 22, which is available as nightly builds as of this writing.
8-
This is necessary to get enough support of WasmGC.
7+
This project requires Node.js >= 22 to get enough support of WasmGC.
98

109
If you are using NVM, you can instal Node.js 22 as follows:
1110

1211
```sh
13-
# Enable resolution of nightly builds
14-
$ NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly nvm install v22
12+
# Install Node.js v22
13+
$ nvm install 22
1514
# Switch to Node.js 22
1615
$ nvm use 22
1716
```
1817

19-
Otherwise, you can [manually download nightly builds of Node.js](https://nodejs.org/download/nightly/).
20-
You will need a nightly of v22 from 2024/04/01 or later.
21-
2218
### Setup
2319

2420
Before doing anything else, run `npm install`.
@@ -46,7 +42,7 @@ You can also use the `run.mjs` script to play with `@JSExportTopLevel` exports.
4642
- Run from the command line with `DENO_V8_FLAGS=--experimental-wasm-exnref deno run --allow-read run.mjs`.
4743
- Run from the browser by starting an HTTP server (e.g., `python -m http.server`) and navigate to `testrun.html`.
4844

49-
If you encounter the `Invalid opcode 0x1f` error with Node.js, you need to use a more recent nightly build (minimum required: v22 nightly from 2024/04/01).
45+
If you encounter the `Invalid opcode 0x1f` error with Node.js, you need to use a Node.js >= 22.
5046

5147
### Unit test suite
5248

0 commit comments

Comments
 (0)