1-1. Next.js 프로젝트 초기화
npx create-next-app@latest
1-2. Next.js 프로젝트 초기화(+타입스크립트)
npx create-next-app@latest --typescript
VSC에서 터미널 명령어 npm run dev
입력 후,
http://localhost:3000/ (로컬호스트)로 접속
첫번째 오류 👀
오류내용
throw er; // Unhandled 'error' event
해결방법
npx create-next-app 프로젝트이름 --use-npm
npx create-next-app 프로젝트이름 --use-npm --typescript
https://github.com/vercel/next.js/issues/35623
두번째 오류 👀
오류내용
npm run dev 오류
error - Failed to load next.config.js, see more info here
해결방법
최신버전 node 설치
https://nodejs.org/ko/