From fde021114576397969fd7960632fb125b4f6ec9b Mon Sep 17 00:00:00 2001 From: nkoder Date: Mon, 26 Apr 2021 23:14:12 +0200 Subject: [PATCH] Configure nvm to help us avoid constant switching between lockfile versions 1 and 2 by suggesting which Node.js/npm version to use --- .nvmrc | 1 + README.md | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..3f5fc21 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v15.14.0 \ No newline at end of file diff --git a/README.md b/README.md index bb2ed8d..8aaec31 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,13 @@ Suggestions / Planned features: ## How to Contribute -Requirements: you must have node.js and git installed. +### Requirements + +You must have node.js and git installed. + +You also need `npm` in version 7 (because of 2nd version of lockfile which was introduced there) which comes with Node.js 15 or newer. To simplify installation of proper versions you can make use of [nvm](https://github.com/nvm-sh/nvm#installing-and-updating) and run `nvm install` – it will activate proper Node.js version in your current command prompt session. + +### Contribution Workflow 1. Click **Fork** above. It will automatically create a copy of this repository and add it to your account. 2. Clone the repository to your computer.