From a3310b6ea2224b90b2944504b4451e7bcad80764 Mon Sep 17 00:00:00 2001 From: Milos Dimitrijevic <46306967+milos018@users.noreply.github.com> Date: Wed, 8 Feb 2023 10:23:07 +0100 Subject: [PATCH] chore: add .nvmrc to ensure node v18 (#1579) --- .nvmrc | 1 + CONTRIBUTING.md | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..0828ab79 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v18 \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a2bae242..72d04784 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,7 +16,9 @@ To develop and test the Elk package: 1. Fork the Elk repository to your own GitHub account and then clone it to your local device. -2. Ensure using the latest Node.js (16.x) +2. Ensure using the latest Node.js (16.x). +If you have [nvm](https://github.com/nvm-sh/nvm), you can run `nvm i` to install the required version. + 3. The package manager used to install and link dependencies must be [pnpm](https://pnpm.io/) v7. To use it you must first enable [Corepack](https://github.com/nodejs/corepack) by running `corepack enable`. (Note: on Linux in a standard Node 16+ environment, you should follow the instructions to install via Node's `corepack` rather than using the `curl` command)