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:Node.js (Required)
Node.js (Required)
Better-T-Stack requires Node.js v20 or higher.Installation:
- Download from nodejs.org
- Or use a version manager like nvm or fnm
Node.js 20+ is required because Better-T-Stack uses modern JavaScript features and ESM modules.
Git (Recommended)
Git (Recommended)
Git is recommended for version control and automatic repository initialization.Installation:
- Download from git-scm.com
- Or use your system package manager:
Bun (Optional)
Bun (Optional)
Bun is a fast all-in-one JavaScript runtime and package manager. It’s optional but recommended for the best performance.Installation:Or visit bun.sh for more installation methods.Verify installation:
Installation
Better-T-Stack doesn’t require global installation. You run it directly using your package manager: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:Verification
Verify your installation by running the help command:Troubleshooting
Error: Node.js version is too old
Error: Node.js version is too old
Problem: Better-T-Stack requires Node.js v20 or higher.Solution:
-
Update Node.js to the latest LTS version:
- Or download from nodejs.org
-
Verify the version:
Error: Command not found
Error: Command not found
Problem:
npx or pnpm command is not recognized.Solution:-
For
npx: Update npm to the latest version: -
For
pnpm: Install pnpm globally: -
For
bun: Follow the installation instructions at bun.sh
Error: Network timeout or connection issues
Error: Network timeout or connection issues
Problem: Package download fails due to network issues.Solution:
- Check your internet connection
-
If behind a proxy, configure npm/pnpm/bun:
-
Try using a different registry:
Error: Permission denied
Error: Permission denied
Problem: Insufficient permissions to create files or install packages.Solution:
-
On Linux/macOS, avoid using
sudowith npm. Instead, configure npm to use a different directory: - On Windows, run your terminal as Administrator (not recommended) or install Node.js in a user directory.
Slow package installation
Slow package installation
Problem: Package installation is taking too long.Solution:
-
Use Bun for significantly faster installation:
-
Or use pnpm, which is faster than npm:
-
If using npm, clear the cache:
TypeScript errors in generated project
TypeScript errors in generated project
Problem: TypeScript shows errors after project creation.Solution:
-
Make sure dependencies are installed:
- Restart your IDE/editor to reload TypeScript
-
Check that you’re using a compatible TypeScript version (5.x+):
Environment-Specific Notes
- macOS
- Linux
- Windows
Additional tools:
-
Install Xcode Command Line Tools (required for native dependencies):
-
Use Homebrew for easy package management:
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