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

YS_Study.log·2022년 1월 30일
1

에러해결

목록 보기
1/1

실행코드

리액트를 셋팅하는 기본코드를 치자 처음보는 에러가 발생되었다.

npx create-react-app myapp

에러발생

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

해결방법

에러코드를 잘 읽고 방법으로 전역 삭제를 해주고, 다시 실행하면되겠구나했는데 npx create-react-app myapp을 계속해줘도 안된다....

알고보니 npm add create-react-app를 해야지만 에러가 가능하다.

  1. npm uninstall -g create-react-app
  2. yarn global remove create-react-app
  3. npm add create-react-app
  4. npx create-react-app myapp
profile
느리지만 조금씩 공부하는 중 입니다. 현재 1년 6개월차 신입입니다 ><!

0개의 댓글