리액트를 다시 처음부터 공부하기 위하여 create-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/
분명히.. 엊그제만 해도 잘되던 게 왜 또...!!!
원래 모든건 한번에 되는 법이 없는지라(ㅋㅋㅋㅋㅋ) 에러문구처럼 차근차근 진행해보기로 했다.
npm uninstall -g create-react-app
yarn global remove create-react-app
를 한번씩 입력.
과연? 당연히 안된다(ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ)
그래서 서치하다가 알아낸 방법으로 재시도.
npm uninstall -g create-react-app
npm add create-react-app
npx create-react-app project-Name
그랬더니?
You are running Node 10.21.0.
Create React App requires Node 14 or higher.
Please update your version of Node.
노드를 업데이트 해달라고 떴다.
엇?! 그래서 node -v
로 현재 버전을 확인해 보니 v10.21.0
이었음....
프로젝트때문에 노트버전을 내렸던 기억이 스물스물...
그래서 노드버전을 업그레이드 하니 완벽하게 완.료✨
npx create-react-app@latest project-Name
으로 만으로도 간단히 해결 가능.