Next.jsのインストール

ウィザード形式でインストール
$ npx create-next-app

移動
$ cd my-app

起動
$ npm run dev

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