nextjs アプリを作成

npm コマンドをインストール

nコマンド導入

参考
https://nextjs.org/

$ npx create-next-app@latest
Need to install the following packages:
create-next-app@14.1.0
Ok to proceed? (y) y
✔ What is your project named? … my-app
✔ Would you like to use TypeScript? … No / Yes
✔ Would you like to use ESLint? … No / Yes
✔ Would you like to use Tailwind CSS? … No / Yes
✔ Would you like to use `src/` directory? … No / Yes
✔ Would you like to use App Router? (recommended) … No / Yes
✔ Would you like to customize the default import alias (@/*)? … No / Yes
Creating a new Next.js app in /home/ubuntu/my-app.

$ cd my-app
$ npm run dev

> my-app@0.1.0 dev
> next dev

▲ Next.js 14.1.0
- Local: http://localhost:3000

✓ Ready in 2.4s

ブラウザでアクセス
http://localhost:3000/


投稿日

カテゴリー:

投稿者:

タグ: