-
You are running `create-react-app` 4.0.3, which 에러 해결Front-end 2023. 1. 15. 22:24
npx로 react typescript를 설치하려고 터미널에 명령어를 입력했다.
npx create-react-app my-app --template typescript
그런데 설치가 안되고 아래와 같은 에러가 발생했다.
You are running `create-react-app` 4.0.3, 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
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 를 실행했지만 똑같은 에러가 발생했다.✅ 해결방법
npx create-react-app@latest my-app --template typescript
create-react-app@latest 를 붙여서 실행하니까 잘 설치되었다.
'Front-end' 카테고리의 다른 글
[JavaScript] 얕은 복사(Shallow Copy) vs 깊은 복사(Deep Copy) (0) 2022.12.08 아주 쉽게 React + Typescript + TailwindCSS 세팅하기 (0) 2022.12.08