728x90
개인 프로젝트를 하려고 유튜브 영상을 보며 리액트를 설치하다가 에러가 났다
npx(라이브러리 설치를 도와주는 명령어 node.js 설치되어있어야 가능) create-react-app (리액트를 만들기 쉽게 도와주는 라이브러리의 이름이며 리액트 세팅이 완료된 boilerplate이다 )
// 터미널 에러
이름 @ 이름-ui-MacBookAir lottoProject % npx create-react-app lotto
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.
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/
에러 해결 방법 : 아래의 순서대로 터미널에 입력하니까 오류가 사라졌다
// 1
npm uninstall -g create-react-app
// 2
npm add create-react-app
// 3
npx create-react-app 프로젝트 이름
728x90