Getting started with Next.js has never been easier. Whether you’re new to the framework or setting up a fresh project, this guide walks you through everything—from installation to configuring TypeScript, linting, and project structure.
Let’s dive in!
Before running Next.js, make sure your system meets the minimum requirements:
Next.js supports modern browsers with zero configuration:
The fastest way to spin up a new Next.js project is by using create-next-app, a command-line tool that automatically sets up your development environment.
Example using pnpm:
npx create-next-app@latest my-app --yescd my-appnpm run dev
💡 The
--yesflag skips all prompts and uses recommended defaults (TypeScript, Tailwind, ESLint, App Router, Turbopack, and alias@/*).
Run:
npx create-next-app@latest
You’ll see interactive prompts like:
What is your project named? my-appWould you like to use the recommended Next.js defaults?
Choosing “Customize” lets you select:
After completing the setup, create-next-app generates your project folder and installs all dependencies automatically.
Start your project:
npm run dev
Then visit:
http://localhost:3000
Edit app/page.tsx—your browser auto-refreshes with updates.