본문 바로가기
React

Create React App설치 & You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0) 오류해결

by 헤이봄봄 2022. 1. 6.
Create React App

SPA를 쉽고 빠르게 개발할수 있도록 만들어진 툴 체인

 

 

 

react 를 안쓴지 오래되어서 복습할 겸 기록을 남겨본다. 

먼저 빈 디렉토리 하나를 생성해준다. 

 

  Create React App생성  

실행하고싶은 디렉토리안에서 Create React App를 생성해보자

우선 사전에 node, npm설치가 되어있어야한다 

// sample 폴더안에서 실행
$ cd smaple 

// react-random-proverb 라는 프로젝트명으로 create-react-app 생성
$ npx create-react-app react-random-proverb

여러가지 패키지들이 설치되는것을 볼수 있고

이와같이 출력되면 설치가 완료이다 

 

 

  오류해결  

간혹 아래와 같은 오류가 뜬다면😦

$ npm uninstall -g create-react-app
$ npm add create-react-app

$ npx create-react-app myapp

위 순서대로 다시 설치하면 된다 !

댓글