Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

install Next.js

# Automatic Setup
# We recommend creating a new Next.js app using create-next-app, which sets up everything automatically for you. To create a project, run:
$ npx create-next-app@latest
# or
$ yarn create next-app
# or
$ npm create next-app
# If you want to start with a TypeScript project you can use the --typescript flag:
$ npx create-next-app@latest --typescript
# or
$ yarn create next-app --typescript
# or
$ npm create next-app --typescript

#After the installation is complete:

#Run npm run dev or yarn dev or pnpm dev to start the development server on http://localhost:3000
#Visit http://localhost:3000 to view your application
Source by nextjs.org #
 
PREVIOUS NEXT
Tagged: #install
ADD COMMENT
Topic
Name
8+1 =