Install Next.js

Install Next.js with Create Next App

Create a new project

1npx create-next-app@latest my-app

On installation, you'll see the following prompts

1What is your project named? my-app
2Would you like to use TypeScript? Yes
3Would you like to use ESLint? Yes
4Would you like to use Tailwind CSS? Yes
5Would you like your code inside a src/ directory? Yes
6Would you like to use App Router? Yes
7Would you like to customize the import alias? Yes (@/*)

Start the app

1cd my-app
2npm run dev