Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/amanvarshney01/create-better-t-stack/llms.txt

Use this file to discover all available pages before exploring further.

Prerequisites

Before using Better-T-Stack, ensure you have the following installed:
Better-T-Stack requires Node.js v20 or higher.Installation:Verify installation:
node --version
# Should output v20.0.0 or higher
Node.js 20+ is required because Better-T-Stack uses modern JavaScript features and ESM modules.
Bun is a fast all-in-one JavaScript runtime and package manager. It’s optional but recommended for the best performance.Installation:
# macOS/Linux
curl -fsSL https://bun.sh/install | bash

# Windows
powershell -c "irm bun.sh/install.ps1 | iex"
Or visit bun.sh for more installation methods.Verify installation:
bun --version
# Should output 1.x.x
Bun is significantly faster than npm for package installation and can also be used as the runtime for your backend.

Installation

Better-T-Stack doesn’t require global installation. You run it directly using your package manager:
npx create-better-t-stack@latest
The CLI will always use the latest version when you run @latest. No need to install or update globally.

Version Check

To check which version of Better-T-Stack you’re using:
npx create-better-t-stack@latest --version
Current version: 3.22.0

Verification

Verify your installation by running the help command:
1

Run the help command

npx create-better-t-stack@latest --help
You should see the CLI usage information with all available options.
2

Check the version

npx create-better-t-stack@latest --version
Verify you’re running the latest version (3.22.0 or higher).
3

Test with a dry run

Create a test project to verify everything works:
npx create-better-t-stack@latest test-project --yes
This will create a project with default settings. You can delete the test-project folder afterwards.

Troubleshooting

Problem: Better-T-Stack requires Node.js v20 or higher.Solution:
  1. Update Node.js to the latest LTS version:
    # Using nvm
    nvm install --lts
    nvm use --lts
    
    # Using fnm
    fnm install --lts
    fnm use lts-latest
    
  2. Or download from nodejs.org
  3. Verify the version:
    node --version
    
Problem: npx or pnpm command is not recognized.Solution:
  • For npx: Update npm to the latest version:
    npm install -g npm@latest
    
  • For pnpm: Install pnpm globally:
    npm install -g pnpm
    
  • For bun: Follow the installation instructions at bun.sh
Problem: Package download fails due to network issues.Solution:
  1. Check your internet connection
  2. If behind a proxy, configure npm/pnpm/bun:
    # npm
    npm config set proxy http://proxy.example.com:8080
    npm config set https-proxy http://proxy.example.com:8080
    
    # pnpm
    pnpm config set proxy http://proxy.example.com:8080
    pnpm config set https-proxy http://proxy.example.com:8080
    
  3. Try using a different registry:
    # npm
    npm config set registry https://registry.npmjs.org/
    
Problem: Insufficient permissions to create files or install packages.Solution:
  1. On Linux/macOS, avoid using sudo with npm. Instead, configure npm to use a different directory:
    mkdir ~/.npm-global
    npm config set prefix '~/.npm-global'
    echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
    source ~/.bashrc
    
  2. On Windows, run your terminal as Administrator (not recommended) or install Node.js in a user directory.
Problem: Package installation is taking too long.Solution:
  1. Use Bun for significantly faster installation:
    bun create better-t-stack@latest my-app
    
  2. Or use pnpm, which is faster than npm:
    pnpm create better-t-stack@latest my-app
    
  3. If using npm, clear the cache:
    npm cache clean --force
    
Problem: TypeScript shows errors after project creation.Solution:
  1. Make sure dependencies are installed:
    cd my-app
    npm install  # or pnpm install, or bun install
    
  2. Restart your IDE/editor to reload TypeScript
  3. Check that you’re using a compatible TypeScript version (5.x+):
    npx tsc --version
    

Environment-Specific Notes

Additional tools:
  • Install Xcode Command Line Tools (required for native dependencies):
    xcode-select --install
    
  • Use Homebrew for easy package management:
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    brew install node git
    

Next Steps

Now that Better-T-Stack is installed, you’re ready to create your first project!

Quickstart Guide

Create your first Better-T-Stack project in under 2 minutes

Build docs developers (and LLMs) love