diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ef0779..e96fa1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,10 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + # This action is provided by Cypress. It installs node and the NPM # dependencies, and caches them. - name: Cypress install diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..a77793e --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/hydrogen diff --git a/README.md b/README.md index 6abc9c7..89f90c8 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,21 @@ This is the official site for the open source programming language **Toit**. It is built with [SvelteKit](https://kit.svelte.dev). +## Node version + +This project doesn't compile anymore with recent node versions. Use, +for example, `nvm` to install an older version of node. The repository +contains a `.nvmrc` file that specifies the node version that works. + +If you have nvm installed, but not automatically activated in your +.bashrc, you will need to do + +```bash +source /usr/share/nvm/init-nvm.sh +``` + +Then run `nvm install` to install the correct version of node. + ## Developing ```bash