Installation
This guide covers everything you need to install and run create-nextjs-dapp on your system.Prerequisites
Before you begin, ensure you have the following installed:Node.js
create-nextjs-dapp requires Node.js 18 or higher.Recommended: Use Node.js 20.x or 22.x for the best performance and latest features.
Installing Node.js
If you don’t have Node.js installed or need to upgrade:- Official Installer
- nvm (Recommended)
- Package Manager
Download and install from nodejs.org:
- LTS version (Recommended): Stable, production-ready
- Current version: Latest features
Package Manager
You’ll need at least one package manager. create-nextjs-dapp works with:- npm (comes with Node.js) - Default
- yarn - Fast, reliable package manager
- pnpm - Efficient disk space usage
- bun - Fast all-in-one JavaScript runtime
Installation Methods
create-nextjs-dapp is designed to be run directly withnpx without global installation. Choose your preferred package manager:
Global Installation (Optional)
While not recommended, you can install globally if preferred:Verification
Verify that create-nextjs-dapp is working correctly:View Help
Display the help message to see all available options:You should see the full CLI documentation with all available flags and wallet providers.
Troubleshooting
Error: Node version not supported
Error: Node version not supported
Problem: You’re running Node.js version 17 or lower.Solution: Upgrade to Node.js 18 or higher:Verify your version:
Error: npx command not found
Error: npx command not found
Problem: npm is not installed or not in your PATH.Solution:
- Reinstall Node.js from nodejs.org (includes npm)
- Or install npm separately:
Error: Permission denied (EACCES)
Error: Permission denied (EACCES)
Problem: npm doesn’t have permission to install packages globally.Solution 1 (Recommended): Use Solution 2: Fix npm permissions:Solution 3: Use a Node version manager like nvm (recommended).
npx instead of global installation:Error: Package name validation failed
Error: Package name validation failed
Problem: Your project name contains invalid characters.Solution: Use a valid npm package name:❌ Invalid names:
- Lowercase letters only
- No spaces (use hyphens instead)
- Start with a letter
- Only letters, numbers, hyphens, and underscores
Error: Network timeout or slow installation
Error: Network timeout or slow installation
Problem: npm registry is slow or blocked in your region.Solution 1: Use a faster registry mirror:Solution 2: Configure npm to use a mirror:Solution 3: Try a different package manager:
Error: Git not initialized
Error: Git not initialized
Problem: The Solution 2: Skip git initialization:You can initialize git manually later:
--git flag was used but git is not installed.Solution 1: Install git:Warning: Package manager not found
Warning: Package manager not found
Problem: You specified a package manager (e.g., Or use the default (npm):
--use-yarn) but it’s not installed.Solution: Install the package manager or use a different one:CLI is outdated
CLI is outdated
Problem: You’re using an old version of create-nextjs-dapp.Solution:
When you run the CLI, it will automatically notify you if a new version is available:If using If installed globally, update it:
npx (recommended), simply run the command again:System Requirements
Operating System
- macOS 10.15+
- Windows 10/11
- Linux (Ubuntu 20.04+, Debian 10+, or equivalent)
Runtime
- Node.js 18.0.0 or higher
- npm 9.0.0+ (or equivalent yarn/pnpm/bun)
Disk Space
- Minimum: 500 MB free space
- Recommended: 2 GB free space
Memory
- Minimum: 2 GB RAM
- Recommended: 4 GB RAM or more
Additional Requirements
Depending on your chosen wallet provider, you may need:API Keys
Most wallet providers require API keys or project IDs:- RainbowKit / ConnectKit: WalletConnect Project ID
- Privy: Privy App ID
- Dynamic: Dynamic Environment ID
- Reown: Reown Project ID
- Thirdweb: Thirdweb Client ID
- GetPara: Capsule API Key
You’ll need to sign up for these services and obtain API keys before your dApp can connect to wallets. The generated
.env.example file will remind you which keys are needed.Git (Optional)
If you want to initialize a git repository with--git:
Next Steps
Now that you have create-nextjs-dapp installed, you’re ready to:Create Your First dApp
Follow the quickstart guide to build your first project
Explore CLI Options
Learn about all available CLI flags and options