Installation Guide
The Node.js version Taxo needs depends on your edition. It comes from each edition’s package.json:
| Edition | Node.js version |
|---|---|
| Astro | 22.19.0 or later |
| Tina | 22 (22.23.4 or later) or 24. Tina’s command line tool supports only those two versions |
| Sanity | 22.23.4 or later |
Install Node.js
- Download Node.js from nodejs.org.
- Install it with the default setup.
- Verify the version:
node -vYou should see the version from the table above, or newer.
- Install Homebrew if you do not already have it.
- Install Node.js:
brew install node- Verify the version:
node -vInstall Node.js using your preferred package manager or the official Node installer, then verify it:
node -vInstall Dependencies
Inside the theme folder, run:
npm ciThis installs the exact versions from package-lock.json.
Start Development
npm run devThe site runs at http://localhost:4321. What npm run dev does:
- Astro: generates the settings file from
src/config/config.toml, watchesconfig.tomlfor changes, and starts the site. To use another port, runnpm run dev -- --port 4322. - Tina: does the same, and also starts the editor at
http://localhost:4321/admin/. To use another port, setPORTin.env.TINA_GRAPHQL_PORTandTINA_DATALAYER_PORTmove 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 setuponce, thennpm run dev:all, which starts the site and the Studio athttp://localhost:3333.SITE_PORTandSTUDIO_PORTin.envmove their ports.
See Tina and Sanity for the editing guides.
Run Quality Checks
npm run astro-checkRun 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
npm run buildThat sequence:
- regenerates the settings file from
config.toml - builds the Astro site into
dist/ - 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
npm run generate-faviconsnpm run generate-multilingual-contentnpm run remove-multilingualnpm run testgenerate-faviconsrebuilds favicon assets from your source logo.generate-multilingual-contentadds a language. It needs flags: see Internationalization.remove-multilingualkeeps only your default language.testruns the Jest test suite.