[React] You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1).

이다은·2022년 8월 2일
1

Error

목록 보기
1/4
post-thumbnail

💭

react 프로젝트를 만들기 위해 create-react-app 을 실행하려는데 에러가 발생했다. 처음에는 제거만 하면 해결 되나 싶어서 아래 에러 내용에 나와있는 것처럼 npm uninstall -g create-react-app 혹은 yarn global remove create-react-app 명령어만 단독으로 실행시켜보았지만 별 도움이 되지 않았다

에러 내용

You are running `create-react-app` 5.0.0, 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

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/
Done

에러 내용은 위와 같고, 더 이상 글로벌 설치를 지원하지 않으니 글로벌 설치를 제거하라는 것 같다.

해결 방법

npm uninstall -g create-react-app
npm i create-react-app
npx create-react-app my-app

위 에러 내용 대로 npm 혹은 yarn 을 사용하여 글로벌 설치를 제거한 뒤, 다시 재설치를 하면 해결할 수 있다.
나는 npm 으로 설치하였기 때문에 npm uninstall -g create-react-app 을 활용하여 제거하였다
끗 !

0개의 댓글