CLI Troubleshooting
Solutions for common CLI issues.
Network Errors
Section titled “Network Errors”Template Download Fails
Section titled “Template Download Fails”If the template download fails:
- Check your internet connection
- Verify GitHub is accessible
- Try again in a few minutes
# Test GitHub accesscurl https://github.com/southwellmedia/velocityTimeout Errors
Section titled “Timeout Errors”For slow connections, the download may timeout. Try:
# Increase timeoutnpm create velocity-astro@latest my-site --timeout=60000Directory Issues
Section titled “Directory Issues”Directory Already Exists
Section titled “Directory Already Exists”The CLI prompts before overwriting existing directories:
? Directory "my-site" already exists. Overwrite? (y/N)Options:
- Press
yto overwrite - Press
nto cancel - Use a different directory name
Permission Errors
Section titled “Permission Errors”On Unix systems, you may need execute permissions:
chmod +x node_modules/.bin/create-velocity-astroDependency Installation
Section titled “Dependency Installation”Installation Fails
Section titled “Installation Fails”If automatic installation fails:
cd my-sitenpm install # or pnpm install / yarn / bun installNode Version Errors
Section titled “Node Version Errors”Velocity requires Node.js 18.0.0 or higher:
# Check your versionnode --version
# Update with nvmnvm install 18nvm use 18Package Manager Not Found
Section titled “Package Manager Not Found”The CLI auto-detects your package manager. If detection fails:
# Specify explicitlycd my-sitepnpm install # or npm/yarn/bunComponent Issues
Section titled “Component Issues”Missing Components
Section titled “Missing Components”If components are missing after scaffold:
- Check your
--componentsflag - Verify the category names are correct
- Re-run the CLI with correct options
# Include all componentsnpm create velocity-astro@latest my-site --components=allComponent Errors
Section titled “Component Errors”If components have import errors:
# Regenerate typescd my-sitenpm run astro synci18n Issues
Section titled “i18n Issues”Routes Not Working
Section titled “Routes Not Working”If locale routes aren’t working:
- Verify
--i18nwas included - Check
src/config/i18n.tsexists - Ensure pages are in
[locale]/directories
Missing Translations
Section titled “Missing Translations”Add missing translations in src/config/i18n.ts:
export const translations = { en: { /* ... */ }, es: { /* ... */ }, // Add your new locale de: { /* ... */ },};Git Issues
Section titled “Git Issues”Git Not Initialized
Section titled “Git Not Initialized”If git initialization fails:
cd my-sitegit initgit add .git commit -m "Initial commit"Git Not Installed
Section titled “Git Not Installed”Install git from git-scm.com.
Getting Help
Section titled “Getting Help”If you’re still stuck:
- Check the GitHub Issues
- Search for your error message
- Open a new issue with:
- Node.js version
- Package manager used
- Full error message
- Steps to reproduce