React
[에러] Need to install the following packages: create-react-app
ahleum
2022. 4. 29. 05:25

Need to install the following packages:
create-react-app
Ok to proceed? (y)
이런식으로 뜨면서 깔리다가 파일이 지워지면서 끝난다...
검색을 해보니
방법 1
npx clear-npx-cache //npx.에서 캐시를 지워준다
npx create-react-app <app-name>
그런다음 다시 실행하고
Need to install the following packages:
create-react-app
Ok to proceed? (y)
문구가 나오면 수락(y)
방법 2
npx create-react-app@latest <app-name>
이렇게 명령어를 치면 최신버전으로 설치되면서 설치가 완료된다.
난 방법 2번으로 해결했다.