To create a new Next.js app, follow this steps:
- Run
npm install next react react-dom
(will createnode_modules
directory,package.json
andpackage-lock.json
files) - Create
pages
directory under the project root - Run
npm run build
(will create.next
directory) - Create an empty
tsconfig.json
file in the root directory - Run
npm run dev
to finish the setup