devlog_zz

[오류해결] 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. 본문

Front End/React

[오류해결] 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.

YJ_SW 2022. 10. 19. 13:34
728x90
npx create-react-app my-app

 

create-react-app을 통해 react app을 생성하려고 했는데 아래와 같은 오류가 발생했다.

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

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/
전역적으로 설치된 버전을 사용하는 대신 항상 최신 버전을 사용하도록 항상 create-react-app 직접 npx로 실행하는 것이 좋다 .  물론 npx 로 시도하기 전에 컴퓨터에 전역적으로 설치된 CRA 버전을 제거해야 한다.

해결 방법

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

 

728x90
Comments