nextjs-org-docs-app-getting-started-installation-pages-1
nextjs-org-docs-app-getting-started-installation-pages-1
Feedback Learn
Using App Router App Router Getting Started Installation On this page
Features available in /app
System requirements
Updating Data
Automatic installation Module Path Aliases
Error Handling We recommend starting a new Next.js app using create-next-app , which sets up
Edit this page on GitHub
everything automatically for you. To create a project, run:
Examples Managed Next.js (Vercel)
Routing
npx create-next-app@latest
Data Fetching
Rendering
On installation, you'll see the following prompts:
Caching
Styling
Terminal
Optimizing
Directives After the prompts, create-next-app will create a folder with your project name and
Components install the required dependencies.
File Conventions
Functions
Configuration
CLI
Manual installation
Edge Runtime To manually create a new Next.js app, install the required packages:
Turbopack
Terminal
Architecture
Fast Refresh
Next.js Compiler Open your package.json file and add the following scripts :
Supported Browsers
package.json
Community
Contribution Guide 1 {
2 "scripts": {
3 "dev": "next dev",
4 "build": "next build",
5 "start": "next start",
6 "lint": "next lint"
7 }
8 }