npm i next@latest react@latest react-dom@latest eslint-config-next@latest
npx create-next-app@latest
yarn create next-app
pnpm create next-app
If you want to start with a TypeScript
project you can use the --typescript flag:
npx create-next-app@latest --typescript
yarn create next-app --typescript
pnpm create next-app --typescript