Installation

This guide covers different ways to install and set up eziwiki.
Method 1: npx create-eziwiki (recommended)
npx create-eziwiki my-docs
cd my-docs
npm install
npm run devThis scaffolds a self-contained project with the engine, a config file, and two starter pages. Nothing is linked back to the eziwiki repository β the result is yours to edit freely.
The project name must be a valid npm package name: lowercase, no spaces. The command refuses to write into a directory that already has files in it.
Method 2: Clone the repository
Use this if you want the full demo content, or intend to modify the engine itself:
git clone https://github.com/i3months/eziwiki.git
cd eziwiki
npm install
npm run devYou will want to empty content/ and rewrite payload/config.ts before
publishing, since both are this documentation site.
Method 3: Use as a GitHub template
- Open the eziwiki repository
- Click Use this template
- Clone your new repository, then install and run:
git clone https://github.com/yourusername/your-wiki.git
cd your-wiki
npm install
npm run devSystem Requirements
- Node.js: 18.0 or higher
- npm: 9.0 or higher (or yarn 1.22+)
- OS: macOS, Windows, or Linux
- RAM: 2GB minimum
- Disk Space: 500MB for dependencies
Verify Installation
After installation, verify everything works:
# Check Node.js version
node --version # Should be 18.0 or higher
# Check npm version
npm --version # Should be 9.0 or higher
# Run tests
npm run test
# Validate configuration
npm run validate:payloadProject Structure
After installation, you'll have this structure:
eziwiki/
βββ app/ # Next.js App Router
βββ components/ # React components
βββ content/ # Your Markdown files
βββ lib/ # Utilities and logic
βββ payload/ # Configuration
β βββ config.ts # Main config file
βββ public/ # Static assets
βββ styles/ # Global styles
βββ package.json # Dependencies
Troubleshooting
Node.js Version Error
If you see a Node.js version error:
# Install nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Install Node.js 18
nvm install 18
nvm use 18Port Already in Use
If port 3000 is already in use:
# Use a different port
PORT=3001 npm run devModule Not Found
If you see module errors:
# Clear cache and reinstall
rm -rf node_modules package-lock.json
npm install