오랜만에 리액트 프로젝트를 생성하려고하니 다음과 같은 메시지를 확인했다.

 

$ create-react-app basic-react

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/

 

Getting Started | Create React App

Create React App is an officially supported way to create single-page React

create-react-app.dev

 

해결방법

npm uninstall -g create-react-app

npm add create-react-app

npx create-react-app [프로젝트명]

+ Recent posts