[ React ] window + react install 윈도우에 리엑트 설치하기 > react

본문 바로가기
사이트 내 전체검색

react

[ React ] window + react install 윈도우에 리엑트 설치하기

작성자 웹지기
작성일 20-05-15 11:28 | 조회 11,477 | 댓글 0

본문

기본적으로 설치해야 할 프로그램 목록

node.js

npm

yarn

create-react-app

editor( visual studio code 등등 본인이 사용하는 editor )

git

설치시 cmd 또는 cmder를 설치해서 사용 

 

1. node.js 설치

https://nodejs.org/ko/download/ 에서 윈도우용을 다운받아서 설치

2. npm 설치

node.js 설치시 자동으로 설치

3. yarn 설치

cmd 또는 cmder에서

npm install --global yarn

설치확인 : yarn -v

4. create-react-app 설치

cmd 또는 cmder에서

npm install -g create-react-app

또는

yarn global add create-react-app

5. 프로젝트 생성

설치를 원하는 폴더로 이동

예) d:\react 폴더에 생성하고 싶다면 

cd d:\react

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

cd [프로젝트명]

yarn start

react를 자동으로 실행하고 기본브라우져로 지정된 브라우져에 react 첫 화면이 나옴

경로는 대략 localhost:3000

0 0

댓글목록 0

등록된 댓글이 없습니다.

react 목록

회원로그인

접속자집계

오늘
18,567
어제
33,488
최대
61,067
전체
17,991,167

그누보드5
Copyright © funyphp.com. All rights reserved.