리액트를 셋팅하는 기본코드를 치자 처음보는 에러가 발생되었다.
npx create-react-app myapp
You are running
create-react-app4.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를 해야지만 에러가 가능하다.
- npm uninstall -g create-react-app
- yarn global remove create-react-app
- npm add create-react-app
- npx create-react-app myapp