From f50f1a4b6d62136443ff87a2265467bf75ba6d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Bl=C3=A4ttermann?= Date: Fri, 2 Dec 2022 15:59:15 +0100 Subject: [PATCH] Lock current node version (#11885) --- website/.nvmrc | 1 + website/README.md | 13 +++++++++---- website/package.json | 3 +++ 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 website/.nvmrc diff --git a/website/.nvmrc b/website/.nvmrc new file mode 100644 index 000000000..f599e28b8 --- /dev/null +++ b/website/.nvmrc @@ -0,0 +1 @@ +10 diff --git a/website/README.md b/website/README.md index 890a48ef9..a8fa9c175 100644 --- a/website/README.md +++ b/website/README.md @@ -7,15 +7,17 @@ The styleguide for the spaCy website is available at ## Setup and installation -Before running the setup, make sure your versions of -[Node](https://nodejs.org/en/) and [npm](https://www.npmjs.com/) are up to date. -Node v10.15 or later is required. - ```bash # Clone the repository git clone https://github.com/explosion/spaCy cd spaCy/website +# Switch to the correct Node version +# +# If you don't have NVM and don't want to use it, you can manually switch to the Node version +# stated in /.nvmrc and skip this step +nvm use + # Install Gatsby's command-line tool npm install --global gatsby-cli @@ -96,6 +98,9 @@ bit of time. | | └── universe.js # layout templates for universe | └── widgets # non-reusable components with content, e.g. changelog ├── .eslintrc.json # ESLint config file +├── .nvmrc # NVM config file +| # (to support "nvm use" to switch to correct Node version) +| ├── .prettierrc # Prettier config file ├── gatsby-browser.js # browser-specific hooks for Gatsby ├── gatsby-config.js # Gatsby configuration diff --git a/website/package.json b/website/package.json index 95336a539..b474bab1c 100644 --- a/website/package.json +++ b/website/package.json @@ -79,5 +79,8 @@ }, "bugs": { "url": "https://github.com/explosion/spaCy/issues" + }, + "engines": { + "node": "10" } }