generally, follow the setup here: Welcome to Quartz 4
Setup on Windows:
determining nvm version:
nvm list
node -vif nvm version mismatch:
nvm install 22
nvm use 22
npm cache clean --force
npm install
# then follow the restSetup on ubuntu:
(for a fresh install on system):
nano setup_quartz.sh
chmod +x setup_quartz.sh
./setup_quartz.sh(edit and save content, then run it):
#!/bin/bash
set -e # Exit on errors
echo "Updating system..."
sudo apt update && sudo apt upgrade -y
echo "Installing curl & Node.js 20..."
sudo apt install -y curl
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
echo "Verifying installation..."
node -v && npm -v
echo "Cloning Quartz repository..."
git clone https://github.com/jackyzha0/quartz && cd quartz
echo "Installing dependencies..."
npm install
echo "Initializing Quartz site..."
npx quartz create
# ==== MANUAL STEPS ====
# Setup GitHub: https://quartz.jzhao.xyz/setting-up-your-GitHub-repository
# git remote set-url origin https://github.com/arot-devs/lapis.git
# git remote add upstream https://github.com/jackyzha0/quartz.git
# npx quartz sync --no-pull
# npx quartz build
# ======================Starting Server
After dependencies are met, run local dev server with:
npx quartz build --serve