From 8e9e2eb92e348423a5d6cc761c0bdc9d20fc2b2c Mon Sep 17 00:00:00 2001 From: Olivier Lacan Date: Thu, 2 Apr 2020 01:10:09 -0400 Subject: [PATCH] Document required Node version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gatsby develop errors with any Node version earlier than 10.13, so I’ve added this requirement to the package.json and set an .npmrc file to require it when `npm install` is run. My next step would be to define an `.nvmrc` to enable auto-switching to 10.13 but that’s assuming: - people use nvm - we’re okay tracking the minimum node version in two places: `package.json` and `.nvmrc` Let me know and I’ll update this PR. --- .npmrc | 1 + package.json | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..b6f27f135 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/package.json b/package.json index 0c8e46b51..c988f8bf0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,9 @@ { "name": "covid-tracking-project", "version": "0.0.1", + "engines": { + "node": ">=10.13" + }, "description": "Collects information from 50 US states, the District of Columbia, and 5 other US territories to provide the most comprehensive testing data we can collect for the novel coronavirus, SARS-CoV-2.", "author": "The COVID Tracking Project", "homepage": "https://covidtracking.com",