1. VSCODE 설치
2. VSCODE-EXTENSION 설치
2. Node.js 설치(LTS 버전을 설치해주세요)
=> Node.js를 설치하면 npm은 자동으로 설치됩니다.
3. Yarn 설치
=> sudo npm install -g yarn
*패키지 관리는 npm으로도 가능하나 속도적인 한계가 있기에 그 대용으로 사용할 yarn 을 따로 설치함
yarn create next-app 명령어 입력
생성된 프로젝트 폴더(ex. class) 위치에서 yarn add next@12.1.0 react@17.0.2 react-dom@17.0.2 --exact 를 입력하여 react 17버전과 react 17버전을 지원하는 next 동시 설치
node_modules 삭제
package.json에서 react, react-dom 버전을 아래와 같이 변경
"dependencies" : {
"next" : "12.1.0",
"react" : "17.0.2",
"react-dom" : "17.0.2"
}
npm install 명령어로 node_modules 재설치
*4~7 의 과정은 react의 버전 호환과 안정성을 위해 최신 버전이 아닌 17버전을 이용하기 위해 다운그레이드 하는 과정으로 이는 개발 상황에 따라 직접 유동적으로 변경해서 사용
Emotion 접속 후 관련 Docs에 따라 프로젝트 폴더(ex. class) 위치에서 yarn add @emotion/react 와 yarn add @emotion/styled 명령어로 각각 설치
Apollographql 접속 후 Developers의 Docs 항목 참고하여 프로젝트 폴더 (ex. class) 위치에서 yarn install @apollo/client graphql 로 설치
Ant-Design 접속 후 관련 Docs 참고하여 프로젝트 폴더 (ex. class) 위치에서 yarn add antd 로 설치
프로젝트 폴더 (ex. class) 위치에서 yarn add axios 로 설치