src/content/docs/en/tutorial/1-setup/1.mdx
import Checklist from '/components/Checklist.astro';
import Box from '/components/tutorial/Box.astro';
import MultipleChoice from '/components/tutorial/MultipleChoice.astro';
import Option from '/components/tutorial/Option.astro';
import PreCheck from '/components/tutorial/PreCheck.astro';
import { Steps } from '@astrojs/starlight/components';
import Badge from "/components/Badge.astro"
You will use a command line (terminal) to create your Astro project and to run key commands to build, develop, and test your site.
You can access the command line through a local terminal program for your operating system. Common applications include Terminal (MacOS/Linux), Command Prompt (Windows), and Termux (Android). One of these will probably already be on your machine.
For Astro to run on your system, you will also need to have a compatible version of Node.js installed. Astro supports even-numbered Node.js versions. The current minimum supported version is v22.12.0. Odd-numbered versions like v23 are not supported.
To check to see whether you already have a compatible version installed, run the following command in your terminal:
node -v
// Example output
v22.20.0
If the command returns a version number supported by Astro, you're good to go!
If the command returns an error message like Command 'node' not found, or a version number lower than the required, then you need to install a compatible Node.js version.
Additionally, you will need to download and install a code editor to write your code.
:::tip[We'll use...] This tutorial will use VS Code, but you can use any editor for your operating system. :::
<Steps> 1. [Download and install VS Code](https://code.visualstudio.com/#alt-downloads) or another code editor of your choice. </Steps> <Box icon="question-mark">Which of the following is...
A code editor, for making changes to your files and their content?
<MultipleChoice> <Option> web browser </Option> <Option> Terminal </Option> <Option isCorrect> VS Code </Option> </MultipleChoice>An online version control provider for your repository?
<MultipleChoice> <Option isCorrect> GitHub </Option> <Option> Terminal </Option> <Option> VS Code </Option> </MultipleChoice>An application for running commands? <MultipleChoice>
<Option> GitHub </Option> <Option isCorrect> Terminal </Option> <Option> web browser </Option> </MultipleChoice>