본문 바로가기
개발 프레임워크/Next.js

[Next.js] 개발환경 구축 및 Next.js 13으로 업데이트

by minhyeok.lee 2023. 3. 4.
반응형

[Next.js] 개발환경 구축 명령어 및 Next.js 13으로 업데이트 명령어

 

Next.js 시작

$ npx create-next-app@latest

$ yarn create next-app

$ pnpm create next-app

위 3개 명령어 중 하나로 설치

 

TypeScript 프로젝트로 시작하려면 --typescript 플래그를 사용할 수 있다.

$ npx create-next-app@latest --typescript

$ yarn create next-app --typescript

$ pnpm create next-app --typescript

위 3개 명령어 중 하나로 설치

 

 react 및 react-dom 프로젝트에서 다음을 설치

$ npm install next react react-dom

$ yarn add next react react-dom

$ pnpm add next react react-dom

위 3개 명령어 중 하나로 설치

 

 

Next.js 13으로 업데이트

$ npm i next@latest react@latest react-dom@latest eslint-config-next@latest
반응형

댓글