트러블슈팅
[리액트] npx create-react-app 에러, A template was not provided. This is likely because you're using an outdated version of create-react-app.Please note that global installs of create-react-app are no longer supported.
wooluck
2020. 1. 2. 19:42
문제
VS code에서 react 템플릿 세팅을 위해 터미널에 npx create-react-app를 입력했더니 아래의 문구가 나왔다.
A template was not provided. This is likely because you're using an outdated version of create-react-app.
Please note that global installs of create-react-app are no longer supported.
템플릿이 제공되지 않았고 create-react-app는 글로벌 인스톨이 더 이상 지원되지 않는다고 한다.
패키지 설치는 되었지만 세팅이 되지 않은 빈껍데기 상태.
기존에 설치한 글로벌 모듈 체크를 위해 npm list -g 를 입력했고 react-create-app이 설치되어 있음을 확인하였다.
해결
npm uninstall -g create-react-app
글로벌 모듈로 설치된 create-react-app을 삭제하였다.
npx create-react-app
이후 다시 create-react-app을 입력하여 해결!