React 설치 에러 (You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1).
😂 npx-create-react-app 폴더명 -> 터미널에서 react 간편 설치 -> 문제 발생!
You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1).
- 오랜만에 리액트를 다시 해보려 하니 이런 문구가 뜨면서 설치 진행이 안되었다!
- 번역해서 읽어보니 5.0.1 버전 이하의 'create-react-app' 은 실행할 수 없다고 나오는 것 같다.
📖 해결 방법
1. 터미널에서 안내한 대로 기존 'create-react-app' 패키지를 지운다. => 'npm uninstall -g create-react-app'
2. 그리고 최신 버전 'create-react-app' 패키지를 설치한다. => npm add create-react-app
3. 최신화된 'create-react-app' 패키지로 React를 설치한다 => npx create-react-app '폴더명'
npm uninstall -g create-react-app
npm add create-react-app
npx create-react-app '폴더명'
🤗 찾아본 사이트 - npm 공홈?
https://www.npmjs.com/package/npm-add
npm-add
CLI tool to quickly add npm packages to package.json. To speed up productivity.. Latest version: 0.0.1, last published: 9 years ago. Start using npm-add in your project by running `npm i npm-add`. There are no other projects in the npm registry using npm-a
www.npmjs.com