Skip to content

Commit

Permalink
Document required Node version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
olivierlacan committed Apr 2, 2020
1 parent d986bfb commit 8e9e2eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 8e9e2eb

Please sign in to comment.