Front-End/React
[React]에러해결 : You are running `create-react-app` 4.0.3, which is behind the lat
shoney9254
2022. 7. 16. 17:21
반응형
creat-react-app 을 사용하려고 하는데,
You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.1).
이라는 에러가 발생했다. 정확하게는 아래와 같은 에러였다.
에러 문구
You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.1).
We no longer support global installation of Create React App.
Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app
사실 에러가 발생하면 에러 내용에서 해결방법을 제시해준다. 해결 방법은 아래 내용을 따라서 입력해보자.
1. uninstall 진행 명령
npm uninstall -g create-react-app
2. 아래 명령어 입력
yarn global remove create-react-app
3. 아래 명령어 입력
npm add create-react-app
4. 처음에 원하고자 한 create 진행
npx create-react-app 파일명
반응형