Framework/react

리액트 개발 환경 구축

딸기뚜왈기 2025. 4. 11. 16:40

시작하기 – React

 

시작하기 – React

A JavaScript library for building user interfaces

ko.legacy.reactjs.org

 

 

새로운 React 앱 만들기 – React

 

새로운 React 앱 만들기 – React

A JavaScript library for building user interfaces

ko.legacy.reactjs.org

 

툴 체인 중 create react app

 

create react app의 git

 

GitHub - facebook/create-react-app: Set up a modern web app by running one command.

Set up a modern web app by running one command. Contribute to facebook/create-react-app development by creating an account on GitHub.

github.com

 

create react app의 주소

Create React App is deprecated.

 

Create React App is deprecated.

Create React App is deprecated. Please see react.dev for modern options.

create-react-app.dev

 

 

 

 

npx 사용을 위해선 node.js 설치해야함.

 

npx를 이용해서 create-react-app이라는 앱을 바로 사용할 수 있게 된다. 

 

 

현재 디렉토리에 개발환경을 셋팅할 예정이므로,

C:\Users\LSK\Desktop\react-app>npx create-react-app .  명령어 실행.

 

<에러> 리액트 버전 에러.

You are running `create-react-app` 5.0.1, which is behind the latest release (5.1.0).
We recommend always using the latest version of create-react-app if possible.

 

 

<전역(global) 설치를 제거>

C:\Users\LSK\Desktop\react-app>npm uninstall -g create-react-app

 

C:\Users\LSK\Desktop\react-app>npx create-react-app .  명령어 실행.y

 

 

 

npm start 구동해주면 완료.