1. Node.js 설치
Node.js — Run JavaScript Everywhere
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
nodejs.org
-> 다운로드 노드JS
-> msi 파일을 눌러 설치를 해줍니다.
다 next를 누르고 설치하면 finish가 나옵니다.
node-v 명령어로 설치된 버젼을 확인할 수 있습니다!
혹시 nodejs 버젼충돌 문제가 난다면 ?
(TypeError: Class extends value undefined is not a constructor or null)
-> 참고
[Error/Nodejs] NPM (Node.js Package Manager) feat. npm Error: Class extends value undefined is not a constructor or null (정의
Nodejs 버전충돌 (기존프로젝트에서 사용하던 버전 vs 새로 설치한 버전)무분별한 버전 업그레이드로 인한 에러타입스크립트를 공부하던 중 Nodejs버전을 최신버전으로 유지하고 싶어 개발환경에
velog.io
https://what-am-i.tistory.com/483
errno -4058 ENOENT: no such file or directory, lstat his is related to npm not being able to find a file.
이 문제는 npx create-next-app 을 실행하려다 발생하였다. 아마 node.js 버젼문제 인것같은데 삭제했다가 다시 깔아도 문제가 해결되지않았다. 그러다 쉽게 문제가 해결되었다. https://github.com/
what-am-i.tistory.com
2. Extension install
1) Auto Rename Tag
2) Auto Close Tag
3) ES7+ React/Redux/React-Native snippets
4) Tailwind Css
5) Dot env
6) Auto Import
7) Indent - Rainbow
<필수가 아닌것들도 있음 >
3. npx 명령어 - 프로젝트 생성
npx create-next-app
4. 프로젝트 생성 완료 !
file -> open folder 로 열어줍니다.
필요한 파일들은 다 함께 설치되었습니다~
이제 프로젝트를 시작해봅시다.
npm run dev
-> localhost:3000으로 들어가면 확인할수있습니다!
'개발공부 > NEXT.js' 카테고리의 다른 글
한입크기 next.js 이정환_강의 구매_블프25%할인_인프런 (2) | 2024.11.25 |
---|---|
포트포워딩_localhost를 외부에서 접속하도록 만드는 법_공유기설정 (0) | 2024.09.01 |
생활코딩의 next.js _ SPA (싱글 페이지 애플리케이션) (0) | 2024.03.19 |