프론트엔드 웹/React

[에러해결] You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0)

세리둥절 2022. 1. 5. 12:37
반응형

✔️ 필요성

react-native로 한동안 개발하다가 다시 react 프로젝트를 만들려고 하니 다음과 같은 에러가 발생했다

npx create-react-app project-name --template typescript
You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).
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

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/

 

✔️ 문제 확인

시킨것처럼 npm uninstall -g create-react-app 과 yarn global remove create-react-app을 실행해도 별 도움이 안된다

 

 

 

✔️ 문제 해결

npx create-react-app@latest project-name --template typescript

@latest를 붙이니까 해결됐다 :) 

반응형