You are running `create-react-app` 4.0.3, which is behind … 에러 해결 방법

npx create-react-app 에러내용

`npx create-react-app my_react`명령을 이용하여 react를 시작하려 하는데 아래와 같은 에러가 발생했다.

[에러내용]
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

그래서 `npm uninstall -g create-react-app`명령을 실행해봤지만 동일한 에러가 반복해서 나타난다.

npx create-react-app 해결방법

1) npm uninstall -g create-react-app
2) npx clear-npx-cache

위와 같은 순서로 먼저 기존에 설치된 구 버전의 create-react-app을 삭제하고, 두번째로 npx의 캐시를 삭제해야 한다. 그런 후에 최후로 아래와 같이 리액트 프로젝트를 만든다.

3) npx create-react-app my_react

npx 리액트 프로젝트 생성 에러 해결

답글 남기기

15 − 14 =