yarn create next-app code example
Example 1: create next js app yarn
yarn create next-app
Example 2: create next js app
npm init next-app nextjs-blog --example "https://github.com/vercel/next-learn-starter/tree/master/learn-starter"
yarn create next-app
npm init next-app nextjs-blog --example "https://github.com/vercel/next-learn-starter/tree/master/learn-starter"