본문 바로가기
💻CODING/react. vue

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

by 코딩하는 갓디노 2021. 12. 20.

npx create-react-app You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0). 오류

 

npx create-react-app 
오류입니다.

 

원래 사용하던 npx create-react-app 앱이름 코드로 react 프로젝트를 시작하려는데 아래와 같은 오류가 발생하였습니다. 

npx create-react-app 앱이름

 

npx create-react-app 오류

You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).
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/

 

Getting Started | Create React App

Create React App is an officially supported way to create single-page React

create-react-app.dev

 

오류 해결

코드에 설명된 것 같이 아래 코드 그대로 복사해 실행시켜줍니다.
npm uninstall 뿐만 아니라 yarn 코드도 꼭 실행해야 합니다.

그 후 다시 npx create-react-app 앱이름 를 실행하면 해결 완료입니다.

npm uninstall -g create-react-app
yarn global remove create-react-app

 

반응형

댓글