アプリのテンプレートを作成
tanakahda@MacBook-Air Sample% npx create-next-app@latest Need to install the following packages: create-next-app@13.4.4 Ok to proceed? (y) y ✔ What is your project named? … hello-nextjs ✔ Would you like to use TypeScript with this project? … No / Yes ✔ Would you like to use ESLint with this project? … No / Yes ✔ Would you like to use Tailwind CSS with this project? … No / Yes ✔ Would you like to use `src/` directory with this project? … No / Yes ✔ Use App Router (recommended)? … No / Yes ✔ Would you like to customize the default import alias? … No / Yes Creating a new Next.js app in /Users/tanakahda/Desktop/next-knowleadge/hello-nextjs. Using npm. Initializing project with template: app-tw ・・・ 略 ・・・ found 0 vulnerabilities Initialized a git repository. Success! Created hello-nextjs at /Users/tanakahda/Desktop/Sample/hello-nextjs
起動
(base) tanakahda@MacBook-Air hello-nextjs % npm run dev > hello-nextjs@0.1.0 dev > next dev - ready started server on 0.0.0.0:3000, url: http://localhost:3000 ・・・ 略 ・・・ - wait compiling /favicon.ico/route (client and server)... - event compiled client and server successfully in 203 ms (612 modules)