도찐개찐

[MacOS] React 설치 하기 본문

React

[MacOS] React 설치 하기

도개진 2022. 4. 25. 19:56

1. 사전 준비

본 글에서는 Homebrew를 이용하여 node, yarn를 설치하고 실행하는것을 다루겠습니다.

Homebrew 설치

 

MacOS Homebrew 설치

개요 MacOS 재설정 혹은 신규 설정시 github활용을 하시기 위해 초기 환경설정이 필요하신 분들을 위한 포스팅 입니다. mac 환경에서 아래와 같이 환경을 설정하면 비밀번호 등과 같은 불필요한 절

dev-truly.tistory.com

1.1. node.js 설치

$ brew install node

 

1.2. yarn 설치

$ brew install yarn

 

2. React 프로젝트 생성

$ yarn add global create-react-app

 

프로젝트 생성

$ yarn create react-app test-app

 

3. 앱 실행

만들어진 app을 실행시켜 본다.

$ cd test-app
$ yarn start

실행 결과 화면

728x90
Comments