npx create-react-app 에러

개발빼-엠·2023년 1월 30일

에러를 기록

목록 보기
6/11
post-thumbnail

npx create-react-app 을 실행하던 중 에러가 발생했다.

에러메세지

Need to install the following packages:
  create-react-app
Ok to proceed? (y) y

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 -g uninstall create-react-app
npm cache clean --force
npm install -g create-react-app
npx create-react-app 

0개의 댓글