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).įollow the installation instructions below, based on your computer’s operating system. Npm is a package manager that comes bundled 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 is an environment that can run JavaScript code outside of a web browser. Gatsby command line interface (CLI) (v5 or newer).The rest of this part of the Tutorial walks you through how to install the following tools: Learn more about GraphQL with the How to GraphQL tutorial.It’s the interface that Gatsby uses for managing site data. GraphQL: A query language that allows you to pull data into your website.Learn more about React with the React course on freeCodeCamp.It’s the framework that Gatsby uses to build pages and structure content. React: A code library (built with JavaScript) for building user interfaces.But if you’re interested in getting a head start, here’s a bit more information: The Tutorial will teach you everything you need to know about the following tools. In addition to the ones listed above, Gatsby uses a few more technologies under the hood. The instructions for how to use the command line differ slightly based on what operating system your computer uses:.Commands will be shown in a highlighted box, something like node -version, but not every highlighted box is a command! If something is a command it will be mentioned as something you have to run/execute. If you’re new to the command line, “running” a command, means “writing a given set of instructions in your command prompt, and hitting the Enter key”.In this tutorial, we’ll use both interchangeably. You’ll also often see it referred to as the terminal. ![]() The command line: The command line is a text-based interface used to run commands on your computer.Learn more about JavaScript with the Basic JavaScript course on freeCodeCamp. ![]()
0 Comments
Leave a Reply. |