Setup & Installation
Every Next.js project starts from the same place: the official create-next-app command-line tool. It scaffolds a complete, working project — configuration files, a starter page, and all the dependencies you need — in a single command, so you never have to assemble a build setup by hand.
Requirements
You need Node.js 18.18 or later installed (Next.js 15 raises this to Node.js 18.18+ / 20+; always check the version noted in the docs for the release you are installing). You can confirm your version with:
node -v
Creating a new project
npx create-next-app@latest
Running this command downloads and runs the latest version of the scaffolding tool without installing it globally. It then walks you through an interactive setup.
The setup prompts
Prompt | What it controls |
|---|---|
Project name | The folder name that will be created and used as the |
TypeScript? | Whether the project is scaffolded with |
ESLint? | Whether ESLint (with the |
Tailwind CSS? | Whether Tailwind is installed and pre-configured for styling. |
| Whether application code lives under |
App Router? | Whether the project uses the modern |
Import alias | Whether to configure a |
Running the app
Once scaffolding finishes, move into the project folder and start the development server.
cd my-app npm run dev
▲ Next.js 15.0.0 - Local: http://localhost:3000 - Environments: .env ✓ Ready in 1204ms
Open http://localhost:3000 in a browser and you will see the default starter page. Any edit you make to app/page.tsx shows up immediately, without a manual refresh, thanks to Fast Refresh.
What gets installed
next,react, andreact-domas the core runtime dependencies.typescript,@types/react, and@types/nodeif you chose TypeScript.eslintandeslint-config-nextif you chose ESLint.tailwindcssand its PostCSS setup if you chose Tailwind CSS.