mkdir next_demo2 && cd next_demo2
yarn create next-app .セットアップ中にいくつか質問されますが、基本は Enter連打で問題ありません。
yarn install
yarn dev※次回からはプロジェクトディレクトリに移動したあと上記コマンドを実行するだけです。
http://localhost:3000
上手く行ったときのディレクトリの構成
C:\Users\user\git\next_demo2 ├── .gitignore ├── .next │ ├── app-build-manifest.json │ ├── build-manifest.json │ ├── cache │ ├── fallback-build-manifest.json │ ├── package.json │ ├── server │ ├── static │ └── types ├── README.md ├── app │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── next-env.d.ts ├── next.config.ts ├── node_modules │ ├── .bin │ ├── .yarn-integrity │ ├── @alloc │ ├── @img │ ├── @next │ ├── @swc │ ├── @tailwindcss │ ├── @types │ ├── busboy │ ├── caniuse-lite │ ├── client-only │ ├── color │ ├── color-convert │ ├── color-name │ ├── color-string │ ├── csstype │ ├── detect-libc │ ├── enhanced-resolve │ ├── graceful-fs │ ├── is-arrayish │ ├── jiti │ ├── lightningcss │ ├── lightningcss-win32-x64-msvc │ ├── nanoid │ ├── next │ ├── picocolors │ ├── postcss │ ├── react │ ├── react-dom │ ├── scheduler │ ├── semver │ ├── sharp │ ├── simple-swizzle │ ├── source-map-js │ ├── streamsearch │ ├── styled-jsx │ ├── tailwindcss │ ├── tapable │ ├── tslib │ ├── typescript │ └── undici-types ├── package.json ├── postcss.config.mjs ├── public │ ├── file.svg │ ├── globe.svg │ ├── next.svg │ ├── vercel.svg │ └── window.svg ├── tsconfig.json └── yarn.lock