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

soyeon·2022년 4월 21일
2

에러모음

목록 보기
1/3
post-thumbnail

문제 발생

실행 코드

  • 리액트 기본 세팅 코드를 쳤는데 오류가 뜸
    npx create-react-app my-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/
  • Create React App의 글로벌(전역) 설치를 더 이상 지원하지 않습니다.
  • 다음 명령어를 입력하여 글로벌 설치를 제거하세요
    - npm uninstall -g create-react-app
    - yarn global remove create-react-app

해결 방법

글로벌(전역) 설치를 제거한 후 재설치한다.

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

📎참고

https://stackoverflow.com/questions/71852370/you-are-running-create-react-app-5-0-0-which-is-behind-the-latest-release-5

profile
공부중

1개의 댓글

comment-user-thumbnail
2022년 6월 6일

이렇게 적용했을때 해당 경로에 node_modules 과 package.json , package-lock.json 이 생기는데 이거는 어떻게하시나영 ?

답글 달기