mirror of
https://github.com/jackyzha0/quartz
synced 2026-11-27 22:14:40 +01:00
2.4 KiB
2.4 KiB
title
| title |
|---|
| Getting Started |
This guide walks you through setting up Quartz from scratch. If you already ran the index#🪴 Get Started on the home page, you can skip ahead to whichever step you're on.
Prerequisites
You need these tools installed before continuing:
- Node.js v22 or later (run
node -vto check) - npm v10.9.2 or later (bundled with Node — run
npm -vto check) - Git (run
git -vto check)
[!warning] Common issues
- Linux: System packages (
apt install nodejs) often ship much older versions. Use nvm or the NodeSource repository to get Node.js v22.22 or later.- Windows: When installing Git, make sure "Git from the command line and also from 3rd-party software" is selected so that
gitis available in your terminal. Ifnode -vorgit -vshows "command not found", restart your terminal or check your PATH.- macOS: The Xcode command-line tools include Git (
xcode-select --install). For Node.js, nvm or the official installer both work.
[!tip] Using Bun Quartz runs on Node.js, but you can install its dependencies with Bun (
bun install). Bun does not link a package's own commands the way npm does, sobunx quartzfails with "could not determine executable to run". Usebun run quartzinstead, followed by the command, wherever these docs saynpx quartz:bun run quartz create,bun run quartz build --serve.
Setup Steps
Follow these in order:
- installation — Get Quartz (via GitHub template or clone), install dependencies, run the setup wizard (
npx quartz create, which also installs plugins), and preview your site locally - authoring-content — Write and organize your Markdown notes in the
content/folder - installation#Setting Up Your GitHub Repository — Create a repository and push your site with
npx quartz sync - hosting — Host your site for free on GitHub Pages, Cloudflare, Netlify, or Vercel