Problem
CRA 공식 문서대로 npx create-react-app my-app
명령어를 입력했는데
A template was not provided. This is likely because you're using an outdated version of create-react-app.
에러가 나면서 빈 react app이 생성되었다.
훗 뭐 예전에 글로벌로 설치했던 cra 때문이겠지 하고 npm uninstall -g create-react-app
돌리고 재실행했는데 여전히 위에 에러가 났다.
npm list -g
로 글로벌 모듈을 봐도 create-react-app이 없는데 무슨 일이지… 했음
Solution
which create-react-app
명령어로 컴에 아직 cra가 남아있는지 찾는다. 나는 /usr/local/bin/create-react-app
에 있더라.
rm -rf /usr/local/bin/create-react-app
위 명령어로 가뿐하게 지워준다.
다시 npx create-react-app my-app
하면 이젠 template 껴져서 제대로 된다 🙂