From a8d1a87131f32543faff24bd0cc0df29bbea7f42 Mon Sep 17 00:00:00 2001 From: 1 gal Rosemary <141131070+Tuscan-blue@users.noreply.github.com> Date: Thu, 28 Mar 2024 18:08:32 +0800 Subject: [PATCH 1/2] Docs update. Update the Node.js version requirements. [nodejs v21.x: the punycode module is deprecated](https://nodejs.org/docs/latest-v21.x/api/deprecations.html#DEP0040) --- docs/docs/tutorial/getting-started/part-0/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/tutorial/getting-started/part-0/index.mdx b/docs/docs/tutorial/getting-started/part-0/index.mdx index cd70326f97cf3..db3da76488406 100644 --- a/docs/docs/tutorial/getting-started/part-0/index.mdx +++ b/docs/docs/tutorial/getting-started/part-0/index.mdx @@ -54,14 +54,14 @@ In addition to the ones listed above, Gatsby uses a few more technologies under The rest of this part of the Tutorial walks you through how to install the following tools: -- [Node.js](#nodejs) (v18 or newer) +- [Node.js](#nodejs) (v18 or newer, but less than v21) - [Git](#git) - [Gatsby command line interface (CLI)](#gatsby-cli) (v5 or newer) - [Visual Studio Code](#visual-studio-code) ### Node.js -[Node.js](https://nodejs.dev/en/learn/) is an environment that can run JavaScript code outside of a web browser. Gatsby is built with Node.js. To get up and running with Gatsby, you’ll need to have Node.js version 18 (or newer) installed on your computer. +[Node.js](https://nodejs.dev/en/learn/) is an environment that can run JavaScript code outside of a web browser. Gatsby is built with Node.js. To get up and running with Gatsby, you’ll need to have Node.js version 18 (or newer, but less than v21) installed on your computer. [npm](https://docs.npmjs.com/getting-started/what-is-npm) is a package manager that comes bundled with Node.js. You'll use the npm command line interface to add packages to your site (like Gatsby plugins) and to run command line tasks (like starting up your site). From cb86bbc8109d8a85dfe76b41817bb69ad9263b49 Mon Sep 17 00:00:00 2001 From: 1 gal Rosemary <141131070+Tuscan-blue@users.noreply.github.com> Date: Thu, 28 Mar 2024 21:07:09 +0800 Subject: [PATCH 2/2] Docs update. Add a terminal command. --- docs/docs/how-to/local-development/starters.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docs/how-to/local-development/starters.md b/docs/docs/how-to/local-development/starters.md index 58301a01a67ab..68790f91de4ad 100644 --- a/docs/docs/how-to/local-development/starters.md +++ b/docs/docs/how-to/local-development/starters.md @@ -25,6 +25,7 @@ gatsby new {your-project-name} {link-to-starter} ```shell cd {your-project-name} +npm install gatsby develop ```