Skip to content

CLI Troubleshooting

Solutions for common CLI issues.

If the template download fails:

  1. Check your internet connection
  2. Verify GitHub is accessible
  3. Try again in a few minutes
Terminal window
# Test GitHub access
curl https://github.com/southwellmedia/velocity

For slow connections, the download may timeout. Try:

Terminal window
# Increase timeout
npm create velocity-astro@latest my-site --timeout=60000

The CLI prompts before overwriting existing directories:

? Directory "my-site" already exists. Overwrite? (y/N)

Options:

  • Press y to overwrite
  • Press n to cancel
  • Use a different directory name

On Unix systems, you may need execute permissions:

Terminal window
chmod +x node_modules/.bin/create-velocity-astro

If automatic installation fails:

Terminal window
cd my-site
npm install # or pnpm install / yarn / bun install

Velocity requires Node.js 18.0.0 or higher:

Terminal window
# Check your version
node --version
# Update with nvm
nvm install 18
nvm use 18

The CLI auto-detects your package manager. If detection fails:

Terminal window
# Specify explicitly
cd my-site
pnpm install # or npm/yarn/bun

If components are missing after scaffold:

  1. Check your --components flag
  2. Verify the category names are correct
  3. Re-run the CLI with correct options
Terminal window
# Include all components
npm create velocity-astro@latest my-site --components=all

If components have import errors:

Terminal window
# Regenerate types
cd my-site
npm run astro sync

If locale routes aren’t working:

  1. Verify --i18n was included
  2. Check src/config/i18n.ts exists
  3. Ensure pages are in [locale]/ directories

Add missing translations in src/config/i18n.ts:

export const translations = {
en: { /* ... */ },
es: { /* ... */ },
// Add your new locale
de: { /* ... */ },
};

If git initialization fails:

Terminal window
cd my-site
git init
git add .
git commit -m "Initial commit"

Install git from git-scm.com.

If you’re still stuck:

  1. Check the GitHub Issues
  2. Search for your error message
  3. Open a new issue with:
    • Node.js version
    • Package manager used
    • Full error message
    • Steps to reproduce