Skip to content
New: Customize your theme with an AI assistant. Read the guide

Installation Guide

The Node.js version Taxo needs depends on your edition. It comes from each edition’s package.json:

EditionNode.js version
Astro22.19.0 or later
Tina22 (22.23.4 or later) or 24. Tina’s command line tool supports only those two versions
Sanity22.23.4 or later

Install Node.js

  1. Download Node.js from nodejs.org.
  2. Install it with the default setup.
  3. Verify the version:
Terminal window
node -v

You should see the version from the table above, or newer.

Install Dependencies

Inside the theme folder, run:

Terminal window
npm ci

This installs the exact versions from package-lock.json.

Start Development

Terminal window
npm run dev

The site runs at http://localhost:4321. What npm run dev does:

  • Astro: generates the settings file from src/config/config.toml, watches config.toml for changes, and starts the site. To use another port, run npm run dev -- --port 4322.
  • Tina: does the same, and also starts the editor at http://localhost:4321/admin/. To use another port, set PORT in .env. TINA_GRAPHQL_PORT and TINA_DATALAYER_PORT move Tina’s own two ports (4001 and 9000).
  • Sanity: does the same as Astro, and runs straight away with the bundled sample content, with no account. To edit, run npm run setup once, then npm run dev:all, which starts the site and the Studio at http://localhost:3333. SITE_PORT and STUDIO_PORT in .env move their ports.

See Tina and Sanity for the editing guides.

Run Quality Checks

Terminal window
npm run astro-check

Run this after you change code or content schemas. In the Tina edition, also run npm run tina:audit after you change content files by hand. In the Sanity edition, npm run sanity:validate checks the Studio’s schema.

Create A Production Build

Terminal window
npm run build

That sequence:

  1. regenerates the settings file from config.toml
  2. builds the Astro site into dist/
  3. removes draft pages from the sitemap

In the Sanity edition, the build reads your published content. With no project connected, it uses the bundled sample content. To see the build locally, run npm run preview.

Useful Extra Scripts

Terminal window
npm run generate-favicons
npm run generate-multilingual-content
npm run remove-multilingual
npm run test
  • generate-favicons rebuilds favicon assets from your source logo.
  • generate-multilingual-content adds a language. It needs flags: see Internationalization.
  • remove-multilingual keeps only your default language.
  • test runs the Jest test suite.
Type something to search...