상세 컨텐츠

본문 제목

You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1). We no longer support global installation of Create React App. 오류 해결하기

TIL(Today I Learned)/그 외

by 박나영 2022. 6. 24. 10:33

본문

You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1). We no longer support global installation of Create React App. 

오류 해결하기

 

npx create-react-app .

를 입력했더니

 

You are running create-react-app 5.0.0, which is behind the latest release (5.0.1). We no longer support global installation of Create React App.

 

라는 오류가 발생했다.

아래는 오류 전문

image

 

오류에 쓰여있던 대로

npm uninstall -g create-react-app
yarn global remove create-react-app

 

둘 다 시도해봤는데 여전히 안됨..

 

npm add create-react-app

을 입력해주고 다시

npx create-react-app .

를 하면 잘 된다!

 

참고한 사이트

https://velog.io/@estell/error

 

[리액트 오류해결 ] You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).

리액트를 셋팅하는 기본코드를 치자 처음보는 에러가 발생되었다.npx create-react-app myappYou are running create-react-app 4.0.3, which is behind the latest release (5.0.0).We no l

velog.io

 

관련글 더보기