Server , etc
오늘의 에러 <리액트,react 에러> (You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1))
Chrysans
2022. 4. 29. 18:40
728x90
반응형
You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1)
얼마 전에 리액트로 프로젝트 완성 후에 웹의 이론적인 부분하고 타입스크립트 그리고 뷰를 조금 공부하느라 리액트를 안 쓰다가 오랜만에 강의를 보면서 시작하려는데 기본 세팅에서 에러가 발생했다.
npx create-react-app my-app
입력후
아래 처럼 에러 메세지가 나왔고 내용은 더 이상 글로벌(전역) 설치를 지원하지 않으니 글로벌 설치를 제거하라는 거였다.
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, yarn 두 가지 중 자신이 기존에 설치한 방법에 따라 선택해서 제거하고 나서
다시 재설치를 하면 해결할 수 있다.
글로벌(전역) 설치를 제거한 후에 아래 명령어로 재설치!
npm i create-react-app
npx create-react-app 프로젝트 이름
chry8822 - Overview
‘Keep true to the dreams of thy youth’ . chry8822 has 30 repositories available. Follow their code on GitHub.
github.com
728x90
반응형