React
[React] React 에러 해결 (You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1))
현석아뭐하니
2022. 5. 18. 14:54
실행 코드
리액트 기본 세팅 중 오류 발생했다.
npx create-react-app myapp |
오류 발생
오류가 발생되어 구글에 검색하니 금방 해결하게 되었다.
You are running `create-react-app` 5.0.0, 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 |
해결 방법
해결방법은 간단했다.
커맨드 창을 이용하여 npm uninstall 후 재설치하면 된다.
npm uninstall -g create-react-app npm add create-react-app npx create-react-app myapp |
📎 참고