[React] CRA 초기셋팅 에러 해결방법

촐옹·2021년 2월 10일
2

React

목록 보기
1/2

CRA 셋팅 중 오류가 떴다👀

You are running create-react-app 4.0.1, which is behind the latest release (4.0.2).

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/

구글링해보니 npm을 최근 버전으로 업데이트를 해주지 않아 오류가 났다.

해결방법

//1. uninstall npm
npm uninstall -g create-react-app

//2. add CRA
npm add create-react-app

//3. run NPX
npx create-react-app practice

2개의 댓글

comment-user-thumbnail
2021년 2월 24일

내핸드폰 업데이트는 하지 않아도 npm은 업데이트 해주겠다!!

1개의 답글